From owner-freebsd-bugs Sun Nov 29 11:09:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA24167 for freebsd-bugs-outgoing; Sun, 29 Nov 1998 11:09:23 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA24158 for ; Sun, 29 Nov 1998 11:09:22 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from Unknown UID 563@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id LAA28358; Sun, 29 Nov 1998 11:10:01 -0800 (PST) Received: from vanmaren.aros.net (vanmaren.aros.net [208.219.24.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA23568 for ; Sun, 29 Nov 1998 11:01:48 -0800 (PST) (envelope-from vanmaren@vanmaren.aros.net) Received: (from vanmaren@localhost) by vanmaren.aros.net (8.9.1/8.9.1) id MAA29287; Sun, 29 Nov 1998 12:01:30 -0700 (MST) (envelope-from vanmaren) Message-Id: <199811291901.MAA29287@vanmaren.aros.net> Date: Sun, 29 Nov 1998 12:01:30 -0700 (MST) From: vanmaren@aros.net Reply-To: vanmaren@cs.utah.edu To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/8898: PCI devices without an associated driver are silently ignored Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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