From: thomas.petazzoni@free-electrons.com (Thomas Petazzoni)
To: kernelnewbies@lists.kernelnewbies.org
Subject: My Kernel bug is celebrating 2 years. Can you help me fix it?
Date: Wed, 5 Mar 2014 23:32:45 +0100 [thread overview]
Message-ID: <20140305233245.65ebd6e8@skate> (raw)
In-Reply-To: <CA+MoWDrTNtAHKsiBHz=W4=eJRO=m9EK_HZ7zLxb=4fg5riUQeg@mail.gmail.com>
Dear Peter Senna Tschudin,
On Tue, 4 Mar 2014 22:26:37 +0100, Peter Senna Tschudin wrote:
> I have reported a bug more than two years ago and it is still
> affecting me. The bug report gives some information:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=787299
>
> I have tried basic debug instructions from:
> https://www.kernel.org/doc/Documentation/power/basic-pm-debugging.txt
>
> And everything works as expected when:
> # echo freeze > /sys/power/state
> # echo disk > /sys/power/state
>
> I have asked for help for fixing it:
> https://lkml.org/lkml/2013/11/1/186
>
> But I don't have a serial port. How can I debug this issue without a
> "real" serial port? Or what else can I try? How can I explore the hint
> about the problem only happening with VT-d enabled in BIOS? How can I
> explore the hint about the problem not happening if the option
> nox2apic is passed to the Kernel?
Something I would try in this situation is to boot with mem=<some value
smaller than the amount of RAM>, and then have the kernel write some
debugging informations manually at a fixed location in RAM that has
been reserved by lowering the amount of RAM using mem=. Then, when you
reboot, you can dump what has been left in this memory location. Of
course this requires that 1/ this memory location is not overwritten by
the BIOS/bootloader and 2/ that you can do a warm reset to not loose
the contents of the memory. Since I don't do much x86 kernel hacking,
I never had to do that on x86, but I've used this trick a few times on
ARM platforms.
If that works, then it means you can put some debugging details all
over the kernel to find where things hand exactly during the resume
process.
Another embedded trick is to find a LED that you can easily turn
on/off. It is very useful to see if you reach a given portion of code
or not.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2014-03-05 22:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-04 21:26 My Kernel bug is celebrating 2 years. Can you help me fix it? Peter Senna Tschudin
2014-03-05 8:27 ` walter harms
2014-03-05 11:54 ` Peter Senna Tschudin
2014-03-05 22:32 ` Thomas Petazzoni [this message]
2014-03-06 18:27 ` Bjorn Helgaas
2014-03-06 19:08 ` Peter Hurley
2014-03-07 15:01 ` Peter Senna Tschudin
2014-03-07 15:44 ` Peter Hurley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140305233245.65ebd6e8@skate \
--to=thomas.petazzoni@free-electrons.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).