mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Question about IDE disk shutdown
@ 2004-06-01 15:13 Tvrtko A. Uršulin
  2004-06-01 15:42 ` John Bradford
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Tvrtko A. Uršulin @ 2004-06-01 15:13 UTC (permalink / raw)
  To: linux-kernel


Hello all,

Probably a trivial question for ones who know it - what IDE commands does 
kernel issue when shutting down (which results in automatic power-off if ACPI 
is enabled)?

According to my hard disk manual, it is absolutely recommended to put the 
drive in STANDBY or SLEEP mode before power cut-off because in that way heads 
are nicely parked. In that way it is guaranteed to have 300000 head 
load/unload cycles minimum, while in other case it is just 20000 cycles.

It also explicitely states that FLUSH CACHE is not to be used for drive 
power-off because it does not park the heads.

Looking at the source I see in ide-disk.c:

	.gen_driver = {
		.shutdown	= ide_device_shutdown,
	},

Following that I see that ide_device_shutdown flushes the cache, and then 
calls dev->bus->suspend(dev, PM_SUSPEND_STANDBY); which is in fact 
generic_ide_suspend, right? There, something called REQ_PM_SUSPEND is issued 
to the drive. As SUSPEND != STANDBY or SLEEP, I am left uncertain.

Is there a place to be worried or I am missing something? 

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-06-02  6:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-01 15:13 Question about IDE disk shutdown Tvrtko A. Uršulin
2004-06-01 15:42 ` John Bradford
2004-06-01 15:47 ` Eric D. Mudama
2004-06-01 15:57   ` Tvrtko A. Uršulin
2004-06-01 22:41 ` Bartlomiej Zolnierkiewicz
2004-06-02  6:27   ` Tvrtko A. Uršulin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®