Bug 219973 - [Hyper-V] storvsc message appears on Gen2 vm
Summary: [Hyper-V] storvsc message appears on Gen2 vm
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-virtualization (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-14 00:36 UTC by Boris Korzun
Modified: 2017-07-02 23:46 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Korzun 2017-06-14 00:36:19 UTC
I've an Generation 2 Hyper-V virtual machine with Virtual DVD Drive on SCSI 0 ID 1 channel. After successful installation FreeBSD 11.1-BETA1 on disk an error appears on the console every second:
(cd0:strovsc0:0:0:1): storvsc scsi_status = 2
After removing Virtual DVD Drive from VM the error disappears.
Comment 1 Hongjiang 2017-06-19 10:37:18 UTC
See the patch https://reviews.freebsd.org/D11271
Comment 2 Boris Korzun 2017-06-20 04:37:57 UTC
Thx. It's working!

In verbose mode the message "(cd0:storvsc0:0:0:1): storvsc scsi_status = 2, srb_status = 4" appears.

Waiting for the release.
Comment 3 Hongjiang 2017-06-20 09:00:16 UTC
(In reply to Boris Korzun from comment #2)
The patch is updated after further investigation. This occurs because "TEST_UNIT_READY" gets a "Medium not present" response, which can be ignored.
Comment 4 Boris Korzun 2017-06-20 14:55:47 UTC
(In reply to Hongjiang from comment #3)
Thx. The patch is working correctly.
Comment 5 commit-hook freebsd_committer freebsd_triage 2017-06-21 06:45:12 UTC
A commit references this bug:

Author: sephe
Date: Wed Jun 21 06:44:56 UTC 2017
New revision: 320184
URL: https://svnweb.freebsd.org/changeset/base/320184

Log:
  hyperv/storvsc: Reduce log verbosity

  On some windows hosts TEST_UNIT_READY command will return
  SRB_STATUS_ERROR and sense data "NOT READY asc:3a,1 (Medium
  not present - tray closed)", this occurs periodically, and
  not hurt anything else.  So, we prefer to ignore this kind
  of errors.

  PR:		219973
  Submitted by:	Hongjiang Zhang <hongzhan microsoft com>
  MFC after:	3 days
  Sponsored by:	Microsoft
  Differential Revision:	https://reviews.freebsd.org/D11271

Changes:
  head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
Comment 6 Boris Korzun 2017-06-25 23:55:21 UTC
Can the patch be merged from HEAD to 11-STABLE?
Comment 7 commit-hook freebsd_committer freebsd_triage 2017-06-26 02:35:05 UTC
A commit references this bug:

Author: sephe
Date: Mon Jun 26 02:34:00 UTC 2017
New revision: 320348
URL: https://svnweb.freebsd.org/changeset/base/320348

Log:
  MFC 320184

      hyperv/storvsc: Reduce log verbosity

      On some windows hosts TEST_UNIT_READY command will return
      SRB_STATUS_ERROR and sense data "NOT READY asc:3a,1 (Medium
      not present - tray closed)", this occurs periodically, and
      not hurt anything else.  So, we prefer to ignore this kind
      of errors.

      PR:             219973
      Submitted by:   Hongjiang Zhang <hongzhan microsoft com>
      Sponsored by:   Microsoft
      Differential Revision:  https://reviews.freebsd.org/D11271

Changes:
_U  stable/10/
  stable/10/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
Comment 8 Boris Korzun 2017-06-26 04:18:06 UTC
(In reply to commit-hook from comment #7)
The problem is not affected on stable/10. stable/10 doesn't work on Gen2 VMs.
I want the merge to stable/11.
Comment 9 Sepherosa Ziehau 2017-06-26 04:23:31 UTC
(In reply to Boris Korzun from comment #8)

1) I have initiated the MFC to stable/11 request to re.  Waiting for re's approval.

2) Why stable/10 does not work w/ GEN2 Hyper-V?  As far as we have tested @ Microsoft, it works as expected.  If it did not work for you, please file a PR and specific stable/10 SVN version you tested; and we will check.
Comment 10 commit-hook freebsd_committer freebsd_triage 2017-06-26 05:57:41 UTC
A commit references this bug:

Author: sephe
Date: Mon Jun 26 05:56:49 UTC 2017
New revision: 320351
URL: https://svnweb.freebsd.org/changeset/base/320351

Log:
  MFC 320184

      hyperv/storvsc: Reduce log verbosity

      On some windows hosts TEST_UNIT_READY command will return
      SRB_STATUS_ERROR and sense data "NOT READY asc:3a,1 (Medium
      not present - tray closed)", this occurs periodically, and
      not hurt anything else.  So, we prefer to ignore this kind
      of errors.

      Approved by:    re (delphij)
      PR:             219973
      Submitted by:   Hongjiang Zhang <hongzhan microsoft com>
      Sponsored by:   Microsoft
      Differential Revision:  https://reviews.freebsd.org/D11271

Changes:
_U  stable/11/
  stable/11/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
Comment 11 Boris Korzun 2017-07-02 23:46:50 UTC
Fixed in 11.1-RC1.
Thx.