Re: Fwd: libata extension

2007-03-13 Thread Jeff Garzik

Vitaliyi wrote:

Why is the access to Control register needed?


To execute soft reset for example.


> In the perfect case i would like to be able to execute vendor command
> set (reverse engineered).

Sounds interesting. :-)

Could you give some more details on what are you going to implement?


Reading/writing service area, uploading, downloading modules, working
with flash etc.


SAT (aka ATA passthru) defines how to do soft-reset.

SG_IO supports the ATA_12 and ATA_16 commands which permit soft-reset 
and similar tasks.  libata supports this interface, but does not yet 
support soft-reset and similar non-comment-oriented tasks.  This would 
be the best area to add such features, though.


Jeff



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: Fwd: libata extension

2007-03-12 Thread Vitaliyi

Why is the access to Control register needed?


To execute soft reset for example.


> In the perfect case i would like to be able to execute vendor command
> set (reverse engineered).

Sounds interesting. :-)

Could you give some more details on what are you going to implement?


Reading/writing service area, uploading, downloading modules, working
with flash etc.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Fwd: libata extension

2007-03-12 Thread Vitaliyi

-- Forwarded message --
From: Vitaliyi <[EMAIL PROTECTED]>
Date: Mar 12, 2007 7:03 PM
Subject: Re: libata extension
To: Mark Lord <[EMAIL PROTECTED]>



Use the SCSI SG_IO ioctl() with opcode=ATA_16,
which gives you access to the ATA Passthrough mechanism.
This will work for most ATA commands.


How about soft-reset, is it possible to reach Device Control Register ?
Seems not. I was thinking about patch to libata which allow to use
Control Register.
In the perfect case i would like to be able to execute vendor command
set (reverse engineered).

Is it possible to control timeouts in user space precisely enough and
get rid of unnecessary kernel error messages without touching
syslogd/klogd?

By the way, how to make libata to not probe some ide channel or drive ?


I already use it in hdparm and in some other utilities
for scanning/repairing drives.

A notable exeception are the READ/WRITE LONG opcodes,
which require an extra kernel patch from me,
awaiting merge into libata some year.


Could you please send me this patch once it's ready ?


Thank you
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/