Bug 448372 - NCQ not supported under RHEL5U2
Summary: NCQ not supported under RHEL5U2
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: diskdumputils
Version: 5.2
Hardware: i386
OS: Linux
low
high
Target Milestone: rc
: ---
Assignee: David Milburn
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-05-26 10:19 UTC by wuxiaoping
Modified: 2010-05-25 22:32 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-05-25 22:32:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description wuxiaoping 2008-05-26 10:19:36 UTC
Description of problem:
NCQ seem not support under RHEL5U2(2.6.18-85).

The dmesg information show that the kernel support the NCQ but in disable mode:

[root@nsgsh-dhcp-130 ~]# dmesg | grep ata2
ata2: SATA max UDMA/133 cmd 0xd080 ctl 0xd000 bmdma 0xcc08 irq 18
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2.00: HPA detected: current 488390625, native 488397168
ata2.00: ATA-7: SEAGATE STN7225SBSUN250G 0703B217RZ,   3.AZG, max UDMA/133
ata2.00: 488390625 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata2.00: configured for UDMA/133

And the HDD support the NCQ function and already in enabled mode
[root@nsgsh-dhcp-130 ~]# hdparm -I /dev/sda


Commands/features:
        Enabled Supported:
           *    SMART feature set
                Security Mode feature set
           *    Power Management feature set
           *    Write cache
           *    Look-ahead
           *    Host Protected Area feature set
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    DOWNLOAD_MICROCODE
                SET_MAX security extension
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
           *    General Purpose Logging feature set
                64-bit World wide name
                unknown 84[11]
                unknown 84[12]
           *    SATA-I signaling speed (1.5Gb/s)
           *    SATA-II signaling speed (3.0Gb/s)
           *    Native Command Queueing (NCQ)
           *    Phy event counters
                Device-initiated interface power management
           *    Software settings preservation

Version-Release number of selected component (if applicable):
RHEL5U2(2.6.18-85)
HDD:Seagae ST3250820NS
How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:
/sys/block/sda/device/queue_depth=1

Expected results:

/sys/block/sda/device/queue_depth=31
Additional info:
We have tried to change the queue_depth by 
"echo 31 > /sys/block/sdX/device/queue_depth"

[root@nsgsh-dhcp-211 grub]# echo 31 > /sys/block/sda/device/queue_depth 
-bash: /sys/block/sda/device/queue_depth: Permission denied

Comment 1 David Milburn 2010-05-07 15:28:31 UTC
Would you please test a more recent kernel? 

http://people.redhat.com/jwilson/el5/

If this fails, please attach you full dmesg output after boot, thanks.

Comment 2 David Milburn 2010-05-25 22:32:01 UTC
Closing, please re-open if necessary.


Note You need to log in before you can comment on or make changes to this bug.