All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] scsi interface patch
@ 2007-04-22  2:01 Wang Cheng Yeh
  2007-04-22  9:54 ` Hetz Ben Hamo
  2007-04-22 13:54 ` Paul Brook
  0 siblings, 2 replies; 5+ messages in thread
From: Wang Cheng Yeh @ 2007-04-22  2:01 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 714 bytes --]

The number of responded bytes from scsi device do not match the expected
value of lsi53c895a driver.
hence, the mismatch interrupt happen, but the driver does not always handle
it correctly.
My patch make the responded bytes as expected and the interrupt will not
happen.

Index: hw/scsi-disk.c
===================================================================
RCS file: /sources/qemu/qemu/hw/scsi-disk.c,v
retrieving revision 1.13
diff -r1.13 scsi-disk.c
359c359
<       memset(outbuf, 0, 36);
---
>       memset(outbuf, 0, len);
377c377
<       r->buf_len = 36;
---
>       r->buf_len = len;
442a443,446
>             for(;r->buf_len<len;r->buf_len++)
>             {
>                 *p++=0;
>             }

[-- Attachment #2: Type: text/html, Size: 1207 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-04-22 15:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-22  2:01 [Qemu-devel] scsi interface patch Wang Cheng Yeh
2007-04-22  9:54 ` Hetz Ben Hamo
     [not found]   ` <a20f395e0704220615n268ca374y152fb23ad225ade7@mail.gmail.com>
2007-04-22 13:22     ` Wang Cheng Yeh
2007-04-22 13:54 ` Paul Brook
2007-04-22 15:26   ` Wang Cheng Yeh

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.