mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Tvrtko A. Uršulin" <tvrtko.ursulin@zg.htnet.hr>
To: linux-kernel@vger.kernel.org
Subject: Question about IDE disk shutdown
Date: Tue, 1 Jun 2004 17:13:59 +0200	[thread overview]
Message-ID: <200406011713.59904.tvrtko.ursulin@zg.htnet.hr> (raw)


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? 

             reply	other threads:[~2004-06-01 15:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-01 15:13 Tvrtko A. Uršulin [this message]
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

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=200406011713.59904.tvrtko.ursulin@zg.htnet.hr \
    --to=tvrtko.ursulin@zg.htnet.hr \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®