Port-amd64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD/Xen-amd Dom0 crash



On Wed, Feb 06, 2008 at 03:56:02PM +0100, Christoph Egger wrote:
> On an AMD machine with 16 CPUs and 8GB RAM,  I get a panic triggered by an 
> ASSERT in NetBSD/Xen-amd64 Dom0:

Please try with the attached patch.

Joerg
Index: if_bnx.c
===================================================================
RCS file: /data/repo/netbsd/src/sys/dev/pci/if_bnx.c,v
retrieving revision 1.16
diff -u -p -r1.16 if_bnx.c
--- if_bnx.c    31 Dec 2007 22:52:14 -0000      1.16
+++ if_bnx.c    6 Feb 2008 15:33:54 -0000
@@ -2862,7 +2862,7 @@ bnx_chipinit(struct bnx_softc *sc)
 
                nval = pci_conf_read(pa->pa_pc, pa->pa_tag, BNX_PCI_PCIX_CMD);
                pci_conf_write(pa->pa_pc, pa->pa_tag, BNX_PCI_PCIX_CMD,
-                   nval & ~0x2);
+                   nval & ~0x20000);
        }
 
        /* Enable the RX_V2P and Context state machines before access. */
Index: if_bnxreg.h
===================================================================
RCS file: /data/repo/netbsd/src/sys/dev/pci/if_bnxreg.h,v
retrieving revision 1.5
diff -u -p -r1.5 if_bnxreg.h
--- if_bnxreg.h 31 Dec 2007 22:52:14 -0000      1.5
+++ if_bnxreg.h 6 Feb 2008 15:34:12 -0000
@@ -658,7 +658,7 @@ struct flash_spec {
  * PCI registers defined in the PCI 2.2 spec.
  */
 #define BNX_PCI_BAR0                   0x10
-#define BNX_PCI_PCIX_CMD               0x42
+#define BNX_PCI_PCIX_CMD               0x40
 
 /****************************************************************************/
 /* Convenience definitions.                                                 */


Home | Main Index | Thread Index | Old Index