From owner-freebsd-bugs Wed Apr 3 19:40:12 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id C41F237B41C for ; Wed, 3 Apr 2002 19:40:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g343e2P77128; Wed, 3 Apr 2002 19:40:02 -0800 (PST) (envelope-from gnats) Received: from babylon.merseine.nu (12-216-237-91.client.mchsi.com [12.216.237.91]) by hub.freebsd.org (Postfix) with ESMTP id F366337B419 for ; Wed, 3 Apr 2002 19:32:37 -0800 (PST) Received: (from ishmael@localhost) by babylon.merseine.nu (8.11.6/8.11.6) id g343WbN52273; Wed, 3 Apr 2002 21:32:37 -0600 (CST) (envelope-from ishmael) Message-Id: <200204040332.g343WbN52273@babylon.merseine.nu> Date: Wed, 3 Apr 2002 21:32:37 -0600 (CST) From: Jeremy Norris Reply-To: Jeremy Norris To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/36716: Add PCI_ENABLE_IO_MODES to -stable kernel options Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 36716 >Category: kern >Synopsis: Add PCI_ENABLE_IO_MODES to -stable kernel options >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Apr 03 19:40:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Jeremy Norris >Release: FreeBSD 4.5-STABLE i386 >Organization: None >Environment: System: FreeBSD babylon.merseine.nu 4.5-STABLE FreeBSD 4.5-STABLE #0: Fri Mar 22 17:10:21 CST 2002 ishmael@babylon.merseine.nu:/usr/src/sys/compile/BABYLON i386 >Description: src/sys/pci/pci.c has an option PCI_ENABLE_IO_MODES in -stable, (like src/sys/dev/pci/pci.c on -current) but it was never added as a valid kernel config option. This option is useful to getting some devices to probe and attach (for example, my Intel 82801CA ICH3 sound chip on my Sony VAIO laptop). >How-To-Repeat: Try adding PCI_ENABLE_IO_MODES to your kernel to get the sound chip on recent Sony Vaio's to probe/attach and watch config bomb. >Fix: Index: src/sys/conf/options =================================================================== RCS file: /home/ncvs/src/sys/conf/options,v retrieving revision 1.191.2.39 diff -u -r1.191.2.39 options --- src/sys/conf/options 2002/02/19 23:08:49 1.191.2.39 +++ src/sys/conf/options 2002/04/04 03:21:48 @@ -386,6 +386,7 @@ MSGBUF_SIZE opt_msgbuf.h # PCI related options +PCI_ENABLE_IO_MODES opt_pci.h PCI_QUIET opt_pci.h # NFS options Index: src/sys/i386/conf/LINT =================================================================== RCS file: /home/ncvs/src/sys/i386/conf/Attic/LINT,v retrieving revision 1.749.2.106 diff -u -r1.749.2.106 LINT --- src/sys/i386/conf/LINT 2002/03/11 01:23:05 1.749.2.106 +++ src/sys/i386/conf/LINT 2002/04/04 03:21:51 @@ -1780,6 +1780,8 @@ # PCI options # +#Enable pci resources left off by a "lazy" BIOS: +options PCI_ENABLE_IO_MODES #options PCI_QUIET #quiets PCI code on chipset settings Index: src/sys/pci/pci.c =================================================================== RCS file: /home/ncvs/src/sys/pci/Attic/pci.c,v retrieving revision 1.141.2.14 diff -u -r1.141.2.14 pci.c --- src/sys/pci/pci.c 2002/01/10 12:08:22 1.141.2.14 +++ src/sys/pci/pci.c 2002/04/04 03:21:51 @@ -28,6 +28,7 @@ */ #include "opt_bus.h" +#include "opt_pci.h" #include "opt_simos.h" >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message