From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: SCSI regression in 4.11 Date: Wed, 1 Mar 2017 15:39:30 -0800 Message-ID: <20170301153930.113f2260@xeon-e3> References: <20170227152955.1362aabb@xeon-e3> <20170227171931.30b9f619@xeon-e3> <20170228140812.GC20197@lst.de> <1488301573.3046.9.camel@linux.vnet.ibm.com> <20170228105741.6253bb8a@xeon-e3> <1488325732.11610.9.camel@linux.vnet.ibm.com> <20170228172532.280811ed@xeon-e3> <1488349258.20321.11.camel@linux.vnet.ibm.com> <20170301104800.00322bd4@xeon-e3> <1488394620.2183.20.camel@linux.vnet.ibm.com> <1488396022.2183.26.camel@HansenPartnership.com> <20170301132741.7aa3eb96@xeon-e3> <1488409784.2183.48.camel@HansenPartnership.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from mail-pf0-f171.google.com ([209.85.192.171]:32877 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752865AbdCBAHy (ORCPT ); Wed, 1 Mar 2017 19:07:54 -0500 Received: by mail-pf0-f171.google.com with SMTP id w189so15644267pfb.0 for ; Wed, 01 Mar 2017 16:07:02 -0800 (PST) In-Reply-To: <1488409784.2183.48.camel@HansenPartnership.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: James Bottomley Cc: Jens Axboe , Christoph Hellwig , Linus Torvalds , "Martin K. Petersen" , "K. Y. Srinivasan" , Dexuan Cui , Long Li , Josh Poulson , v-adsuho@microsoft.com, linux-scsi@vger.kernel.org, Haiyang Zhang On Wed, 01 Mar 2017 15:09:44 -0800 James Bottomley wrote: > On Wed, 2017-03-01 at 13:27 -0800, Stephen Hemminger wrote: > > Ok here is much better data, wasn't accounting for the offset in the > > payload > > But now both responses are the same: > > > Working 4.10 > [...] > > [ 1.048920] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 > > srb status 0x20 length 36 > > [ 1.048920] hv_storvsc: payload size 288 count 1 offset 1024 len > > 36 pfn 0x1f15d7 > > [ 1.048921] hv_storvsc: sg 0: phys 0x1f15d7000 virt > > ffff9270b15d7000 offset 0x400 length 36 > > [ 1.048922] data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 > > 00 00 00 ................ > > [ 1.048923] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 > > 00 00 00 ................ > > [ 1.048923] data: 00000020: 00 00 00 00 > > .... > > [ 1.048942] scsi host1: scsi scan: INQUIRY result too short (5), > > using 36 > > > > > > Broken 4.11 > [...] > > [ 1.812926] hv_storvsc: INQUIRY cmd 0x12 0x0 0x0 scsi status 0x0 > > srb status 0x20 length 36 > > [ 1.812927] hv_storvsc: payload size 288 count 1 offset 2816 len > > 36 pfn 0x1f198b > > [ 1.812928] hv_storvsc: sg 0: phys 0x1f198b000 virt > > ffff9a42f198b000 offset 0xb00 length 36 > > [ 1.812953] data: 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 > > 00 00 00 ................ > > [ 1.812953] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 > > 00 00 00 ................ > > [ 1.812954] data: 00000020: 00 00 00 00 > > .... > > [ 1.813258] scsi host1: scsi scan: INQUIRY result too short (5), > > using 36 > > Hyper-v is returning a buffer of zeros for INQUIRY to the offline > device in both cases ... that means the problem isn't where I thought > it was. > > James Yes. Earlier output wasn't accounting for offsets, new dump code is.