All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
To: qemu-devel <qemu-devel@nongnu.org>
Cc: John Snow <jsnow@redhat.com>
Subject: [Qemu-devel] cmdide0:1:0: lost interrupt on NetBSD 7
Date: Sat, 07 Nov 2015 13:29:07 +0000	[thread overview]
Message-ID: <563DFCA3.6060200@ilande.co.uk> (raw)

Whilst testing various images under qemu-system-sparc64, I've noticed a
regression with the new NetBSD 7 release. On boot the kernel hangs just
after detecting the CDROM and eventually outputs "cmdide0:1:0: lost
interrupt" onto the console.

A quick session with git bisect points to the following patch:

9ef2e93f9b1888c7d0deb4a105149138e6ad2e98 is the first bad commit
commit 9ef2e93f9b1888c7d0deb4a105149138e6ad2e98
Author: John Snow <jsnow@redhat.com>
Date:   Thu Sep 17 14:17:05 2015 -0400

    atapi: abort transfers with 0 byte limits

    We're supposed to abort on transfers like this, unless we fill
    Word 125 of our IDENTIFY data with a default transfer size, which
    we don't currently do.

    This is an ATA error, not a SCSI/ATAPI one.
    See ATA8-ACS3 sections 7.17.6.49 or 7.21.5.

    If we don't do this, QEMU will loop forever trying to transfer
    zero bytes, which isn't particularly useful.

    Signed-off-by: John Snow <jsnow@redhat.com>
    Reviewed-by: Markus Armbruster <armbru@redhat.com>
    Message-id: 1442253685-23349-2-git-send-email-jsnow@redhat.com

Reproducing the bug is easy enough using the command line below:

./qemu-system-sparc64 -cdrom NetBSD-7.0-sparc64.iso -boot d -nographic

Testing also shows that NetBSD 6 is apparently unaffected by this change.


ATB,

Mark.

             reply	other threads:[~2015-11-07 13:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-07 13:29 Mark Cave-Ayland [this message]
2015-11-09 16:45 ` [Qemu-devel] cmdide0:1:0: lost interrupt on NetBSD 7 John Snow

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=563DFCA3.6060200@ilande.co.uk \
    --to=mark.cave-ayland@ilande.co.uk \
    --cc=jsnow@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.