From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bj6hG-00064I-By for qemu-devel@nongnu.org; Fri, 09 Jul 2004 21:30:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bj6hE-000646-PW for qemu-devel@nongnu.org; Fri, 09 Jul 2004 21:30:34 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bj6hE-000643-M3 for qemu-devel@nongnu.org; Fri, 09 Jul 2004 21:30:32 -0400 Received: from [38.113.3.61] (helo=babyruth.hotpop.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bj6ex-0003uO-2M for qemu-devel@nongnu.org; Fri, 09 Jul 2004 21:28:11 -0400 Received: from phreaker.net (kubrick.hotpop.com [38.113.3.103]) by babyruth.hotpop.com (Postfix) with SMTP id CA0596B6818 for ; Sat, 10 Jul 2004 00:43:29 +0000 (UTC) Received: from jbrown.mylinuxbox.org (pcp03144805pcs.midval01.tn.comcast.net [68.59.228.236]) by smtp-3.hotpop.com (Postfix) with ESMTP id 5D4A5FDD2DE for ; Sat, 10 Jul 2004 01:06:36 +0000 (UTC) Date: Fri, 9 Jul 2004 21:27:34 -0400 From: "Jim C. Brown" Message-ID: <20040710012734.GA19388@jbrown.mylinuxbox.org> References: <20040709231808.GA17856@jbrown.mylinuxbox.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="VS++wcV0S1rZb1Fb" Content-Disposition: inline In-Reply-To: <20040709231808.GA17856@jbrown.mylinuxbox.org> Subject: [Qemu-devel] Re: openbsd image on freeoszoo Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Jul 09, 2004 at 07:18:08PM -0400, Jim C. Brown wrote: > > I also get lots of "remote transmit DMA failed to complete" errors, for > both the ISA and the PCI nic. I haven't solved this one yet but it seems > harmless. (For the ISA nic, it seems that it MUST be called ne2 btw or network > won't work.) For the PCI nic, I also get "send_packet: Input/output error", > not solved yet either. Fixed in qemu. Attached is the patch that fixes it. This looks like a bug in qemu, as it transfers an odd number of bytes in words, leaving a count of -1 when done. But if so, it has never been caught before... -- Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection. --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="nox.patch" --- qemu/hw/ne2000.c Mon Jun 21 15:42:46 2004 +++ qemu/hw/ne2000.c Fri Jul 9 20:57:32 2004 @@ -447,7 +447,7 @@ #ifdef DEBUG_NE2000 printf("NE2000: asic write val=0x%04x\n", val); #endif - if (s->rcnt == 0) + if ((s->rcnt == 0) || (s->rcnt == (uint16_t)-1)) return; if (s->dcfg & 0x01) { /* 16 bit access */ @@ -463,7 +463,7 @@ /* wrap */ if (s->rsar == s->stop) s->rsar = s->start; - if (s->rcnt == 0) { + if ((s->rcnt == 0) || (s->rcnt == (uint16_t)-1)) { /* signal end of transfert */ s->isr |= ENISR_RDC; ne2000_update_irq(s); @@ -489,7 +489,7 @@ /* wrap */ if (s->rsar == s->stop) s->rsar = s->start; - if (s->rcnt == 0) { + if ((s->rcnt == 0) || (s->rcnt == (uint16_t)-1)) { /* signal end of transfert */ s->isr |= ENISR_RDC; ne2000_update_irq(s); @@ -507,7 +507,7 @@ #ifdef DEBUG_NE2000 printf("NE2000: asic writel val=0x%04x\n", val); #endif - if (s->rcnt == 0) + if ((s->rcnt == 0) || (s->rcnt == (uint16_t)-1)) return; /* 32 bit access */ ne2000_mem_writel(s, s->rsar, val); @@ -516,7 +516,7 @@ /* wrap */ if (s->rsar == s->stop) s->rsar = s->start; - if (s->rcnt == 0) { + if ((s->rcnt == 0) || (s->rcnt == (uint16_t)-1)) { /* signal end of transfert */ s->isr |= ENISR_RDC; ne2000_update_irq(s); @@ -536,7 +536,7 @@ /* wrap */ if (s->rsar == s->stop) s->rsar = s->start; - if (s->rcnt == 0) { + if ((s->rcnt == 0) || (s->rcnt == (uint16_t)-1)) { /* signal end of transfert */ s->isr |= ENISR_RDC; ne2000_update_irq(s); --VS++wcV0S1rZb1Fb--