Re: broken TRIM support for JMS578 in uas mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mo, 2018-07-30 at 14:43 +0300, Mailing Lists wrote:
> I cannot issue TRIM commands to SSD behind a JMS578-based sata to
> usb-c adapter. Tried with Fedora 28 kernel and with latest
> 4.18.0-0.rc6.git0.1.vanilla.knurd.1.fc28.x86_64
> lsblk -D shows that discard is not enabled, but the SSD has this
> capability (see below)
> 
> However Windows 10 successfully TRIMs the device. Also the
> trimcheck.exe tool validates the TRIM operation. This makes me think
> the linux uas driver needs additional reverse engineering or support
> from Jmicron about this chipset.

Hi,

The VPD page for TRIM support should be 0xb0. Could you provide that?

If all else fails:
for each SCSI device (UAS devices internally are SCSI) there is a
"provisioning_mode" attribute in sysfs. You can try to force TRIM
to be used.

https://gist.github.com/cathay4t/e80e02a737242a5f3824606543631bfe

Strictly speaking this is a SCSI issue, not a UAS problem.

	HTH
		Oliver

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux