From: "Jesper Juhl" <jesper.juhl@gmail.com>
To: trenn@suse.de
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
linux-acpi <linux-acpi@vger.kernel.org>
Subject: Re: Documentation - How to debug ACPI Problems
Date: Wed, 6 Jun 2007 16:59:35 +0200 [thread overview]
Message-ID: <9a8748490706060759s5d8c43bdoc34334fcf56ee96@mail.gmail.com> (raw)
In-Reply-To: <1181140008.28514.259.camel@queen.suse.de>
On 06/06/07, Thomas Renninger <trenn@suse.de> wrote:
> Hi,
>
> I made up a little How-To for what I find out is nice to debug ACPI
> problems.
>
Nice :-)
> Any enhancements, corrections, etc. are very much appreciated.
>
See below.
> I'd like to have a final version in the Documentation section.
>
When you send in the patch to add that final version, please also
remember to add an entry to Documentation/00-INDEX
[snip]
>
> How to debug ACPI Problems
> ==========================
>
> Thomas Renninger <trenn@suse.de>, 2007
> Copyright (C) 2007 SUSE Linux GmbH
>
>
> 1. Introduction
> ---------------
>
> 1.1. General Info
> - - - - - - - -
>
Perhaps start out here by telling people what ACPI is. Something like this:
ACPI stands for Advanced Configuration and Power Interface.
> Please refer to the latest ACPI spec for general ACPI information:
> http://www.acpi.info/spec.htm
>
> ACPI is required by most recent x86, x86_64 and IA64 architecture based
> machines.
>
> In general ACPI tables provide information from the BIOS to the OS.
> There are ACPI tables (DSDT and SSDTs), written in the ACPI Source
> Language (ASL) which include byte code (similar to Java byte code) that gets
> interpreted by the OS. The kernel makes use of provided BIOS functions
The word "provided" seems superfluous here.
[snip]
>
> The ACPI tables of your system can be extracted with the acpidump tool:
I think the colon ":" at the end of this line should be removed.
> in the latest pmutils package from here:
> ftp://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/utils
>
[snip]
>
> In history people used to override their DSDT to workaround BIOS or even kernel
I would replace "In history people used to ..." with "Historically
people used to ...".
[snip]
> If you expect the bug in a module in drivers/acpi/*.c code you might have luck
> and be able to find or narrow down the culprit by simple printks.
>
I would rewrite that bit as :
If you suspect the bug to be in a module in drivers/acpi/*.c code, you
may be able to find or narrow down the culprit simply by adding
printk()'s.
> On more complicated bugs you should make use of the ACPI_DEBUG=y facility.
Maybe just me, but I would say "For" here instead of "On".
[snip]
> Note: In kernel versions before 2.6.22 the boot parameters are:
should be "...the boot parameters were:" - past tense.
[snip]
> interface (Documentation/networking/netconsole.txt) to write away
> syslog messages over network or firescope
"... to write away syslog messages over network ..." sounds a little
clumsy to me. Why not simply write "... to send syslog messages over
network ..." ?
> (patches already exist in
> 2.6.22-rcX-mm?) to send syslog messages over firewire.
> The latter might be the only way to debug early hangs on laptops
> without serial console anyway.
>
"without a serial console" ???
> 3.2.2 Using ACPI_DEBUG Boot Parameters via /sysfs and /proc
>
> The same as 3.2.1., you can also pass the parameters at runtime e.g.
> via:
> echo 0x1F >/proc/acpi/debug_level # before 2.6.22 or
> echo ?!? >/sys/?/!/? # Rui?
Seems like some bits are missing here ^^^
> Wrapping such statements around loading and unloading a bug affected
> ACPI module might give you the possibility to increase debug_level,
> but still only give you a managable amount of debug output.
>
s/managable/manageable/
[snip]
--
Jesper Juhl <jesper.juhl@gmail.com>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
next prev parent reply other threads:[~2007-06-06 14:59 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-06 14:26 Thomas Renninger
2004-01-02 22:32 ` Zhang Rui
2007-06-06 14:59 ` Jesper Juhl [this message]
2007-06-11 16:28 ` Thomas Renninger
2007-06-18 4:12 ` Len Brown
2007-06-18 11:18 ` Thomas Renninger
2007-08-14 15:25 ` Len Brown
2007-08-14 15:25 ` Len Brown
2007-08-14 15:40 ` Len Brown
2007-08-14 16:49 ` Thomas Renninger
2007-08-14 16:50 ` Henrique de Moraes Holschuh
2007-08-14 17:33 ` Alan Cox
2007-08-14 18:03 ` Valdis.Kletnieks
2007-06-06 15:52 ` Alexey Starikovskiy
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=9a8748490706060759s5d8c43bdoc34334fcf56ee96@mail.gmail.com \
--to=jesper.juhl@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=trenn@suse.de \
/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
all inboxes | Powered by JetHome®