From ishmael@babylon.merseine.nu  Wed Apr  3 19:32:40 2002
Return-Path: <ishmael@babylon.merseine.nu>
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 <FreeBSD-gnats-submit@freebsd.org>; 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 <ishmael@mchsi.com>
Reply-To: Jeremy Norris <ishmael@mchsi.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Add PCI_ENABLE_IO_MODES to -stable kernel options
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 03 19:40:01 PST 2002
>Closed-Date:    Tue Apr 30 16:30:29 PDT 2002
>Last-Modified:  Tue Apr 30 16:30:29 PDT 2002
>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:
State-Changed-From-To: open->closed 
State-Changed-By: tmm 
State-Changed-When: Tue Apr 30 16:29:32 PDT 2002 
State-Changed-Why:  
Done, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36716 
>Unformatted:
