All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] scsi: lsi problems since "unit attention on reset"
Date: Mon, 26 Sep 2011 11:23:34 +0200	[thread overview]
Message-ID: <4E804496.6040305@siemens.com> (raw)
In-Reply-To: <4E802EB5.3000800@redhat.com>

On 2011-09-26 09:50, Paolo Bonzini wrote:
> On 09/26/2011 09:27 AM, Jan Kiszka wrote:
>> Hi Paolo,
>>
>> I'm facing problems over latest qemu with our special guest OS that is
>> using the LSI controller. It hangs during boot now. This can be resolved
>> by reverting commit c7b488721d (scsi: report unit attention on reset).
>>
>> I cannot exclude a bug in the guest driver at this point, but maybe you
>> also have some idea what could go wrong in the SCSI stack or the LSI
>> emulation. Any suggestions where to look at would be welcome.
> 
> It works for me under Linux, so I suspect it is a bug in the guest OS or 
> the BIOS, which should send TEST UNIT READY before trying to communicate 
> to the HBA.  You can use tracing to detect that, it probably sends 
> something like READ CAPACITY and fails because it does not expect that 
> command to fail.

I'm just getting these scsi events, then the guest stops:

scsi_req_parsed target 0 lun 0 tag 0 command 0 dir 0 length 0
scsi_req_parsed_lba target 0 lun 0 tag 0 command 0 lba 0
scsi_req_alloc target 0 lun 0 tag 0
scsi_test_unit_ready target 0 lun 0 tag 0
scsi_req_build_sense target 0 lun 0 tag 0 key 0x6 asc 0x29 ascq 00
scsi_req_dequeue target 0 lun 0 tag 0

> 
> That said, since there are 3 out of 3 BIOSes that couldn't cope with 
> that change---Linux and Windows work of course---it makes sense to 
> revert it even though the patch by itself is correct.  If you send it 
> out, I'll gladly add my Acked-by.

We are currently checking the driver situation internally. But if you
say you want it reverted in any case, I'll send a patch.

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux

  reply	other threads:[~2011-09-26  9:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-26  7:27 [Qemu-devel] scsi: lsi problems since "unit attention on reset" Jan Kiszka
2011-09-26  7:50 ` Paolo Bonzini
2011-09-26  9:23   ` Jan Kiszka [this message]
2011-09-26  9:49     ` Paolo Bonzini
2011-09-26 10:26       ` Jan Kiszka
2011-09-26 11:00         ` Paolo Bonzini
2011-09-26 15:10         ` Jan Kiszka
2011-09-26 15:22           ` Paolo Bonzini
2011-09-26 16:12             ` Jan Kiszka

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=4E804496.6040305@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.