linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Simon Farnsworth <simon.farnsworth@onelan.co.uk>
To: Frans Pop <elendil@planet.nl>
Cc: Mark Lord <liml@rtr.ca>, Saeed Bishara <saeed@marvell.com>,
	linux-ide@vger.kernel.org, linux-arm@vger.kernel.org,
	jeff@garzik.org, grundler@google.com, buytenh@marvell.com,
	nico@marvell.com, tbm@cyrius.com
Subject: Re: [PATCH] sata_mv: enable active LED blink mode for SoC
Date: Mon, 08 Sep 2008 16:18:16 +0100	[thread overview]
Message-ID: <48C54238.9050106@onelan.co.uk> (raw)
In-Reply-To: <200809081625.31131.elendil@planet.nl>

Frans Pop wrote:
> On Monday 08 September 2008, Frans Pop wrote:
>> On Monday 08 September 2008, Mark Lord wrote:
>>> Frans Pop wrote:
>>>> So, IMO it is an improvement, but it is definitely not a fix for
>>>> the regression.
>>> With a new copy of hdparm, use "hdparm -Q1 /dev/sd?"
>>> Does that fix your "regression" ?
>> $ sudo hdparm -Q1 /dev/sda
>>
>> /dev/sda:
>>  setting queue_depth to 1
>>  queue_depth   =  1
>>
>> Yes, that does result in the original behavior of the led.
>> (Using version 8.9 of hdparm.)
> 
> But that's not new information: we'd already determined some time ago that 
> disabling NCQ "fixed" the problem, both if it is done at runtime and when 
> it is disabled in the driver:
> http://www.spinics.net/lists/linux-ide/msg25642.html
> http://www.spinics.net/lists/linux-ide/msg25645.html

Setting queue_depth to 1 is not disabling NCQ; it's NCQ enabled, no more
than one command outstanding at a time. A queue depth of 0 disables NCQ
completely.

While I don't have the relevant hardware, this sounds like a hardware
limitation, not a regression. I suspect that the LED is active whenever
a command is outstanding; with NCQ allowed to queue more than 1 command
at a time, Linux is keeping the drive fed with commands so that there
are always outstanding commands, and thus the light never goes inactive
during disk activity.

As a result, you never see the LED intensity vary, as the drive never
idles waiting for a new command, but is constantly processing commands
as fast as it can. Allowing the drive to idle would get you the
"flickering" you want, at the expense of the performance gain NCQ provides.
-- 
I'm sure Saeed or Mark will correct me if I'm completely wrong,

Simon Farnsworth


  reply	other threads:[~2008-09-08 16:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-07 11:19 [PATCH] sata_mv: enable active LED blink mode for SoC Saeed Bishara
2008-09-07 11:31 ` saeed bishara
2008-09-08  0:32 ` Frans Pop
2008-09-08 13:40   ` Mark Lord
2008-09-08 14:16     ` Frans Pop
2008-09-08 14:25       ` Frans Pop
2008-09-08 15:18         ` Simon Farnsworth [this message]
2008-09-08 15:37           ` Saeed Bishara
2008-09-08 18:44           ` Mark Lord
2008-09-08 18:47         ` Mark Lord

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=48C54238.9050106@onelan.co.uk \
    --to=simon.farnsworth@onelan.co.uk \
    --cc=buytenh@marvell.com \
    --cc=elendil@planet.nl \
    --cc=grundler@google.com \
    --cc=jeff@garzik.org \
    --cc=liml@rtr.ca \
    --cc=linux-arm@vger.kernel.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=nico@marvell.com \
    --cc=saeed@marvell.com \
    --cc=tbm@cyrius.com \
    /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;
as well as URLs for NNTP newsgroup(s).