NetBSD-Bugs archive

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

Re: kern/50060: kernel crash with i915drmksm on Intel 965Q



Can you please try the attached patch?
Index: agp_i810.c
===================================================================
RCS file: /cvsroot/src/sys/dev/pci/agp_i810.c,v
retrieving revision 1.118
diff -p -u -r1.118 agp_i810.c
--- agp_i810.c	5 Apr 2015 12:55:20 -0000	1.118
+++ agp_i810.c	12 Oct 2015 20:35:42 -0000
@@ -420,7 +420,9 @@ agp_i810_attach(device_t parent, device_
 	case CHIP_I965:
 		apbase = AGP_I965_GMADR;
 		mmadr_bar = AGP_I965_MMADR;
-		mmadr_type |= PCI_MAPREG_MEM_TYPE_64BIT;
+		mmadr_type |= PCI_MAPREG_MEM_TYPE_MASK &
+		    pci_mapreg_type(isc->vga_pa.pa_pc,
+			isc->vga_pa.pa_tag, AGP_I965_MMADR);
 		if (pci_mapreg_info(isc->vga_pa.pa_pc, isc->vga_pa.pa_tag,
 			AGP_I965_MMADR, mmadr_type, NULL, &isc->size, NULL))
 			isc->size = 512*1024; /* XXX */


Home | Main Index | Thread Index | Old Index