On Fri, 2007-08-31 at 17:31 -0400, Douglas Gilbert wrote: > Gilbert Wu wrote: > > Subject: [PATCH] scsi: Update Aic94xx SAS/SATA Linux open source device > > driver to fix smartctl utility problem. > > > > Contribution: > > Gilbert Wu <gilbert_wu@xxxxxxxxxxx> > > > > Change Log: > > > > > > 1. Fixed the problem that "smartctl -a /dev/some_sata_disk -d ata" > > does not work on aic94xx device drive with SATA devices. > > The smartctl utility send down ATA smart command to aic94xx > > driver and fail to get the result which is stored on ATA output > > register. > > In normal case, Aic94xx’s firmware does not return the value of > > ATA output register to device driver due to performance reason. > > To solve this issue then the driver need to turn on internal > > flag (CSMI_TASK) for particular ATA command to enable firmware > > to return the value of ATA output register. > > Recent versions of smartmontools (say 5.38 from CVS at > sourceforge) don't need the '-d ata' option any more. > > If smartctl or smartd see /dev/sd<x> in Linux, they will > assume a SCSI disk, do an INQUIRY and if they see > "ATA " in the T10 vendor identification field then an > ATA (most likely SATA) disk is assumed behind a SAT layer. > Thereafter ATA commands will be issued, each wrapped in > a SCSI ATA PASS-THROUGH(16) command. > > Perhaps you might check that this works with the aic94xx > driver. [It does work with MPT SAS HBAs.] > > Doug Gilbert The smartctl-5.38 works fine with aic94xx after fixed the ATA register output problem. I also verify it by adding debug message that smartctl-5.8 utility sends ATA smart command to aic94xx driver with SATA device. Thanks! Gilbert - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html