From: Len Brown <lenb@kernel.org>
To: "Zhang, Rui" <rui.zhang@intel.com>
Cc: linux-acpi <linux-acpi@vger.kernel.org>
Subject: Re: [PATCH] ACPI: thermal fixup for broken BIOS which has invalid trip points
Date: Tue, 11 Mar 2008 02:35:55 -0400 [thread overview]
Message-ID: <200803110235.55358.lenb@kernel.org> (raw)
In-Reply-To: <1205114031.10256.193.camel@acpi-hp-zz.sh.intel.com>
On Sunday 09 March 2008, Zhang, Rui wrote:
> thermal fixup for broken BIOS which has invalid trip points.
> http://bugzilla.kernel.org/show_bug.cgi?id=8544
> http://marc.info/?l=linux-kernel&m=120496222629983&w=2
>
> Signed-off-by: Zhang Rui<rui.zhang@intel.com>
> ---
> drivers/acpi/thermal.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> Index: linux-2.6/drivers/acpi/thermal.c
> ===================================================================
> --- linux-2.6.orig/drivers/acpi/thermal.c
> +++ linux-2.6/drivers/acpi/thermal.c
> @@ -326,7 +326,9 @@ static int acpi_thermal_set_cooling_mode
> #define ACPI_TRIPS_ACTIVE 0x08
> #define ACPI_TRIPS_DEVICES 0x10
>
> -#define ACPI_TRIPS_REFRESH_THRESHOLDS (ACPI_TRIPS_PASSIVE | ACPI_TRIPS_ACTIVE)
> +#define ACPI_TRIPS_REFRESH_THRESHOLDS (ACPI_TRIPS_PASSIVE | \
> + ACPI_TRIPS_ACTIVE | \
> + ACPI_TRIPS_DEVICES)
> #define ACPI_TRIPS_REFRESH_DEVICES ACPI_TRIPS_DEVICES
>
> #define ACPI_TRIPS_INIT (ACPI_TRIPS_CRITICAL | ACPI_TRIPS_HOT | \
>
>
I don't like re-evaluating _AL0 on notify x81 as a workaround
to notice that there _is_ no _AL0. We should re-evaluate _AL0
on notify x82 -- per the spec.
We should print out a single exeception at boot time when
we realize that the BIOS has a bug of no _AL0 for the _AC0.
At run time, we should have no concept of a valid _AC0
and thus a notify x81 should not try to use it.
Can we do that?
Otherwise, I think we're obfuscating the code to workaround
a broken BIOS.
I think we need a test in linuxfirmware kit to verify
that there is an ALx for every ACx.
thanks,
-Len
next prev parent reply other threads:[~2008-03-11 6:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-10 1:53 [PATCH] ACPI: thermal fixup for broken BIOS which has invalid trip points Zhang, Rui
2008-03-11 6:35 ` Len Brown [this message]
2008-03-11 7:52 ` Zhang, Rui
2008-03-11 21:23 ` Németh Márton
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=200803110235.55358.lenb@kernel.org \
--to=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=rui.zhang@intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.