linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Renninger <trenn@suse.de>
To: linux-acpi@vger.kernel.org
Cc: Joey Lee <jlee@novell.com>, Holger Macht <hmacht@suse.de>,
	Zhang Rui <rui.zhang@intel.com>,
	Rafael Wysocki <rwysocki@suse.de>
Subject: [RFC] Shutdown on thermal HOT event if no userspace tool registered being able to do S4
Date: Tue, 30 Mar 2010 10:23:10 +0100	[thread overview]
Message-ID: <201003301123.10711.trenn@suse.de> (raw)

Hi,

this is related to:
commit fa80945269f312bc609e8384302f58b03c916e12
    ACPI thermal: Don't invalidate thermal zone if critical trip point is bad
and
commit 8b7ef6d8f16274da42344cd50746ddb1c93c25ea
    ACPI thermal: Check for thermal zone requirement

There the critical trip point is replaced with the hot trip
point if latest Windows OS is detected (Vista also? I think yes,
but need to double check).

This seem to get more common and it looks like Windows suggests
to use hot trip points for thermal emergency shutdowns (S4).
It looks like the default Windows thermal emergency power off is
S4. Thus the hot trip point is used and the critical trip point
is of no use anymore (and often gets replaced or is invalid).

As thermal emergency shut down is something urgent there is this
direct call /sbin/poweroff in orderly_poweroff(true) compare with
kernel/sys.c and drivers/thermal/thermal_sys.c
This won't work in above cases when BIOS writers assume the machine
is shut down with _HOT already and do not provide _CRT anymore.

My idea is to also shutdown the system on _HOT by default,
the same way as done if _CRT is exceeded as long as no userspace
explicitly set a sysfs (only one file set by thermal_sys.c somewhere
in /sys?).
Background is that S4 needs some setup (e.g. swap) or userspace hooks
to make sure S4 succeeds and everything (network, whatever...) is set
up correctly afterwards.

Requirement for the userspace tool setting the "do not shutdown if a
hot thermal event happened" would be:
  - Fetch the thermal hot event
  - Reliably power off the system (shutdown if S4 did not succeed)
  - ...

Comments?
What userspace tools are candidates to implement this if this
makes sense?

Thanks,

      Thomas

             reply	other threads:[~2010-03-30  9:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-30  9:23 Thomas Renninger [this message]
2010-03-31  0:14 ` [RFC] Shutdown on thermal HOT event if no userspace tool registered being able to do S4 Henrique de Moraes Holschuh
2010-04-12  2:38 ` Zhang Rui
2010-04-13  8:54   ` Thomas Renninger
  -- strict thread matches above, loose matches on Subject: below --
2010-03-30 16:12 Joey Lee
2010-03-30 16:31 ` Thomas Renninger
2010-04-01 13:18 Joey Lee
2010-04-01 13:40 ` Kay Sievers
2010-04-12  2:06 Joey Lee

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=201003301123.10711.trenn@suse.de \
    --to=trenn@suse.de \
    --cc=hmacht@suse.de \
    --cc=jlee@novell.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=rui.zhang@intel.com \
    --cc=rwysocki@suse.de \
    /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;
as well as URLs for NNTP newsgroup(s).