From owner-freebsd-current Wed Oct 2 16:34:49 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B155837B401 for ; Wed, 2 Oct 2002 16:34:46 -0700 (PDT) Received: from spielberg.vip.uk.com (spielberg.vip.uk.com [194.176.218.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id B04AA43E4A for ; Wed, 2 Oct 2002 16:34:45 -0700 (PDT) (envelope-from mtm98@linuxdriven.net) Received: from modem-118-63-60-62.vip.uk.com ([62.60.63.118] helo=uriel.fakedomain.net) by spielberg.vip.uk.com with esmtp (Exim 3.35 #2) id 17wt0n-0005OH-00 for current@freebsd.org; Thu, 03 Oct 2002 00:34:38 +0100 Received: from uriel.fakedomain.net (mtm98@localhost [127.0.0.1]) by uriel.fakedomain.net (8.12.6/8.12.3) with ESMTP id g92NaK30000670 for ; Thu, 3 Oct 2002 00:36:22 +0100 (BST) (envelope-from mtm98@uriel.fakedomain.net) Received: (from mtm98@localhost) by uriel.fakedomain.net (8.12.6/8.12.3/Submit) id g92NaHb0000665 for current@freebsd.org; Thu, 3 Oct 2002 00:36:17 +0100 (BST) (envelope-from mtm98) Date: Thu, 3 Oct 2002 00:36:17 +0100 From: Michael McGoldrick To: current@freebsd.org Subject: Re: PCI brokenness Message-ID: <20021002233617.GA611@uriel.fakedomain.net> References: <20021001211543.GA607@uriel.fakedomain.net> <20021002.084110.69705085.iwasaki@jp.FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021002.084110.69705085.iwasaki@jp.FreeBSD.org> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG After a cvsup and buildworld/kernel, everything seems to be working again. Thanks! On Wed, Oct 02, 2002 at 08:41:10AM +0900, Mitsuru IWASAKI wrote: > Hi, > > > On 01-Oct-2002 Michael McGoldrick wrote: > > > On Tue, Oct 01, 2002 at 12:48:47PM -0400, John Baldwin wrote: > > >> > > >> On 01-Oct-2002 Michael McGoldrick wrote: > > >> > 'Me too' > > >> > Dmesg from working kernel attached, not sure how to get a dmesg from the > > >> > broken one. :( > > >> > Send me a mail if any further info would help. > > >> > (I have built two kernels recently, both have had this problem) > > >> > > >> What exact problem do you have. No PCI devices? > > >> > > >> -- > > >> > > >> John Baldwin <>< http://www.FreeBSD.org/~jhb/ > > >> "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ > > >> > > >> To Unsubscribe: send mail to majordomo@FreeBSD.org > > >> with "unsubscribe freebsd-current" in the body of the message > > > > > > Yes, the kernel seems to attempt to mount root right after this line: > > > device_probe_and_attach: acpi0 attach returned 6 > > > > Can you try with the stuff I committed yesterday? It fixed the case (for > > my tests at least) of legacy0 failing to attach or probe when acpi failed > > to attach. > > If still failed, please try this. > I've noticed that no chance to call pci_cfgregopen() before probing > PCI children in case Host PCI bridge _CRS is not method or _INI method > don't access to PCI config space or something. > > Thanks > > Index: acpi_pcib_acpi.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/acpica/acpi_pcib_acpi.c,v > retrieving revision 1.23 > diff -u -r1.23 acpi_pcib_acpi.c > --- acpi_pcib_acpi.c 26 Aug 2002 18:30:27 -0000 1.23 > +++ acpi_pcib_acpi.c 1 Oct 2002 23:17:51 -0000 > @@ -114,6 +115,9 @@ > !acpi_disabled("pci") && > acpi_MatchHid(dev, "PNP0A03")) { > > + if (!pci_cfgregopen()) > + return(ENXIO); > + > /* > * Set device description > */ > Index: acpi_pcib_pci.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/acpica/acpi_pcib_pci.c,v > retrieving revision 1.1 > diff -u -r1.1 acpi_pcib_pci.c > --- acpi_pcib_pci.c 26 Aug 2002 18:30:27 -0000 1.1 > +++ acpi_pcib_pci.c 1 Oct 2002 23:18:38 -0000 > @@ -114,6 +115,9 @@ > return (ENXIO); > if (acpi_get_handle(dev) == NULL) > return (ENXIO); > + if (!pci_cfgregopen()) > + return (ENXIO); > + > device_set_desc(dev, "ACPI PCI-PCI bridge"); > return (-1000); > } > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message -- Michael McGoldrick: mmcgoldrick@linuxdriven.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message