Re: support for sata7 Streaming Feature Set?

From: Jan Wagner
Date: Wed May 17 2006 - 04:31:34 EST

Hi and thanks for your response,

On Sun, 14 May 2006, Tejun Heo wrote:
> > anyone know if the now already somewhat old Streaming Feature Set of
> > ATA/ATAPI 7 is going to be implemented in the kernel ata functions?
> >
> > According to one web site that contains hdreg.h
> >
> > there's at least some kind of mention in that include file about streaming
> > feature set, kernel 2.6.10. However in 2.6.16 it seems to be gone again.
> > Any ideas if this will be implemented, or how to use it with e.g. hdparm
> > right now?
> I don't think streaming feature set is something to be supported at
> kernel driver level. The usage model doesn't fit with block interface.

I'm definitely not a kernel guru or into its internals, but IMHO ATA/ATAPI
specifications should all also be supported in the kernel or kernel
module, for compliance, or?

The block device's ioctl could have a "data reliability setting"
extension, specifying either the error recovery time limits or for
enabling continuous read/write control (used to return/use partially
correct data) which are part of the ATA Streaming Feature Set.

I.e. an adjustable minimum acceptable data reliability level for block
devices, which can e.g. be relaxed down from a default 100%.

> If you want to use it, the best way would be issuing commands directly
> using sg.

Maybe yes, that, or hdparm, but it seems like a horrible hack :) And sg
being for generic SCSI, I'm not sure how well ATA-7 fits in. At least,
the current debian sg-tools, and commands like 'sg_opcodes /dev/sda'
return "Fixed format, current; Sense key: Illegal Request", "Additional
sense: Invalid command operation code" for those SATA disks I tried.
Doesn't look good for sg useability, AFAICT.

> What are you gonna use it for?

To record or play back real-time continuous streamed data that is not
error-critical but delay critical, from/to a bidirectional data
aquisition card at ~1Gbit/s over longer time spans.

Direct kernel device support for the feature set could also be very useful
for linux projects like the Digital Video Recorder and Video Disk
Recorder. And seek/stutter free video playback from DVD/ATAPI (scratched
disks, for example) or video editing. Etc.

- Jan
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at