From: Jean Delvare <khali@linux-fr.org>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: linux-acpi@vger.kernel.org,
LM Sensors <lm-sensors@lm-sensors.org>,
Len Brown <lenb@kernel.org>
Subject: Re: [PATCH] hwmon: (asus_atk0110) Don't load if ACPI resources aren't enforced
Date: Wed, 31 Mar 2010 09:42:47 +0200 [thread overview]
Message-ID: <20100331094247.049e3012@hyperion.delvare> (raw)
In-Reply-To: <20100330211049.GA1524@srcf.ucam.org>
On Tue, 30 Mar 2010 22:10:49 +0100, Matthew Garrett wrote:
> On Tue, Mar 30, 2010 at 10:32:51PM +0200, Jean Delvare wrote:
>
> > Sure, but why do you insist on having the user configure this manually
> > when we can automate this at the kernel level? When
> > acpi_enforce_resouce=yes, the kernel doesn't let non-ACPI driver be
> > loaded, so I fail to see why we let ACPI drivers (for which we also
> > have native drivers) load when acpi_enforce_resouce=no.
>
> Because the situation with the asus driver loaded isn't obviously any
> worse than not having it loaded. The user is telling us that they're
> happy with racy access to their hwmon hardware.
No, they are not saying that. They are saying: I want to let native
drivers access ACPI-reserved I/O ports. That's all they are saying.
Attaching a single interpretation to this is incorrect. They might do
this because their BIOS improperly reserves ports it doesn't use. Or
because they prefer using a native driver over an ACPI driver for a
given chip. Or indeed because they want to crash their machine. Just
because it can't be called generally safe (and in all honesty is unsafe
in many cases, quite possibly the majority) doesn't mean there are no
cases where it makes sense. Hell, we lived without ACPI resource
reservation until kernel 2.6.32 and without the asus_atk0110 driver and
most people were totally happy with the situation.
> Automatically blocking
> the loading of the ACPI driver does nothing other than imply to the user
> that things are safe,
Again, no, it doesn't imply that. It implies that loading the
asus_atk0110 driver together with a native driver for the same device
is very bad and should never be done, period.
> when in reality they're anything but.
They sometimes are, this is the point.
--
Jean Delvare
prev parent reply other threads:[~2010-03-31 7:42 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20100309135636.373a40a9@hyperion.delvare>
2010-03-30 10:03 ` [lm-sensors] [PATCH] hwmon: (asus_atk0110) Don't load if ACPI resources aren't enforced Jean Delvare
2010-03-30 13:21 ` Matthew Garrett
2010-03-30 19:47 ` Jean Delvare
2010-03-30 19:48 ` Matthew Garrett
2010-03-30 20:32 ` Jean Delvare
2010-03-30 21:10 ` Matthew Garrett
2010-03-30 21:45 ` [lm-sensors] " Luca Tettamanti
2010-03-30 21:53 ` Matthew Garrett
2010-03-31 7:30 ` Jean Delvare
2010-03-31 12:51 ` Matthew Garrett
2010-03-31 13:25 ` Jean Delvare
2010-03-31 13:27 ` Matthew Garrett
2010-03-31 13:37 ` Jean Delvare
2010-03-31 7:42 ` 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=20100331094247.049e3012@hyperion.delvare \
--to=khali@linux-fr.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=lm-sensors@lm-sensors.org \
--cc=mjg59@srcf.ucam.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