Re: [PATCH v1] scsi: libsas: set data_dir as DMA_NONE if libata mark qc as NODATA

2020-09-02 Thread Martin K. Petersen
On Wed, 26 Aug 2020 15:24:26 +0800, Luo Jiaxing wrote: > We found that it will fail every time when set feature to SATA disk by > "sdparm -s WCE=0 /dev/sde". > > After checking protocol, we know that MODE SELECT is the SCSI command for > setting WCE, and it do not exist in the SATA protocol. Ther

Re: [PATCH v1] scsi: libsas: set data_dir as DMA_NONE if libata mark qc as NODATA

2020-08-31 Thread Jason Yan
在 2020/8/26 15:24, Luo Jiaxing 写道: We found that it will fail every time when set feature to SATA disk by "sdparm -s WCE=0 /dev/sde". After checking protocol, we know that MODE SELECT is the SCSI command for setting WCE, and it do not exist in the SATA protocol. Therefore, this commands are en

[PATCH v1] scsi: libsas: set data_dir as DMA_NONE if libata mark qc as NODATA

2020-08-26 Thread Luo Jiaxing
We found that it will fail every time when set feature to SATA disk by "sdparm -s WCE=0 /dev/sde". After checking protocol, we know that MODE SELECT is the SCSI command for setting WCE, and it do not exist in the SATA protocol. Therefore, this commands are encapsulated in the SET FEATURE command i