Subject: Re: port-amd64/34609: XFree reboots amd64 with 4 GB of RAM
To: None <port-amd64-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Martin Husemann <martin@duskware.de>
List: netbsd-bugs
Date: 06/27/2007 16:30:02
The following reply was made to PR port-amd64/34609; it has been noted by GNATS.

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-amd64/34609: XFree reboots amd64 with 4 GB of RAM
Date: Wed, 27 Jun 2007 18:27:04 +0200

 The following hack (suggested for testing by Joerg Sonnenberger) avoids
 the crash for me, but X still does not work.
 
 Martin
 
 Index: vga_pci.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/pci/vga_pci.c,v
 retrieving revision 1.32
 diff -u -r1.32 vga_pci.c
 --- vga_pci.c	20 Mar 2007 18:05:31 -0000	1.32
 +++ vga_pci.c	27 Jun 2007 16:18:33 -0000
 @@ -193,6 +193,7 @@
  			/* Don't bother fetching I/O BARs. */
  			continue;
  		}
 +#if 0
  		if (PCI_MAPREG_MEM_TYPE(psc->sc_bars[bar].vb_type) ==
  		    PCI_MAPREG_MEM_TYPE_64BIT) {
  			/* XXX */
 @@ -201,6 +202,7 @@
  			bar++;
  			continue;
  		}
 +#endif
  		if (pci_mapreg_info(psc->sc_pc, psc->sc_pcitag, reg,
  		     psc->sc_bars[bar].vb_type,
  		     &psc->sc_bars[bar].vb_base,