From: Hans de Goede <hdegoede@redhat.com>
To: Luca Tettamanti <kronos.it@gmail.com>
Cc: linux-acpi@vger.kernel.org, Len Brown <lenb@kernel.org>,
LM Sensors <lm-sensors@lm-sensors.org>,
Jean Delvare <khali@linux-fr.org>
Subject: Re: [PATCH] ACPI: set acpi_enforce_resources to strict
Date: Thu, 08 Jan 2009 17:15:19 +0100 [thread overview]
Message-ID: <49662697.9080302@redhat.com> (raw)
In-Reply-To: <20090106182012.GA6668@dreamland.darkstar.lan>
Luca Tettamanti wrote:
> The following patch changes the default for "acpi_enforce_resources" option to
> "strict", disallowing access by native drivers to IO ports and memory regions
> claimed by ACPI firmware.
>
Hi Luca (et all)
I know it was me who proposed to send a mail about this to the ACPI list, but
when I did I had an RFC mail in mind, not a patch.
I've been discussing this with Jean Delvare (he is back from his holliday), and
he agrees that in the end this is the right thing to do. But this will probably
stop the smbus controller drivers (Jean is the i2c subsystem maintainer) from
loading on quite a few motherboards. Given that ACPI claims it is using these,
this would actually be a good thing, but still it will probably make for a lot
of unhappy users. So his call (and I support him there) is that it is too early
to do that.
<Intermezzo to get those not involved in earlier discussion up to speed>
For those not familiar with the hwmon subsystem. Some (one or 2?) release ago a
couple of new acpi functions were added:
acpi_check_resource_conflict()
acpi_check_region()
acpi_check_mem_region()
Which can be called by drivers to see if they are not trying to do IO to any
ranges claimed by ACPI.
I did a full grep for these in 2.6.28, and they are only used by the smbus /
i2c controller drivers there. In 2.6.29 the hwmon drivers for the hwmon part of
superio IC's starts checking these too.
The behaviour of these 3 functions gets controlled by the global
acpi_enforce_resources kernel (cmdline) option (and changing this from lax to
strict will only influence these 3 methods). The default currently is lax,
which will cause these methods to only issue a warning about conflicts, but not
report any actual conflicts to the caller. Changing this to strict would
actually report the conflict, stopping the smbus drivers (and hwmon superio)
drivers from loading. As said before: Given that ACPI claims it is using these,
this would actually be a good thing. But it is a change from current behaviour
so quite some people will probably start yelling.
</intermezzo>
So back to the discussion about changing the default of acpi_enforce_resources
to strict, Jean and I have been discussing this on IRC and we feel it will most
likely cause too much pain. So we would like to suggest to make the default
depend up on the motherboard. Our plan is to have the default be "auto" and
that will mean "lax", unless the motherboard is atk0110 (Asus ACPI interface
for reading hwmon data) capable and in that case "auto" will mean "strict"
The plan is then to merge this acpi subsystem change and the atk0110 driver at
the same time, so that people will get different hwmon capabilities, but won't
loose hwmon capabilities all together. Important note: this is meant as an
temporary state of affairs, the end goal is to make the checking strict.
Luca do you think you could do a patch implementing the described "auto" value
for acpi_enforce_resources ?
ACPI people, would this be acceptable as a temporary solution ?
Thanks & Regards,
Hans
next prev parent reply other threads:[~2009-01-08 16:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-06 18:20 [PATCH] ACPI: set acpi_enforce_resources to strict Luca Tettamanti
2009-01-08 16:15 ` Hans de Goede [this message]
2009-01-08 20:13 ` Luca Tettamanti
2009-01-11 19:04 ` Hans de Goede
2009-01-12 20:28 ` Luca Tettamanti
2009-01-13 7:58 ` Hans de Goede
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=49662697.9080302@redhat.com \
--to=hdegoede@redhat.com \
--cc=khali@linux-fr.org \
--cc=kronos.it@gmail.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=lm-sensors@lm-sensors.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