From owner-svn-src-projects@FreeBSD.ORG Sun Jun 26 18:44:01 2011 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 581ED106564A; Sun, 26 Jun 2011 18:44:01 +0000 (UTC) (envelope-from nwhitehorn@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4785D8FC17; Sun, 26 Jun 2011 18:44:01 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p5QIi0pC063725; Sun, 26 Jun 2011 18:44:00 GMT (envelope-from nwhitehorn@svn.freebsd.org) Received: (from nwhitehorn@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p5QIi0Il063721; Sun, 26 Jun 2011 18:44:00 GMT (envelope-from nwhitehorn@svn.freebsd.org) Message-Id: <201106261844.p5QIi0Il063721@svn.freebsd.org> From: Nathan Whitehorn Date: Sun, 26 Jun 2011 18:44:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r223577 - projects/pseries/powerpc/ofw X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jun 2011 18:44:01 -0000 Author: nwhitehorn Date: Sun Jun 26 18:44:00 2011 New Revision: 223577 URL: http://svn.freebsd.org/changeset/base/223577 Log: Add a tunable to control whether the entire PCI bus will be probed, or just those devices known to exist in the device tree. Some PCI controllers really, really don't like the operating system to cause config cycles to nonexistant devices. Modified: projects/pseries/powerpc/ofw/ofw_pcibus.c Modified: projects/pseries/powerpc/ofw/ofw_pcibus.c ============================================================================== --- projects/pseries/powerpc/ofw/ofw_pcibus.c Sun Jun 26 18:27:17 2011 (r223576) +++ projects/pseries/powerpc/ofw/ofw_pcibus.c Sun Jun 26 18:44:00 2011 (r223577) @@ -101,6 +101,9 @@ DRIVER_MODULE(ofw_pcibus, pcib, ofw_pcib MODULE_VERSION(ofw_pcibus, 1); MODULE_DEPEND(ofw_pcibus, pci, 1, 1, 1); +static int ofw_devices_only=0; +TUNABLE_INT("hw.pci.ofw_devices_only", &ofw_devices_only); + static int ofw_pcibus_probe(device_t dev) { @@ -136,7 +139,8 @@ ofw_pcibus_attach(device_t dev) * functions on multi-function cards. */ - ofw_pcibus_enum_bus(dev, domain, busno); + if (!ofw_devices_only) + ofw_pcibus_enum_bus(dev, domain, busno); return (bus_generic_attach(dev)); }