Re: agp0 hang in 5.2.1-RELEASE

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 24 Mar 2004 13:36:20 -0500
On Thursday 18 March 2004 04:24 pm, Nate Lawson wrote:
> It can't be disabled at the loader prompt?

It would need this untested patch:

Index: agp_ali.c
===================================================================
RCS file: /usr/cvs/src/sys/pci/agp_ali.c,v
retrieving revision 1.9
diff -u -r1.9 agp_ali.c
--- agp_ali.c	11 Nov 2003 21:49:18 -0000	1.9
+++ agp_ali.c	24 Mar 2004 18:34:20 -0000
_at__at_ -80,6 +80,8 _at__at_
 {
 	const char *desc;
 
+	if (resource_disabled("agp", device_get_unit(dev))
+		return (ENXIO);
 	desc = agp_ali_match(dev);
 	if (desc) {
 		device_verbose(dev);
Index: agp_amd.c
===================================================================
RCS file: /usr/cvs/src/sys/pci/agp_amd.c,v
retrieving revision 1.16
diff -u -r1.16 agp_amd.c
--- agp_amd.c	22 Aug 2003 07:13:20 -0000	1.16
+++ agp_amd.c	24 Mar 2004 18:34:34 -0000
_at__at_ -207,6 +207,8 _at__at_
 {
 	const char *desc;
 
+	if (resource_disabled("agp", device_get_unit(dev))
+		return (ENXIO);
 	desc = agp_amd_match(dev);
 	if (desc) {
 		device_verbose(dev);
Index: agp_i810.c
===================================================================
RCS file: /usr/cvs/src/sys/pci/agp_i810.c,v
retrieving revision 1.25
diff -u -r1.25 agp_i810.c
--- agp_i810.c	23 Oct 2003 17:48:30 -0000	1.25
+++ agp_i810.c	24 Mar 2004 18:34:48 -0000
_at__at_ -183,6 +183,8 _at__at_
 {
 	const char *desc;
 
+	if (resource_disabled("agp", device_get_unit(dev))
+		return (ENXIO);
 	desc = agp_i810_match(dev);
 	if (desc) {
 		device_t bdev;
Index: agp_intel.c
===================================================================
RCS file: /usr/cvs/src/sys/pci/agp_intel.c,v
retrieving revision 1.19
diff -u -r1.19 agp_intel.c
--- agp_intel.c	17 Sep 2003 02:58:17 -0000	1.19
+++ agp_intel.c	24 Mar 2004 18:34:54 -0000
_at__at_ -124,6 +124,8 _at__at_
 {
 	const char *desc;
 
+	if (resource_disabled("agp", device_get_unit(dev))
+		return (ENXIO);
 	desc = agp_intel_match(dev);
 	if (desc) {
 		device_verbose(dev);
Index: agp_nvidia.c
===================================================================
RCS file: /usr/cvs/src/sys/pci/agp_nvidia.c,v
retrieving revision 1.2
diff -u -r1.2 agp_nvidia.c
--- agp_nvidia.c	23 Aug 2003 19:32:18 -0000	1.2
+++ agp_nvidia.c	24 Mar 2004 18:35:02 -0000
_at__at_ -116,6 +116,8 _at__at_
 {
 	const char *desc;
 
+	if (resource_disabled("agp", device_get_unit(dev))
+		return (ENXIO);
 	desc = agp_nvidia_match(dev);
 	if (desc) {
 		device_verbose(dev);
Index: agp_sis.c
===================================================================
RCS file: /usr/cvs/src/sys/pci/agp_sis.c,v
retrieving revision 1.9
diff -u -r1.9 agp_sis.c
--- agp_sis.c	22 Aug 2003 07:13:20 -0000	1.9
+++ agp_sis.c	24 Mar 2004 18:35:06 -0000
_at__at_ -82,6 +82,8 _at__at_
 {
 	const char *desc;
 
+	if (resource_disabled("agp", device_get_unit(dev))
+		return (ENXIO);
 	desc = agp_sis_match(dev);
 	if (desc) {
 		device_verbose(dev);
Index: agp_via.c
===================================================================
RCS file: /usr/cvs/src/sys/pci/agp_via.c,v
retrieving revision 1.11
diff -u -r1.11 agp_via.c
--- agp_via.c	22 Aug 2003 07:13:20 -0000	1.11
+++ agp_via.c	24 Mar 2004 18:35:11 -0000
_at__at_ -90,6 +90,8 _at__at_
 {
 	const char *desc;
 
+	if (resource_disabled("agp", device_get_unit(dev))
+		return (ENXIO);
 	desc = agp_via_match(dev);
 	if (desc) {
 		device_verbose(dev);

-- 
John Baldwin <jhb_at_FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
Received on Wed Mar 24 2004 - 10:41:56 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:48 UTC