Module Name:    src
Committed By:   christos
Date:           Thu Jun 12 03:23:58 UTC 2014

Modified Files:
        src/sys/dev/pci: agp_i810.c

Log Message:
Giving a 0 gtt_size for G4X causes a panic when you try to bus map 0 size.
Give it 256, like the default aperture size for it. Now it works again.


To generate a diff of this commit:
cvs rdiff -u -r1.95 -r1.96 src/sys/dev/pci/agp_i810.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/agp_i810.c
diff -u src/sys/dev/pci/agp_i810.c:1.95 src/sys/dev/pci/agp_i810.c:1.96
--- src/sys/dev/pci/agp_i810.c:1.95	Wed Jun 11 15:35:46 2014
+++ src/sys/dev/pci/agp_i810.c	Wed Jun 11 23:23:58 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: agp_i810.c,v 1.95 2014/06/11 19:35:46 riastradh Exp $	*/
+/*	$NetBSD: agp_i810.c,v 1.96 2014/06/12 03:23:58 christos Exp $	*/
 
 /*-
  * Copyright (c) 2000 Doug Rabson
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.95 2014/06/11 19:35:46 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.96 2014/06/12 03:23:58 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -823,7 +823,7 @@ agp_i810_init(struct agp_softc *sc)
 			}
 			break;
 		case CHIP_G4X:
-			gtt_size = 0;
+			gtt_size = 256;
 			break;
 		default:
 			panic("impossible chiptype %d", isc->chiptype);

Reply via email to