login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
September
»
14
Re: [PATCH] SATA: Blacklist systems that spin off disks during ACPI power off
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Jeff Garzik
Subject:
Re: [PATCH] SATA: Blacklist systems that spin off disks during ACPI power off
Date: Saturday, September 13, 2008 - 7:21 pm
Tejun Heo wrote:
quoted text
> Rafael J. Wysocki wrote: >> SATA: Blacklist systems that spin off disks during ACPI power off >> >> Some notebooks from HP have the problem that their BIOSes attempt to >> spin down hard drives before entering ACPI system states S4 and S5. >> This leads to a yo-yo effect during system power-off shutdown and the >> last phase of hibernation when the disk is first spun down by the >> kernel and then almost immediately turned on and off by the BIOS. >> This, in turn, may result in shortening the disk's life times. >> >> To prevent this from happening we can blacklist the affected systems >> using DMI information. However, only the on-board controlles should >> be blacklisted and their PCI slot numbers can be used for this >> purpose. Unfortunately the existing interface for checking DMI >> information of the system is not very convenient for this purpose, >> because to use it, we would have to define special callback functions >> or create a separate struct dmi_system_id table for each blacklisted >> system. >> >> To overcome this difficulty introduce a new function >> dmi_first_match() returning a pointer to the first entry in an array >> of struct dmi_system_id elements that matches the system DMI >> information. Then, we can use this pointer to access the entry's >> .driver_data field containing the additional information, such as >> the PCI slot number, allowing us to do the desired blacklisting. >> >> Introduce a new libata flag ATA_FLAG_NO_POWEROFF_SPINDOWN that, if >> set, will prevent disks from being spun off during system power off >> and hibernation (to handle the hibernation case we need a new system >> state SYSTEM_HIBERNATE_ENTER that can be checked against by libata, >> in analogy with SYSTEM_POWER_OFF). Use dmi_first_match() to set this >> flag for some systems affected by the problem described above (HP nx6325, >> HP nx6310, HP 2510p). >> >> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> > > libata part looks good to me but I think it would be better to > separate out DMI changes into a separate patch.
Did these changes ever get separated out? --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Regression: SATA disk double spin-off during hibernation o ...
, Rafael J. Wysocki
, (Thu Aug 28, 3:02 pm)
Re: Regression: SATA disk double spin-off during hibernati ...
, Tejun Heo
, (Fri Aug 29, 3:03 am)
Re: Regression: SATA disk double spin-off during hibernati ...
, Rafael J. Wysocki
, (Fri Aug 29, 3:41 am)
Re: Regression: SATA disk double spin-off during hibernati ...
, Tejun Heo
, (Fri Aug 29, 3:42 am)
[PATCH] SATA: Blacklist systems that spin off disks during ...
, Rafael J. Wysocki
, (Sat Sep 6, 10:23 am)
Re: [PATCH] SATA: Blacklist systems that spin off disks du ...
, Tejun Heo
, (Mon Sep 8, 4:38 am)
Re: [PATCH] SATA: Blacklist systems that spin off disks du ...
, Jeff Garzik
, (Sat Sep 13, 7:21 pm)
Re: [PATCH] SATA: Blacklist systems that spin off disks du ...
, Rafael J. Wysocki
, (Sun Sep 14, 5:00 pm)
Re: [PATCH] SATA: Blacklist systems that spin off disks du ...
, Jeff Garzik
, (Wed Sep 17, 2:50 pm)
[PATCH 0/6] SATA: Blacklist systems that spin off disks du ...
, Rafael J. Wysocki
, (Mon Sep 29, 3:06 pm)
[PATCH 1/6] Hibernation: Introduce new system state for th ...
, Rafael J. Wysocki
, (Mon Sep 29, 3:10 pm)
[PATCH 2/6] DMI: Introduce dmi_first_match to make the int ...
, Rafael J. Wysocki
, (Mon Sep 29, 3:13 pm)
[PATCH 3/6] SATA: Blacklisting of systems that spin off di ...
, Rafael J. Wysocki
, (Mon Sep 29, 3:14 pm)
[PATCH 4/6] SATA AHCI: Blacklist system that spins off dis ...
, Rafael J. Wysocki
, (Mon Sep 29, 3:15 pm)
[PATCH 5/6] SATA Sil: Blacklist system that spins off disk ...
, Rafael J. Wysocki
, (Mon Sep 29, 3:16 pm)
[PATCH 6/6] SATA PIIX: Blacklist system that spins off dis ...
, Rafael J. Wysocki
, (Mon Sep 29, 3:18 pm)
Re: [PATCH 2/6] DMI: Introduce dmi_first_match to make the ...
, Tejun Heo
, (Tue Sep 30, 8:31 pm)
Re: [PATCH 1/6] Hibernation: Introduce new system state fo ...
, Tejun Heo
, (Tue Sep 30, 8:32 pm)
Re: [PATCH 3/6] SATA: Blacklisting of systems that spin of ...
, Tejun Heo
, (Tue Sep 30, 8:34 pm)
Re: [PATCH 1/6] Hibernation: Introduce new system state fo ...
, Rafael J. Wysocki
, (Wed Oct 1, 4:36 am)
Re: [PATCH 3/6] SATA: Blacklisting of systems that spin of ...
, Rafael J. Wysocki
, (Wed Oct 1, 4:36 am)
Re: [PATCH 1/6] Hibernation: Introduce new system state fo ...
, Andrew Morton
, (Fri Oct 3, 1:35 am)
Re: [PATCH 1/6] Hibernation: Introduce new system state fo ...
, Rafael J. Wysocki
, (Fri Oct 3, 4:27 am)
Re: [PATCH 1/6] Hibernation: Introduce new system state fo ...
, Andrew Morton
, (Fri Oct 3, 5:43 am)
Re: [PATCH 1/6] Hibernation: Introduce new system state fo ...
, Arjan van de Ven
, (Fri Oct 3, 5:49 am)
Re: [PATCH 1/6] Hibernation: Introduce new system state fo ...
, Rafael J. Wysocki
, (Fri Oct 3, 8:03 am)
Re: [PATCH 1/6] Hibernation: Introduce new system state fo ...
, Rafael J. Wysocki
, (Fri Oct 3, 8:05 am)
[PATCH 0/6] SATA: Blacklist systems that spin off disks du ...
, Rafael J. Wysocki
, (Fri Oct 3, 2:48 pm)
[PATCH 1/6] Hibernation: Introduce system_entering_hibernation
, Rafael J. Wysocki
, (Fri Oct 3, 2:51 pm)
[PATCH 2/6] DMI: Introduce dmi_first_match to make the int ...
, Rafael J. Wysocki
, (Fri Oct 3, 2:52 pm)
[PATCH 3/6] SATA: Blacklisting of systems that spin off di ...
, Rafael J. Wysocki
, (Fri Oct 3, 2:57 pm)
[PATCH 4/6] SATA AHCI: Blacklist system that spins off dis ...
, Rafael J. Wysocki
, (Fri Oct 3, 2:57 pm)
[PATCH 5/6] SATA Sil: Blacklist system that spins off disk ...
, Rafael J. Wysocki
, (Fri Oct 3, 2:58 pm)
[PATCH 6/6] SATA PIIX: Blacklist system that spins off dis ...
, Rafael J. Wysocki
, (Fri Oct 3, 2:58 pm)
Re: [PATCH 1/6] Hibernation: Introduce system_entering_hib ...
, Alan Cox
, (Fri Oct 3, 4:27 pm)
Re: [PATCH 1/6] Hibernation: Introduce system_entering_hib ...
, Tejun Heo
, (Sat Oct 4, 12:02 am)
Re: [PATCH 1/6] Hibernation: Introduce system_entering_hib ...
, Rafael J. Wysocki
, (Sat Oct 4, 3:13 am)
Re: [PATCH 1/6] Hibernation: Introduce system_entering_hib ...
, Rafael J. Wysocki
, (Sat Oct 4, 3:14 am)
Re: [PATCH 1/6] Hibernation: Introduce system_entering_hib ...
, Alan Cox
, (Sat Oct 4, 2:50 pm)
Re: [PATCH 1/6] Hibernation: Introduce system_entering_hib ...
, Tejun Heo
, (Sat Oct 4, 2:52 pm)
Re: [PATCH 1/6] Hibernation: Introduce system_entering_hib ...
, Tejun Heo
, (Sat Oct 4, 3:27 pm)
Re: [PATCH 1/6] Hibernation: Introduce system_entering_hib ...
, Rafael J. Wysocki
, (Sat Oct 4, 3:30 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Uwe Kleine-König
Re: [PATCH v2] ARM: allow, but warn, when issuing ioremap() on RAM
Ingo Molnar
Re: [RFC/RFT PATCH] sched: automated per tty task groups
Rafael J. Wysocki
Re: Why do so many machines need "noapic"?
Matthew Garrett
Re: [RFC][PATCH -mm 3/3] PM: Disable _request_firmware before hibernation/suspend
git
:
Mike Miller
git message
Junio C Hamano
Re: [PATCH] Detached HEAD (experimental)
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Petr Baudis
Re: PPC SHA-1 Updates in "pu"
git-commits-head
:
Linux Kernel Mailing List
libata: disable ATAPI AN by default
Linux Kernel Mailing List
ARM: 5905/1: ARM: Global ASID allocation on SMP
Linux Kernel Mailing List
timer: Try to survive timer callback preempt_count leak
Linux Kernel Mailing List
Documentation/timers/hpet_example.c: only build on X86
Linux Kernel Mailing List
ALSA: hda - Enable beep on Realtek codecs with PCI SSID override
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
Gerrit Renker
[PATCH 1/5] dccp: Initialisation framework for feature negotiation
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Badalian Vyacheslav
Re: tc filter flow hash question
openbsd-misc
:
Stuart Henderson
Re: Kuro5hin: OpenBSD Founder Theo deRaadt Has Conflict of Interest With AMD
Christian Weisgerber
Re: CARP with a single public IP address
Darrin Chandler
Re: strange output on openbsd C code
Marco Peereboom
Re: OpenBSD culture?
KURS ENGLESKOG JEZIKA NA 10 CD-a
AUDIO-VIZUELNA METODA UCENJA ENGLESKOG JEZIKA na 10 CD-a
Colocation donated by:
Syndicate