From: Thomas Renninger <trenn@suse.de>
To: Huang Ying <ying.huang@intel.com>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>,
"lenb@kernel.org" <lenb@kernel.org>,
ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
Andi Kleen <ak@linux.intel.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATH 1/5 -v2] acpi, IO memory pre-mapping and atomic accessing
Date: Fri, 18 Dec 2009 14:42:38 +0100 [thread overview]
Message-ID: <4B2B86CE.4020304@suse.de> (raw)
In-Reply-To: <1260926595.12561.1188.camel@yhuang-dev.sh.intel.com>
On 12/16/2009 02:23 AM, Huang Ying wrote:
> On Wed, 2009-12-16 at 01:47 +0800, Bjorn Helgaas wrote:
>> On Monday 14 December 2009 06:04:13 pm Huang Ying wrote:
...
>>> The checking here is for bug in firmware not software. I think it is
>>> necessary for the user to know where the bugs may come from, and it is
>>> hard to express the bug in return code.
>>
>> Yes, I understand that this is checking for firmware bugs. My point
>> is that when a user sees this in his dmesg log:
>>
>> Invalid bit width in GAR, firmware bug?
>>
>> we have no context, and even a kernel developer can't figure out what
>> to do. We could ask for a copy of the FADT and DSDT, but even then,
>> we don't know *which* GAR structure to look at, so we'll probably have
>> to add some instrumentation and ask the user to reproduce the problem.
>>
>> If the check were in the caller, it could at least say something like:
>>
>> ACPI: couldn't map generic address [io 0xcf8] for PCI config access
>>
>> which would give us more useful information.
>
> En... Yes, some information about the invalid GAR is helpful. But the
> GAR information is available in acpi_check_gar too, so we can output
> something as follow in acpi_check_gar:
>
> Invalid bit width in GAR [mem 0x8029ff8 24], firmware bug?
>
> Your message looks like a software issue instead of firmware bug. This
> may confuse the user and developer.
Please use one of these (cmp. with include/linux/kernel.h when to use
which):
#define FW_BUG "[Firmware Bug]: "
#define FW_WARN "[Firmware Warn]: "
#define FW_INFO "[Firmware Info]: "
It's great that someone cares to tell syslog/users that it's a firmware
bug, that should get more common...
Thomas
next prev parent reply other threads:[~2009-12-18 13:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-10 7:16 [PATH 1/5 -v2] acpi, IO memory pre-mapping and atomic accessing Huang Ying
2009-12-11 17:36 ` Bjorn Helgaas
2009-12-15 1:04 ` Huang Ying
2009-12-15 17:47 ` Bjorn Helgaas
2009-12-16 1:23 ` Huang Ying
2009-12-16 17:54 ` Bjorn Helgaas
2009-12-17 8:33 ` Huang Ying
2009-12-17 17:06 ` Bjorn Helgaas
2009-12-18 13:42 ` Thomas Renninger [this message]
2009-12-16 5:38 ` Len Brown
2009-12-16 5:40 ` Huang Ying
2009-12-18 18:11 ` Pavel Machek
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=4B2B86CE.4020304@suse.de \
--to=trenn@suse.de \
--cc=ak@linux.intel.com \
--cc=bjorn.helgaas@hp.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ying.huang@intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.