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: Sun, 11 Jan 2009 20:04:56 +0100 [thread overview]
Message-ID: <496A42D8.6070105@redhat.com> (raw)
In-Reply-To: <68676e00901081213i4d40448y257ccbc8d4776c69@mail.gmail.com>
Luca Tettamanti wrote:
> On Thu, Jan 8, 2009 at 5:15 PM, Hans de Goede <hdegoede@redhat.com> wrote:
> [...]
>> 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"
>
> Hum, that would mean putting ATK specific code into ACPI subsystem.
> It's not pretty :S
>
Agreed, an alternative Jean and I discussed was to make the default strict for
all Asus boards, that would be easier (simple strcmp on baseboard
manufacturer). I don't know how large the atk detection code is.
>> 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 ?
>
> So the logic would be:
> - if ATK node is present and the driver is enabled -> strict
> - otherwise -> auto
>
No the logic would be:
if (acpi_enforce_resources == auto) {
if (atk0110)
acpi_enforce_resources = strict;
else
acpi_enforce_resources = lax;
}
> - DMI which would require an entry for each mobo (notebooks don't have
> the ATK interface)
Yes, if the atk0110 case is too trouble some, changing this over to make auto
be strict on all Asus boards is ok too.
> - an initcall in the ATK driver that overrides the value of
> acpi_enforce_resources to strict
That won't work, the atk0110 driver might be a module and the conflicting
drivers could be loaded first.
Regards,
Hans
next prev parent reply other threads:[~2009-01-11 19:04 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
2009-01-08 20:13 ` Luca Tettamanti
2009-01-11 19:04 ` Hans de Goede [this message]
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=496A42D8.6070105@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