From owner-acpi-jp@jp.FreeBSD.org Wed Oct  2 11:03:38 2002
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) id g9223cj47498;
	Wed, 2 Oct 2002 11:03:38 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from mail.speakeasy.net (mail12.speakeasy.net [216.254.0.212])
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) with ESMTP/inet id g9223b347489
	for <acpi-jp@jp.FreeBSD.org>; Wed, 2 Oct 2002 11:03:37 +0900 (JST)
	(envelope-from jhb@FreeBSD.org)
Received: (qmail 31749 invoked from network); 2 Oct 2002 02:03:36 -0000
Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63])
          (envelope-sender <jhb@FreeBSD.org>)
          by mail12.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP
          for <acpi-jp@jp.FreeBSD.org>; 2 Oct 2002 02:03:36 -0000
Received: from laptop.baldwin.cx (laptop.baldwin.cx [192.168.0.4])
	by server.baldwin.cx (8.12.5/8.12.5) with ESMTP id g9223YBv012209;
	Tue, 1 Oct 2002 22:03:34 -0400 (EDT)
	(envelope-from jhb@FreeBSD.org)
Message-ID: <XFMail.20021001220337.jhb@FreeBSD.org>
X-Mailer: XFMail 1.5.2 on FreeBSD
X-Priority: 3 (Normal)
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0
In-Reply-To: <20021002.071529.99015759.iwasaki@jp.FreeBSD.org>
From: John Baldwin <jhb@freebsd.org>
To: Mitsuru IWASAKI <iwasaki@jp.FreeBSD.org>
Cc: acpi-jp@jp.FreeBSD.org
Reply-To: acpi-jp@jp.FreeBSD.org
Precedence: list
Date: Tue, 01 Oct 2002 22:03:37 -0400
X-Sequence: acpi-jp 1861
Subject: [acpi-jp 1861] RE: probing Host PCI bridge
Errors-To: owner-acpi-jp@jp.FreeBSD.org
Sender: owner-acpi-jp@jp.FreeBSD.org
X-Originator: jhb@FreeBSD.org
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+020902


On 01-Oct-2002 Mitsuru IWASAKI wrote:
> Hi,
> I borrow a new server.  This machine has some problems with probing
> Host PCI bridge under FreeBSD (no problems under Windows, Linux).
> 
> This machine has three Host-PCI bridges, but only first one can be
> found in legacy way.
> With acpi enabled, all bridges can be found, but only first one
> is attached because of wrong _BBN definition.

I think I have seen other DSDT dumps with the same thing (all _BBN
are zero), so it is something we need to handle.  Perhaps the Intel
guys have some advice on figuring out what the physical bus number is
for each bus in this case?  (Can we get it out of the bridge device's
config registers perhaps?)

> ASL at:
> http://www.jp.freebsd.org/cgi/cvsweb.cgi/ACPI/data/I-Server1816.asl?cvsroot=freebsd-jp
> 
> You could find that all _BBN defined as 0, while _BBN should be unique.
> I'm sure that this is ACPI BIOS bug and I'll report this to BIOS vendor
> if I get chance.  Currently I fixed and override DSDT locally.
> 
> Well, my questions;
> 1. Is it possible to attach Host PCI bridges bus even all _BBN 0 case?
>    Maybe bus number need to be adjusted if it duplicated, but I think
>    still problems in AcpiEvPciConfigRegionSetup() of ACPI CA.
> 2. In legacy way, is it possible to detect all Host PCI bridges?
>    Linux can do this so I believe that FreeBSD also can :)

Well, you can look at the sys/i386/pci/pci_bus.c.  That is where we
find host-pci bridges by futzing around with bus 0.  It may be that
we just don't recognize the device id's of the other host bridges?

Hmm.  Can you provide pciconf -l of this machine?  That together with
the ASL might be enough to determine if nexus_pcib can be fixed.

> Comments?

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
