qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Artyom Tarasenko <atar4qemu@googlemail.com>
To: qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [patch] esp.c fast SCSI-bus reset
Date: Fri, 24 Jul 2009 12:21:53 +0200	[thread overview]
Message-ID: <fb8d4f70907240321k632527c3lea0550929e91a50c@mail.gmail.com> (raw)

It seems to make a little sense to raise an interrupt still having
"bus reset" status, since it makes the host think the bus is busy.
The proper way would be to tell all the scsi devices to reset before
the interrupt.
The patch makes scsi probe to come a little further when using OBP
under sparc32.

--- hw/esp.c.master     2009-07-24 00:28:30.146422134 +0200
+++ hw/esp.c    2009-07-24 12:08:48.585546871 +0200
@@ -505,7 +505,7 @@
             break;
         case CMD_BUSRESET:
             DPRINTF("Bus reset (%2.2x)\n", val);
-            s->rregs[ESP_RINTR] = INTR_RST;
+           s->rregs[ESP_RINTR] = 0;
             if (!(s->wregs[ESP_CFG1] & CFG1_RESREPT)) {
                 esp_raise_irq(s);
             }

             reply	other threads:[~2009-07-24 10:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-24 10:21 Artyom Tarasenko [this message]
2009-07-26 13:40 ` [Qemu-devel] [patch] esp.c fast SCSI-bus reset Blue Swirl
2009-07-28 18:14   ` Artyom Tarasenko
2009-07-31  7:44     ` Blue Swirl
2009-07-31  8:29       ` Artyom Tarasenko

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=fb8d4f70907240321k632527c3lea0550929e91a50c@mail.gmail.com \
    --to=atar4qemu@googlemail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).