Skip to contentSkip to conversation

SATA NCQ

DISCUSSION Jeff Garzik 1 participant 1 message Feb 2, 2005 1 message not in the archive libata

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 4 lines · Mat Loikkanen

Jeff-

Any word on when Native Command Queueing will be supported by Libata? I see in your status report there's a dependency on drives being available. As it

[snip, due to mailing list]

Quoted 3 lines

implemented over in Windows?) ... I'd be available to work on adding NCQ support to Libata, but my unfamiliarity with the SCSI layer's workings may be a big hurdle. What do you think?

(cc'd to linux-ide, for others' information)

Well, you also need a controller that does DMA and NCQ, not just a drive. NCQ is basically a handshaking protocol between the controller and drive, letting the drive tell the controller when to DMA <x> sectors from outstanding ATA command <y>.

No hard date on NCQ availability, and you are welcome (encouraged!) to contribute NCQ support.

Adding NCQ support is
(a) telling the SCSI layer our queue depth
(b) handling more than one command outstanding at a time (libata should be mostly ready for this, already)
(c) error handling

(c) is the hardest part. Getting working NCQ is easy ('a' and 'b'), but making sure you recover correctly from errors is the biggest part of the task.

That said... patches are always welcome!

Jeff