>Synopsis:      lspci broken and PCI USB hub not recognized on sparc64
>Category:      sparc64
>Environment:
        System      : OpenBSD 5.5
        Details     : OpenBSD 5.5-beta (GENERIC) #128: Wed Jan 22 06:50:22 MST 
2014
                         
[email protected]:/usr/src/sys/arch/sparc64/compile/GENERIC

        Architecture: OpenBSD.sparc64
        Machine     : sparc64
>Description:
        My system is a Sun Ultra 5, that I received with three open PCI slots.  
I inserted a generic 5-port USB 2.0 PCI card 
        into one of the slots, but it was not detected in dmesg or usbdevs, as 
you can see below.  I installed pciutils and 
        usbutils from packages, to see if the controller was at least 
recognized by the kernel.  lsusb returns no output.  
        Running lspci did not work as expected as an unprivileged user or as 
root.  As an unprivileged user I got this error:

        pcilib: Cannot open /dev/pci
        lspci: Cannot find any working access method.

        Running lspci as root, I received this different error:

        lspci: obsd_read: ioctl(PCIOCREAD) failed

        On my system /dev/pci is a symlink to /dev/pci0, which is mode 700 - I 
suspect the unprivileged user error was basically
        a permissions error on the device node.  The root error is more 
concerning, since according to pci(4) that should always 
        work as root when PCI devices are present.

>How-To-Repeat:
        Plug a generic USB 2.0 PCI card into a Sun Ultra 5 and run lspci.
>Fix:
        unknown, possibly change kernel build to include different drivers, and 
change kernel data structures used in lspci


dmesg:
OpenBSD 5.5-beta (GENERIC) #128: Wed Jan 22 06:50:22 MST 2014
    [email protected]:/usr/src/sys/arch/sparc64/compile/GENERIC
real mem = 134217728 (128MB)
avail mem = 118308864 (112MB)
mainbus0 at root: Sun Ultra 5/10 UPA/PCI (UltraSPARC-IIi 270MHz)
cpu0 at mainbus0: SUNW,UltraSPARC-IIi (rev 1.2) @ 269.853 MHz
cpu0: physical 16K instruction (32 b/l), 16K data (32 b/l), 256K external (64 
b/l)
psycho0 at mainbus0 addr 0xfffc4000: SUNW,sabre, impl 0, version 0, ign 7c0
psycho0: bus range 0-2, PCI bus 0
psycho0: dvma map c0000000-dfffffff
pci0 at psycho0
ppb0 at pci0 dev 1 function 1 "Sun Simba" rev 0x11
pci1 at ppb0 bus 1
ebus0 at pci1 dev 1 function 0 "Sun PCIO EBus2" rev 0x01
auxio0 at ebus0 addr 726000-726003, 728000-728003, 72a000-72a003, 
72c000-72c003, 72f000-72f003
power0 at ebus0 addr 724000-724003 ivec 0x25
"SUNW,pll" at ebus0 addr 504000-504002 not configured
sab0 at ebus0 addr 400000-40007f ivec 0x2b: rev 3.2
sabtty0 at sab0 port 0: console
sabtty1 at sab0 port 1
comkbd0 at ebus0 addr 3083f8-3083ff ivec 0x29: no keyboard
comms0 at ebus0 addr 3062f8-3062ff ivec 0x2a
wsmouse0 at comms0 mux 0
lpt0 at ebus0 addr 3043bc-3043cb, 30015c-30015d, 700000-70000f ivec 0x22: polled
"fdthree" at ebus0 addr 3023f0-3023f7, 706000-70600f, 720000-720003 ivec 0x27 
not configured
clock1 at ebus0 addr 0-1fff: mk48t59
"flashprom" at ebus0 addr 0-fffff not configured
audioce0 at ebus0 addr 200000-2000ff, 702000-70200f, 704000-70400f, 
722000-722003 ivec 0x23 ivec 0x24: nvaddrs 0
audio0 at audioce0
hme0 at pci1 dev 1 function 1 "Sun HME" rev 0x01: ivec 0x7e1, address 
ff:ff:ff:ff:ff:ff
nsphy0 at hme0 phy 1: DP83840 10/100 PHY, rev. 1
machfb0 at pci1 dev 2 function 0 "ATI Mach64" rev 0x9a
machfb0: ATY,GT-B, 1152x900
wsdisplay0 at machfb0 mux 1
wsdisplay0: screen 0 added (std, sun emulation)
pciide0 at pci1 dev 3 function 0 "CMD Technology PCI0646" rev 0x03: DMA, 
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using ivec 0x7e0 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <ST34342A>
wd0: 16-sector PIO, LBA, 4103MB, 8404830 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <LG, CD-ROM CRD-8322B, 1.05> ATAPI 5/cdrom 
removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
ppb1 at pci0 dev 1 function 0 "Sun Simba" rev 0x11
pci2 at ppb1 bus 2
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
scsibus2 at softraid0: 256 targets
bootpath: /pci@1f,0/pci@1,1/ide@3,0/disk@0,0
root on wd0a (8e05fe923331f791.a) swap on wd0b dump on wd0b
WARNING: clock lost 16094 days -- CHECK AND RESET THE DATE!

usbdevs:
usbdevs: no USB controllers found

Reply via email to