public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <jdelvare@suse.de>
To: Len Brown <lenb@kernel.org>
Cc: Alan Jenkins <sourcejedi.lkml@googlemail.com>,
	linux-acpi@vger.kernel.org, Zhang Rui <rui.zhang@intel.com>,
	Thomas Renninger <trenn@suse.de>
Subject: Re: [PATCH] ACPI: Clarify resource conflict message
Date: Mon, 7 Sep 2009 15:36:46 +0200	[thread overview]
Message-ID: <200909071536.46934.jdelvare@suse.de> (raw)
In-Reply-To: <alpine.LFD.2.00.0908311305110.19451@localhost.localdomain>

Hi Len,

Le lundi 31 août 2009, Len Brown a écrit :
> > > The message "ACPI: Device needs an ACPI driver" is misleading...
> 
> > > ACPI: Device may still be supported by an ACPI driver
> 
> > I would drop the word "still", but otherwise I think this is a good idea.
> 
> I agree we need to clarify this message.
> 
> Right now we have (copied from a recent bug report):
> 
> w83627ehf: Found W83627EHG chip at 0x290
> ACPI: I/O resource w83627ehf [0x295-0x296] conflicts with ACPI region SEN1
> [0x295-0x296]
> ACPI: Device needs an ACPI driver
> 
> This results in people filing bugs against ACPI because their sensor
> driver does not load -- we've seen several already.

I know, and this is why I sent a patch to change the wording.

> I'm okay with the 1st ACPI line -- it tells somebody who cares exactly
> what is going on.
> 
> "Device needs an ACPI driver", however, fails to tell the administrator
> what they can do about it.  We should probably mention that they
> can test "acpi_enforce_resources=lax".  However, we should probably
> put a big WARNING - using-at-own-risk note in the dmesg when
> that option is actually used.

I don't think we want to unconditionally point the user to
"acpi_enforce_resources=lax". Doing so would essentially void our
effort to get rid of concurrent access to these resources.

In particular, now that we have the asus_atk0110 driver and this
driver loads automatically on the boards which need it, we certainly
do NOT want to tell these users that they should use
"acpi_enforce_resources=lax". What they should do is use the
asus_atk0110 driver instead of the native driver they were using so
far.

Only if no ACPI-based hardware monitoring driver has been loaded, we
could point the user to "acpi_enforce_resources=lax". With a warning
and disclaimer, of course.

> And then what is the next course of action -- possible inclusion
> on a white-list if they conflict turns out to be benign,
> or (less likely) possible development of a missing ACPI driver?

I wasn't sure whether you would be OK with a whitelist. I too
think we will need one, although this won't be in 2.6.31. Then it
indeed makes sense to ask the users to test
"acpi_enforce_resources=lax", and if it works, they can report to us
and after a DSDT code review, their system can be added to the
whitelist.

I am curious how many systems will have to be added to the whitelist.
I presume that the whitelist would consist in DMI board vendor +
model entries?

> We could have quite a few bug reports filed on this,
> so wording is important.

I fully agree.

What I propose:
* For 2.6.30 (if we are fast enough), an updated version of my patch,
  taking Alan Jenkins' suggestion into account, and an additional
  warning when "acpi_enforce_resources=lax" is used.
* For 2.6.31, a whitelisting mechanism, and a verbose log message
  explaining the steps to get a system into this whitelist.

OK?

Thanks,
-- 
Jean Delvare
Suse L3
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2009-09-07 13:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-30 13:46 [PATCH] ACPI: Clarify resource conflict message Jean Delvare
2009-08-30 21:10 ` Alan Jenkins
2009-08-31 17:19   ` Len Brown
2009-09-07 13:36     ` Jean Delvare [this message]

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=200909071536.46934.jdelvare@suse.de \
    --to=jdelvare@suse.de \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=rui.zhang@intel.com \
    --cc=sourcejedi.lkml@googlemail.com \
    --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