All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frans Pop <elendil@planet.nl>
To: Mark Lord <liml@rtr.ca>
Cc: linux-arm@vger.kernel.org, linux-ide@vger.kernel.org,
	Saeed Bishara <saeed@marvell.com>, Nicolas Pitre <nico@cam.org>,
	Lennert Buytenhek <buytenh@wantstofly.org>
Subject: Re: [PATCH,v2][1/2] sata-mv: enable HDD led blinking when NCQ is active for GenIIe
Date: Sun, 15 Mar 2009 11:18:49 +0100	[thread overview]
Message-ID: <200903151118.51056.elendil@planet.nl> (raw)
In-Reply-To: <49BBC4E9.3080708@rtr.ca>

On Saturday 14 March 2009, Mark Lord wrote:
> > It seems that with libata-based drivers disabling dma is only
> > possible at boot time and not dynamically, so this isn't possible
> > anyway. I don't know if access errors could cause the driver to fall
> > back to PIO, but I don't really want to test that :-)
>
> Yeah, tricky to see that.  With sata_mv, though, DMA is disabled
> for any irregular (non block layer R/W) commands.
>
> So the code path is being exercised, just too quickly to see if
> the LED actually blinks much in non-DMA modes.
> I think you could test the non-DMA mode with this:
>
>   #!/bin/bash
>   i=0
>   while ( sleep 0.3 ) ; do hdparm --read-sector $i --direct /dev/sda ;
> i=$((i + 1)) ; done

Tried that. The blinking behavior is the same as with 2.6.25, so blink 
mode does get disabled correctly.

It's funny though that, as you expected, with that particular command you 
don't really get any blinking (varying sleep times don't make any real 
difference), so for this particular case it would actually be better to 
have blink mode enabled (I tested that also) even when not using DMA/NCQ. 
But I suggest not to go there.

> I'll queue up the patch for 2.6.29 now, but if you could try the above
> then that would also be cool.

Somehow I doubt you'll manage that, but .30 would be nice :-)

Cheers,
FJP

  reply	other threads:[~2009-03-15 10:18 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-11  7:13 [PATCH,v2][0/2] sata_mv: harddisk activity led no longer responsive on QNAP TS-109 Frans Pop
2009-03-11  7:15 ` [PATCH,v2][1/2] sata-mv: enable HDD led blinking when NCQ is active for GenIIe Frans Pop
2009-03-11 12:47   ` Mark Lord
2009-03-11 13:08     ` Frans Pop
2009-03-11 14:15       ` Mark Lord
2009-03-12 11:40         ` Frans Pop
2009-03-12 14:14           ` Mark Lord
2009-03-12 14:15             ` Mark Lord
2009-03-12 14:26               ` Mark Lord
2009-03-13  8:07                 ` Frans Pop
2009-03-13 13:04                   ` Mark Lord
2009-03-13 18:19                     ` Frans Pop
2009-03-13 19:09                       ` Mark Lord
2009-03-14 11:57                       ` Frans Pop
2009-03-14 14:53                         ` Mark Lord
2009-03-15 10:18                           ` Frans Pop [this message]
2009-03-12 14:27             ` Frans Pop
2009-03-12 14:31               ` Mark Lord
2009-03-11  7:17 ` [PATCH,v2][2/2] sata-mv: add module parameter msq_blink_led to enable quirk " Frans Pop
2009-03-11 12:33 ` [PATCH,v2][0/2] sata_mv: harddisk activity led no longer responsive on QNAP TS-109 Mark Lord
2009-03-11 12:58   ` Mark Lord
2009-03-11 13:01   ` Frans Pop

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=200903151118.51056.elendil@planet.nl \
    --to=elendil@planet.nl \
    --cc=buytenh@wantstofly.org \
    --cc=liml@rtr.ca \
    --cc=linux-arm@vger.kernel.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=nico@cam.org \
    --cc=saeed@marvell.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.