* Unable to change sata NCQ depth due to readonly /sys/block/sdc/device/queue_depth file
@ 2007-06-28 17:19 Roy Franz
0 siblings, 0 replies; 2+ messages in thread
From: Roy Franz @ 2007-06-28 17:19 UTC (permalink / raw)
To: linux-kernel
Hi,
I am unable to change the NCQ settings for a sata drive that
supports it - NCQ is always on. This is due to the sysfs queue_depth
file being read-only. This is on
vanilla 2.6.21.5 running with Debian Etch. (Several earlier versions
of the kernel
had this same issue.) The drive (WD Raptor) is hooked up to a Nvidia
sata controller.
amd64:/# ls -al /sys/block/sdc/device/queue_depth
-r--r--r-- 1 root root 4096 2007-06-28 10:04 /sys/block/sdc/device/queue_depth
amd64:/# cat /sys/block/sdc/device/queue_depth
31
amd64:/#
I searched but did not find any helpful information on this. Forcing
a change by changing permissions on the file did not work.
Thanks,
Roy
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Unable to change sata NCQ depth due to readonly /sys/block/sdc/device/queue_depth file
[not found] <fa.5pA6aeQb5Qu4sbwkw3l3yzw2bNQ@ifi.uio.no>
@ 2007-06-28 23:20 ` Robert Hancock
0 siblings, 0 replies; 2+ messages in thread
From: Robert Hancock @ 2007-06-28 23:20 UTC (permalink / raw)
To: Roy Franz; +Cc: linux-kernel
Roy Franz wrote:
> Hi,
>
> I am unable to change the NCQ settings for a sata drive that
> supports it - NCQ is always on. This is due to the sysfs queue_depth
> file being read-only. This is on
> vanilla 2.6.21.5 running with Debian Etch. (Several earlier versions
> of the kernel
> had this same issue.) The drive (WD Raptor) is hooked up to a Nvidia
> sata controller.
>
> amd64:/# ls -al /sys/block/sdc/device/queue_depth
> -r--r--r-- 1 root root 4096 2007-06-28 10:04
> /sys/block/sdc/device/queue_depth
> amd64:/# cat /sys/block/sdc/device/queue_depth
> 31
> amd64:/#
>
> I searched but did not find any helpful information on this. Forcing
> a change by changing permissions on the file did not work.
Looks like sata_nv is missing the change_queue_depth function in the
SCSI host template, resulting in this file showing as read-only. I'll
cook up a patch when I get a chance.
--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-06-28 23:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <fa.5pA6aeQb5Qu4sbwkw3l3yzw2bNQ@ifi.uio.no>
2007-06-28 23:20 ` Unable to change sata NCQ depth due to readonly /sys/block/sdc/device/queue_depth file Robert Hancock
2007-06-28 17:19 Roy Franz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox