panic: resource_list_alloc: resource entry is busy

Mathew Kanner mat at cnd.mcgill.ca
Sat Dec 13 16:58:01 PST 2003


On Dec 13, Ryan Carmichael wrote:
> Until today I had been getting contigmalloc0: size must not be 0 panics, but
> I haven't tried in a month or so.
> 
> Unfortunately I don't have any working FreeBSD machines to test any patches
> but am willing to try about anything else.
> 
> (sorry, hand-typed so it is not all here)
> ...
> FreeBSD 5.2-CURRENT-20031212-JPSNAP #0: Fri Dec 12 01:27:13 GMT 2003
> ...
> CPU: Intel Pentium III(851.94-MHz 686-class CPU)
> ...
> agp0: <Ali Generic host to PCI bridge> mem0xf80000000-0xfbffffff at device
> 0.0 on pci0
> agp0: bad initial aperture size, disabling
> device_probe_and_attach: agp0 attach returned 6
> ....

	Hello Ryan,
	This patch won't make agp work for you but it might stop the
panic.

	--Mat

-- 
	In general, a standard is very useful, whether it's de facto
	or du jour.
	- Microsoft's Greg Sullivan
	as misquoted by News.Com
-------------- next part --------------
Index: src/sys/pci/agp_ali.c
===================================================================
RCS file: /home/ncvs/src/sys/pci/agp_ali.c,v
retrieving revision 1.9
diff -u -r1.9 agp_ali.c
--- src/sys/pci/agp_ali.c	11 Nov 2003 21:49:18 -0000	1.9
+++ src/sys/pci/agp_ali.c	14 Dec 2003 00:55:45 -0000
@@ -104,6 +104,7 @@
 	sc->initial_aperture = AGP_GET_APERTURE(dev);
 	if (sc->initial_aperture == 0) {
 		device_printf(dev, "bad initial aperture size, disabling\n");
+		agp_generic_detach(dev);
 		return ENXIO;
 	}
 


More information about the freebsd-current mailing list