Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Giving a 0 gtt_size for G4X causes a panic when ...



details:   https://anonhg.NetBSD.org/src/rev/13da410aa6e8
branches:  trunk
changeset: 796607:13da410aa6e8
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jun 12 03:23:58 2014 +0000

description:
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.

diffstat:

 sys/dev/pci/agp_i810.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1ed61419a545 -r 13da410aa6e8 sys/dev/pci/agp_i810.c
--- a/sys/dev/pci/agp_i810.c    Wed Jun 11 22:34:26 2014 +0000
+++ b/sys/dev/pci/agp_i810.c    Thu Jun 12 03:23:58 2014 +0000
@@ -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 @@
                        }
                        break;
                case CHIP_G4X:
-                       gtt_size = 0;
+                       gtt_size = 256;
                        break;
                default:
                        panic("impossible chiptype %d", isc->chiptype);



Home | Main Index | Thread Index | Old Index