From: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
To: "Tvrtko A. Uršulin" <tvrtko.ursulin@zg.htnet.hr>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Question about IDE disk shutdown
Date: Wed, 2 Jun 2004 00:41:22 +0200 [thread overview]
Message-ID: <200406020041.22420.bzolnier@elka.pw.edu.pl> (raw)
In-Reply-To: <200406011713.59904.tvrtko.ursulin@zg.htnet.hr>
On Tuesday 01 of June 2004 17:13, Tvrtko A. Uršulin wrote:
> 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?
You are missing PM code in ide-disk.c. :-)
See idedisk_start_power_step() and idedisk_complete_power_step(),
also read comment in <linux/ide.h> about ide_pm_state_*.
Bartlomiej
next prev parent reply other threads:[~2004-06-01 22:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-01 15:13 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 [this message]
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=200406020041.22420.bzolnier@elka.pw.edu.pl \
--to=b.zolnierkiewicz@elka.pw.edu.pl \
--cc=linux-kernel@vger.kernel.org \
--cc=tvrtko.ursulin@zg.htnet.hr \
/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®