[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <92de74fb-fc75-4260-bb1d-2d6dd522183f@kernel.org>
Date: Wed, 26 Nov 2025 06:55:32 -0600
From: Mario Limonciello <superm1@...nel.org>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Muhammad Usama Anjum <usama.anjum@...labora.com>
Cc: "Rafael J. Wysocki" <rafael@...nel.org>, Len Brown <lenb@...nel.org>,
Pavel Machek <pavel@...nel.org>, Danilo Krummrich <dakr@...nel.org>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Thomas Gleixner <tglx@...utronix.de>, Peter Zijlstra <peterz@...radead.org>,
linux-acpi@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-pm@...r.kernel.org, linux-input@...r.kernel.org, kernel@...labora.com,
Askar Safin <safinaskar@...il.com>
Subject: Re: [PATCH 2/4] ACPI: button: Cancel hibernation if button is pressed
during hibernation
>> First I need a board/machine with serial console access to view all logs in real
>> time. :)
>
> usb debug cables might be your solution.
>
Just a word of warning before you go too far down this path to get a
console working from XHCI debug.
This is probably a Hal changing a light bulb problem [1]. Last time I
tried XHCI debug cables on some modern AMD systems I ran into a problem
that the BAR is too big for early_ioremap(). Looking through LKML it's
come up a few times in the past too [2] [3].
Link: https://youtu.be/5W4NFcamRhM?si=qOFrCTzvK6-H-4AX [1]
Link: https://lore.kernel.org/linux-usb/ZCOq3PUBCtHkwdnw@mail-itl/ [2]
Link:
https://lore.kernel.org/linux-usb/CAAcb1K_bezseTM8DrOrzVUi_W+nZoE2N0CO4k3AQWPw7=7pyjw@mail.gmail.com/
[3]
The other obvious idea is to use netconsole, but you need a PCIe
Ethernet controller, but I think you'll have more success in development
using KVM as these are generic architectural problems.
To help you get started with this I may point out something that was
shared to me for another hibernate bug [4].
Link:
https://lore.kernel.org/linux-pm/20251105180506.137448-1-safinaskar@gmail.com/
[4]
Askar Safin (CC'ed) produced a script that does a very minimal kernel
build, sets up a VM with the right sizes of disks/swap/etc. It's
trivial to make kernel changes and re-run the script, and you can also
attach a debugger to the KVM instance. Maybe you can adapt something
like that. You can wrap it with 'time' calls to actually measure
performance for any ideas and prove them out too.
Powered by blists - more mailing lists