Re: TRIM/UNMAP/DISCARD via ATA Passthrough

From: Martin K. Petersen
Date: Thu Sep 15 2016 - 12:07:37 EST


>>>>> "Jason" == Jason A Donenfeld <Jason@xxxxxxxxx> writes:

Jason,

>> How do they signal that they support the passthrough?

Jason> Through the usual SCSI ATA-passthrough interface, "SAT" (SCSI-ATA
Jason> Command Translation) -- ATA PASS THROUGH SCSI (16) and ATA PASS
Jason> THROUGH SCSI (12).

But how do they signal that ATA passthrough is possible? Is there an ATA
Information VPD page? Is REPORT SUPPORTED OPERATION CODES supported?

We need really solid discovery data before we can entertain enabling
something like this.

--
Martin K. Petersen Oracle Linux Engineering