2009-09-09 21:21:09

by Knut Petersen

[permalink] [raw]
Subject: [PATCH] Fix Aopen i915GMm-hfs hwmon support

Hi Linus!

Hwmon support is broken for the Aopen i915GMm-hfs. The
reason is the default value ENFORCE_RESOURCES_STRICT
for acpi_enforce_resources in drivers/acpi/osl.c.

The use of ENFORCE_RESOURCES_LAX is proven to be ok
by more than 30000 hours of uptime on my i915GMm-hfs.

Of course, it would be possible to tell all users of that board
to add a cmdline parameter to restore hwmon support, but
I believe that it is a good idea to do things automatically that
can be done that way. And we should only break things if
it is really necessary.

The attached trivial patch looks for the i915GMm-hfs board
during init and changes the default to lax ACPI resource
checking only for that board. I think this is reasonable, and
probably a number of other boards could also be handled
that way.

There is a high probability that for lots of people 2.6.31 will
be their first kernel using strict resource enforcement, as
2.6.31 will be used by a number of distributions.

Because of that I believe this patch should be included in
kernel 2.6.31.

cu,
Knut


Attachments:
acpiosl.patch (1.32 kB)