From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: Jens Axboe <axboe@kernel.dk>, Christoph Hellwig <hch@lst.de>,
Linus Torvalds <torvalds@linux-foundation.org>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
"K. Y. Srinivasan" <kys@microsoft.com>,
Dexuan Cui <decui@microsoft.com>, Long Li <longli@microsoft.com>,
Josh Poulson <jopoulso@microsoft.com>,
v-adsuho@microsoft.com, linux-scsi@vger.kernel.org,
Haiyang Zhang <haiyangz@microsoft.com>
Subject: Re: SCSI regression in 4.11
Date: Wed, 01 Mar 2017 11:20:22 -0800 [thread overview]
Message-ID: <1488396022.2183.26.camel@HansenPartnership.com> (raw)
In-Reply-To: <1488394620.2183.20.camel@linux.vnet.ibm.com>
On Wed, 2017-03-01 at 10:57 -0800, James Bottomley wrote:
> On Wed, 2017-03-01 at 10:48 -0800, Stephen Hemminger wrote:
> > On Tue, 28 Feb 2017 22:20:58 -0800
> > James Bottomley <jejb@linux.vnet.ibm.com> wrote:
> >
> > > On Tue, 2017-02-28 at 17:25 -0800, Stephen Hemminger wrote:
> > > > [ 1.346023] hv_storvsc: IO cmd 0x12 0x0 0x0 scsi status 0x0
> > > > srb
> > > > status 0x20 length 36
> > > > [ 1.352913] inquiry data: 00000000: 00 aa be f1 5c 98 ff ff
> > > > f0
> > > > 64
> > > > 02 89 ff ff ff ff
> > > > [ 1.356543] inquiry data: 00000010: 00 00 00 00 00 00 00 00
> > > > 00
> > > > 00
> > > > 00 00 00 00 00 00
> > > > [ 1.359996] inquiry data: 00000020: 00 00 00 00
> > > > [ 1.361835] scsi host1: scsi scan: INQUIRY result too short
> > > > (5),
> > > > using 36
> > > > [ 1.361888] hv_storvsc: IO cmd 0xa0 0x0 0x0 scsi status 0x0
> > > > srb
> > > > status 0x1 length 16
> > > > [ 1.362307] hv_storvsc: IO cmd 0x12 0x0 0x0 scsi status 0x0
> > > > srb
> > > > status 0x1 length 36
> > > > [ 1.362308] inquiry data: 00000000: 00 23 34 f1 5c 98 ff ff
> > > > f0
> > > > 64
> > > > 02 89 ff ff ff ff
> > > > [ 1.362309] inquiry data: 00000010: 00 00 00 00 00 00 00 00
> > > > 00
> > > > 00
> > > > 00 00 00 00 00 00
> > > > [ 1.362309] inquiry data: 00000020: 00 00 00 00
> > > > [ 1.377423] scsi 1:0:0:1: Direct-Access
> > > >
> > > >
> > > > PQ: 0 ANSI: 0
> > >
> > > Well, this pinpoints the fault to the block uncopy, I think. The
> > > Inquiry data is clearly correct in the page frame, so it's not
> > > getting
> > > copied to the scsi_execute() buffer for some reason.
> > >
> > > James
> > >
> >
> > Why do I see different sense data on good (4.10) versus bad (4.11)
> >
> > Good 4.10 initial INQUIRY buffer
> > [ 1.012413] data: 00000000: 00 2e 64 71 db 97 ff ff f0 94 62 96
> > ff
> > ff ff ff
> > [ 1.012413] data: 00000010: 00 00 00 00 00 00 00 00 00 00 00 00
> > 00
> > 00 00 00
> > [ 1.012414] data: 00000020: 00 00 00 00
> >
> > Bad 4.11 initial INQUIRY buffer
> > [ 1.218159] data: 00000000: 00 00 05 02 1f 00 00 02 4d 73 66 74
> > 20
> > 20 20 20
> > [ 1.225654] data: 00000010: 56 69 72 74 75 61 6c 20 44 69 73 6b
> > 20
> > 20 20 20
> > [ 1.242930] data: 00000020: 31 2e 30 20
> >
> > Is the kmap_atomic looking at the right place?
>
> Actually, the 4.11 data looks good. You can tell from the string at
> byte 8. It's rubbish in the 4.10 one and 'Msft ' in the 4.11 one (I
> assume you just reversed the cut and paste).
>
> These should be the page physical addresses you sent down to the
> hypervisor, so kmap should work. Perhaps print out the physical page
> address so we see what we're getting.
Another possible explanation is non zero sg->offset, in which case you
might not see the INQUIRY data because you start at the beginning of
the page. This shouldn't happen because you specify no alignment
override in the driver, so we should start the INQUIRY buffer on a new
page and copy the data back to the real buffer, but perhaps that's what
changed.
James
next prev parent reply other threads:[~2017-03-02 0:44 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-27 23:30 SCSI regression in 4.11 Stephen Hemminger
2017-02-28 1:19 ` Stephen Hemminger
2017-02-28 2:16 ` Jens Axboe
2017-02-28 14:08 ` Christoph Hellwig
2017-02-28 15:32 ` Jens Axboe
2017-02-28 17:06 ` James Bottomley
2017-02-28 17:16 ` Stephen Hemminger
2017-02-28 17:31 ` Jens Axboe
2017-02-28 18:41 ` Stephen Hemminger
2017-02-28 19:10 ` James Bottomley
2017-02-28 18:57 ` Stephen Hemminger
2017-02-28 23:48 ` James Bottomley
2017-03-01 1:25 ` Stephen Hemminger
2017-03-01 6:20 ` James Bottomley
2017-03-01 6:48 ` Stephen Hemminger
2017-03-01 15:50 ` Christoph Hellwig
2017-03-01 15:54 ` Stephen Hemminger
2017-03-02 0:01 ` Christoph Hellwig
2017-03-02 0:56 ` Christoph Hellwig
2017-03-02 1:40 ` Stephen Hemminger
2017-03-02 13:25 ` Hannes Reinecke
2017-03-02 17:48 ` Stephen Hemminger
2017-03-02 18:23 ` Stephen Hemminger
2017-03-02 18:36 ` James Bottomley
2017-03-02 19:05 ` Stephen Hemminger
2017-03-02 19:18 ` James Bottomley
2017-03-03 22:29 ` Stephen Hemminger
2017-03-04 0:50 ` [RFC] hv_storvsc: error handling Stephen Hemminger
2017-03-04 11:55 ` Hannes Reinecke
2017-03-04 21:03 ` KY Srinivasan
2017-03-04 21:36 ` James Bottomley
2017-03-04 21:39 ` KY Srinivasan
2017-03-04 23:55 ` KY Srinivasan
2017-03-06 16:36 ` Stephen Hemminger
2017-03-06 17:48 ` KY Srinivasan
2017-03-06 17:57 ` Stephen Hemminger
2017-03-07 5:06 ` Christoph Hellwig
2017-03-07 6:08 ` KY Srinivasan
2017-03-02 0:57 ` SCSI regression in 4.11 Stephen Hemminger
2017-03-01 16:13 ` Stephen Hemminger
2017-03-01 18:48 ` Stephen Hemminger
2017-03-01 18:57 ` James Bottomley
2017-03-01 19:20 ` James Bottomley [this message]
2017-03-01 19:39 ` Stephen Hemminger
2017-03-01 21:27 ` Stephen Hemminger
2017-03-01 23:09 ` James Bottomley
2017-03-01 23:39 ` Stephen Hemminger
2017-03-01 19:00 ` Linus Torvalds
2017-02-28 17:33 ` Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1488396022.2183.26.camel@HansenPartnership.com \
--to=james.bottomley@hansenpartnership.com \
--cc=axboe@kernel.dk \
--cc=decui@microsoft.com \
--cc=haiyangz@microsoft.com \
--cc=hch@lst.de \
--cc=jopoulso@microsoft.com \
--cc=kys@microsoft.com \
--cc=linux-scsi@vger.kernel.org \
--cc=longli@microsoft.com \
--cc=martin.petersen@oracle.com \
--cc=stephen@networkplumber.org \
--cc=torvalds@linux-foundation.org \
--cc=v-adsuho@microsoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox