Skip to contentSkip to conversation

on integrating SMART/ATA-Security in usb-storage driver

Merging ATA passthru thomas schorpp 3 participants 6 messages Nov 2, 2005 – Nov 5, 2005 libata

lore
Share & tools
lore
#0 lore raw

hi,

i'll try integrating SMART/ATA-Security in usb-storage driver for usb2 ide disks.

other people working on it yet? ive read something on SMART efforts for SATA.

i think of using the passthrough code (libata?) or module in usb-storage.ko like the SATA driver for ATA-Security.

comments?

thx
y
tom

-------- Original Message --------
Subject: Merging ATA passthru
Date: Fri, 21 Oct 2005 15:14:18 -0400
From: Jeff Garzik <[email protected]>
To: [email protected] <[email protected]>
CC: Linux Kernel <[email protected]>

Folks,

Taking Mark Lord's (and others) criticism to heart, I'm going to merge the ATA passthru work upstream, once 2.6.14 is released.

Since there are still some reported problems that I haven't had time to track down, I'm going to -- like ATAPI -- introduce a module option that enables passthru. It will default to off.

Other features that follow a similar pattern -- 98% there but needs a few final tweaks -- will be treated in the same way.

This gets lesser-used features upstream where they can get the most testing, while defaulting them to off ensures that we won't perturb the known-working code.

This also will help me, in that I won't have to maintain a bunch of parallel codebases.

Jeff

-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#1 lore raw
Quoted 5 lines · thomas schorpp

hi,

i'll try integrating SMART/ATA-Security in usb-storage driver for usb2 ide disks.

Quoted 7 lines

other people working on it yet? ive read something on SMART efforts for SATA.

i think of using the passthrough code (libata?) or module in usb-storage.ko like the SATA driver for ATA-Security.

comments?

Is there any standard way to pass ATA commands over a USB transport? I've never heard of one.

Alan Stern

#2 lore raw
Quoted 14 lines · Alan Stern
Quoted 11 lines · thomas schorpp

hi,

i'll try integrating SMART/ATA-Security in usb-storage driver for usb2 ide disks.

other people working on it yet? ive read something on SMART efforts for SATA.

i think of using the passthrough code (libata?) or module in usb-storage.ko like the SATA driver for ATA-Security.

Quoted 9 lines
Quoted 1 line

comments?

Is there any standard way to pass ATA commands over a USB transport? I've never heard of one.

Alan Stern

yes, ive read on the smartmontools page theres none, at present.

since therere rw-commands issued, why not possible to issue other, too? and sata is short of smart support. both use scsi-emu(?).

i dont think theres a hardware problem.

i'll look at sata/libata/smartctl code and trial'n'error.

maybe i find a way and you can propose it as standard then :) why wait for it?

tom schorpp

#3 lore raw
Quoted 5 lines · thomas schorpp
Quoted 3 lines · Alan Stern

Is there any standard way to pass ATA commands over a USB transport? I've never heard of one.

Quoted 7 lines
Quoted 3 lines

Alan Stern

yes, ive read on the smartmontools page theres none, at present.

since therere rw-commands issued, why not possible to issue other, too?

They aren't ATA read/write commands; they are SCSI commands. If there is a version of SMART that runs over SCSI, you might be able to use it.

Quoted 3 lines

and sata is short of smart support. both use scsi-emu(?).

i dont think theres a hardware problem.

Yes there is. The USB interface on the drive won't recognize an ATA SMART command and won't pass it on to the drive controller.

Quoted 4 lines

i'll look at sata/libata/smartctl code and trial'n'error.

maybe i find a way and you can propose it as standard then :) why wait for it?

Because if you don't wait, then no vendors will have implemented it and so it won't work.

Alan Stern

#4 lore raw
Quoted 22 lines · Alan Stern
Quoted 6 lines · thomas schorpp
Quoted 3 lines · Alan Stern

Is there any standard way to pass ATA commands over a USB transport? I've never heard of one.

Quoted 7 lines
Quoted 3 lines

Alan Stern

yes, ive read on the smartmontools page theres none, at present.

since therere rw-commands issued, why not possible to issue other, too?

They aren't ATA read/write commands; they are SCSI commands. If there is a version of SMART that runs over SCSI, you might be able to use it.

Quoted 7 lines
Quoted 3 lines

and sata is short of smart support. both use scsi-emu(?).

i dont think theres a hardware problem.

Yes there is. The USB interface on the drive won't recognize an ATA SMART command and won't pass it on to the drive controller.

maybe yes,

(cant link) goto cypress, search part CY7C68300A, see the features and application notes, the cypress windows driver can do Security since 2003.

"CY7C68300A Complies with T13's ATA/ATAPI-6 Draft Specification"

and see page 2 of the windos driver pdf doc:

Protect
The next selection, labeled “Protect,” will give the user th ability to password protect their HDD. There are three item that must be true to enable password protection. These are
1. The attached device must support the Security Mode Fea ture set as defined in the ATA/ATAPI specification. The support of Security is determined from an IDENTIFY DE VICE command (Word 128 bit 0).
2. The attached device must be an ATA device.
3. The bridge chip must support ATACB command. The ISD-300A1 and the ISD-200 parts are examples of such ICs.
4. ATA Security must be enabled in the driver’s .inf file.

Quoted 10 lines
Quoted 6 lines

i'll look at sata/libata/smartctl code and trial'n'error.

maybe i find a way and you can propose it as standard then :) why wait for it?

Because if you don't wait, then no vendors will have implemented it and so it won't work.

i'll check the datasheet of the CY7C68300A

Quoted 9 lines

Alan Stern

-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

tom schorpp

#5 lore raw

ATA thru SCSI thru USB

In reply to Alan Stern
Quoted 5 lines

Date: 2 November 2005 08:05:18 GMT-08:00
Subject: Re: [usb-storage] [Merging ATA passthru] on integratingSMART/ATA-Security in usb-storage driver
...
Is there any standard way to pass ATA commands over a USB transport? I've
never heard of one.

T10.org has drafts of an ATA thru SCSI, thus USB thru SCSI real soon now will have an ATA thru SCSI thru USB.

I remember recently there I asked if I could pass ATA Locking By Password thru SCSI.

The answer I got sounded like yes the casual observer can intuit how to construct the bits and yes reasonably transparent bridges will actually pass them thru but technically that draft specification is intentionally opaque, guaranteeing results only for what it lists, and that list doesn't yet include ATA Locking By Password, vendor-specific requests, newly standard requests, etc. etc.

I didn't care myself enough to request authoritative confirmation of that paraphrase of what I thought I heard ...