Page MenuHomeFreeBSD

hyperv/storvsc: Enable TRIM support for Win2012R2
ClosedPublic

Authored by honzhan_microsoft.com on Aug 3 2016, 5:05 AM.
Tags
None
Referenced Files
F172619745: D7405.id.diff
Sat, Sep 19, 6:02 PM
F172546160: D7405.diff
Sat, Sep 19, 4:16 AM
Unknown Object (File)
Sat, Sep 12, 4:24 PM
Unknown Object (File)
Sat, Sep 12, 10:15 AM
Unknown Object (File)
Tue, Sep 8, 10:37 PM
Unknown Object (File)
Mon, Sep 7, 3:28 PM
Unknown Object (File)
Thu, Sep 3, 5:19 PM
Unknown Object (File)
Thu, Sep 3, 4:48 PM

Details

Summary

On win8 and win2012 the inquiry response indicates the device is SPC-2, but in fact it is SPC-3.
This is a host issue and has fixed on win2016. FreeBSD VM has to manually set SCSI version to SPC-3 to support TRIM.

Submitted by: Hongjiang Zhang <honzhan microsoft com>

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

honzhan_microsoft.com retitled this revision from to hyperv/storvsc: Enable TRIM support for Win2012R2.
honzhan_microsoft.com updated this object.
sepherosa_gmail.com edited edge metadata.

Fix the comment. Rest looks fine.

sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
2162 ↗(On Diff #18989)

UNMAP?

This revision is now accepted and ready to land.Aug 3 2016, 5:27 AM
sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
2162 ↗(On Diff #18989)

yes, UNMAP is the formal command.

This revision now requires review to proceed.Aug 3 2016, 5:35 AM
This revision is now accepted and ready to land.Aug 3 2016, 5:49 AM
This revision was automatically updated to reflect the committed changes.