Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Nov 1998 12:01:30 -0700 (MST)
From:      vanmaren@aros.net
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   kern/8898: PCI devices without an associated driver are silently ignored
Message-ID:  <199811291901.MAA29287@vanmaren.aros.net>

next in thread | raw e-mail | index | archive | help

>Number:         8898
>Category:       kern
>Synopsis:       PCI devices without an associated driver are silently ignored
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 29 11:10:00 PST 1998
>Last-Modified:
>Originator:     Kevin Van Maren
>Organization:
University of Utah
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

FreeBSD vanmaren.aros.net 3.0-CURRENT FreeBSD 3.0-CURRENT #4: Mon Nov  9 20:53:15 MST 1998     vanmaren@vanmaren.aros.net:/usr/src/sys/compile/VANMAREN  i386

>Description:

Unlike in 2.2, when 3.0 doesn't have a driver configured in for a PCI
device, no message is generated.  This can be the root of much confusion,
especially for users who have used 2.2 and expected the behavior to be
similar.

This change occured as a result of the PCI code modifications that have
yet not been completed.

>How-To-Repeat:

Boot a 3.0 kernel without support for one of the PCI devices in the system.
It looks like the device doesn't exist at all.

>Fix:

This is NOT the correct fix, but it is the quick and dirty way to
alert the user that the PCI device was found, but not attached to
any driver.  However, it is better than nothing until the PCI
code has been finished, and it should work as a temporary solution.

Index: pci_compat.c
===================================================================
RCS file: /usr/lsrc/FreeBSD/CVS/src/sys/pci/pci_compat.c,v
retrieving revision 1.13
diff -u -r1.13 pci_compat.c
--- pci_compat.c	1998-11-09 01:03:01-07	1.13
+++ pci_compat.c	1998-11-29 09:34:15-07
@@ -430,6 +430,14 @@
 
 		dinfo->conf.pd_unit = unit;
 
+	} else {
+		/*
+		 * XXX: quick hack so the user knows that the card
+		 * was found, but there was no driver configured for it.
+		 */
+		printf("No driver for device 0x%08lx at pci%d:%d:%d\n",
+			pci_cfgread(cfg, PCIR_DEVVENDOR, 4),
+			cfg->bus, cfg->slot, cfg->func);
 	}
 }
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811291901.MAA29287>