PCI bus numbering and orphaned devices

From: John-Mark Gurney <gurney_j_at_efn.org>
Date: Mon, 9 Jun 2003 16:58:38 -0700
Hello,

I've recently started work on making FreeBSD work better on a sparc64
box that a friend has.  It's a Netra AX1105-500 (UltraSPARC-IIe 500MHz).

So far I have found out that the pci bus numbering has problems.  We
don't attach pci busses as they are numbered in the bridge/OFW info.
This causes problems with pciconf -l and pciconf -{w,r} not agreeing.
It isn't too hard to tie down the busses to make pciconf agree with
itself.

The second problem is that this has two SME2300BGA chips on it.  They
are combo ebus/usb/1394/ethernet chips.  The problem is that SUN in
order to only have one ebus on the machine, removed function 0 of the
device from probing.  This means that the other functions of the pci
card never get probed.  This can be fixed by making sure we probe all
the functions on all the devices on the PCI buses.  This then gets the
second ethernet and USB to probe and attach.

Of course the correct way to fix it would be to mirror the OFW tree,
and then probe any devices that exist in the OFW tree, but not in our
device tree.

Attached are the two patches to fix both the issues.

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."

Received on Mon Jun 09 2003 - 14:58:42 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:11 UTC