From: Bill Davidsen <davidsen@tmr.com>
To: Tejun Heo <htejun@gmail.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.18-rc2, problem to wake up spinned down drive?
Date: Wed, 02 Aug 2006 12:56:10 -0400 [thread overview]
Message-ID: <44D0D92A.6080306@tmr.com> (raw)
In-Reply-To: <44CF9C0A.8090405@gmail.com>
Tejun Heo wrote:
> Harald Dunkel wrote:
>> Tejun Heo wrote:
>>> Can you try the following instead of hdparm?
>>>
>>> echo 1 > /sys/bus/scsi/devices/1:0:0:0/power/state
>>>
>>> It will make libata involved in putting the disk to sleep and waking it
>>> up, and, when waking, it will kick the drive in the ass by resetting the
>>> channel. Please try with the latest -rc kernel.
>>>
>>
>> Sorry to say, but this did not work:
>>
>> # echo 1 > /sys/bus/scsi/devices/0:0:0:0/power/state
>> bash: echo: write error: Invalid argument
>> # ll !$
>> ll /sys/bus/scsi/devices/0:0:0:0/power/state
>> -rw-r--r-- 1 root root 0 Aug 1 20:00
>> /sys/bus/scsi/devices/0:0:0:0/power/state
>> # cat !$
>> cat /sys/bus/scsi/devices/0:0:0:0/power/state
>> 0
>> # uname -a
>> Linux bugs 2.6.18-rc3 #2 PREEMPT Sun Jul 30 16:26:22 CEST 2006 i686
>> GNU/Linux
>
> You probably should do 'echo -n 1', the parsing function is pretty picky.
>
Given that the data from the "cat" of state returned a zero with
newline, perhaps unreasonably picky. On a Fedora kernel it just doesn't
seem to work for SATA drives, sample size = 1.
--
Bill Davidsen <davidsen@tmr.com>
Obscure bug of 2004: BASH BUFFER OVERFLOW - if bash is being run by a
normal user and is setuid root, with the "vi" line edit mode selected,
and the character set is "big5," an off-by-one errors occurs during
wildcard (glob) expansion.
next prev parent reply other threads:[~2006-08-02 16:52 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-30 12:01 2.6.18-rc2, problem to wake up spinned down drive? Harald Dunkel
2006-07-30 12:22 ` Johannes Weiner
2006-07-30 12:57 ` Harald Dunkel
2006-08-01 16:16 ` Tejun Heo
2006-08-01 18:14 ` Harald Dunkel
2006-08-01 18:23 ` Tejun Heo
2006-08-02 16:56 ` Bill Davidsen [this message]
2006-08-05 19:32 ` Harald Dunkel
2006-08-05 21:23 ` Pavel Machek
2006-08-07 3:07 ` Tejun Heo
2006-08-07 18:43 ` Harald Dunkel
2006-08-07 19:26 ` Tejun Heo
2006-08-08 18:40 ` Bill Davidsen
2006-08-08 18:59 ` Tejun Heo
2006-08-02 10:18 ` Pavel Machek
2006-08-03 5:44 ` Harald Dunkel
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=44D0D92A.6080306@tmr.com \
--to=davidsen@tmr.com \
--cc=htejun@gmail.com \
--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