Subject: Re: interrupt probe fails on quad tulip pci card
To: Martin Husemann <martin@duskware.de>
From: Tobias Nygren <tnn+nbsd@nygren.pp.se>
List: port-sparc64
Date: 12/07/2006 12:47:54
Martin Husemann wrote:
> On Sun, Dec 03, 2006 at 02:54:37PM +0100, Tobias Nygren wrote:
>
>> So it looks like the interface interrupts at 0x11b and
>> probably works correctly except that the kernel thinks that
>> it's at interrupt 4.
>>
>
> Can you go to OF, do a cd to whatever the tlps are called there, and do
> a ".properties" for all four tlps, then "cd .." up all the way, at each
> step providing the output of "ls" and ".properties"?
>
> Since OF_mapintr fails, this card has no full OF support, so we need to setup
> the PCI bridges ourself. OpenBSD has some fixes for that, but they do not
> port straight forward. I don't understand why only the last interrupt maps
> completely bogus though, this should be answered by the OF output though.
>
> Thanks,
>
> Martin
>
Here we go ... (I can't find anything wrong in particular here)
Next I think I'll try to rebuild psycho.c with DEBUG defined.
{0} ok cd /
{0} ok ls
f0089050 pci@6,2000
f00883f0 pci@6,4000
f00876ac pci@4,2000
f008662c pci@4,4000
f00862c0 SUNW,UltraSPARC-II@3,0
f0085f54 SUNW,UltraSPARC-II@2,0
f0085be8 SUNW,UltraSPARC-II@1,0
f008587c SUNW,UltraSPARC-II@0,0
f0083230 mc@0,0
f007104c counter-timer@1f,1c00
f006fa2c pci@1f,2000
f006ec38 pci@1f,4000
f005798c associations
f00523c8 virtual-memory
f0051de8 memory@0,0
f002db58 aliases
f002dae8 options
f002d9b0 openprom
f002d944 chosen
f002d8d4 packages
{0} ok cd pci@4,4000
{0} ok ls
f00b43d8 pci@4
{0} ok .properties
slot-names 00 00 00 1c 50 43 49 20 73 6c 6f 74 20 39 00 50
available 82000000 00000000 00300000 00000000 7fd00000
81000000 00000000 00002000 00000000 0000e000
bus-range 00000000
00000001
version# 00 00 00 04
implementation# 00 00 00 00
address fff5e000
fff5c000
fff4e000
clock-frequency 01f78a40
upa-portid 00000004
interrupts 00000131
0000012e
0000012f
00000125
00000128
00000132
ranges 00000000 00000000 00000000 000001c8 01000000
00000000 00800000
01000000 00000000 00000000 000001c8 02010000
00000000 00010000
02000000 00000000 00000000 000001c9 80000000
00000000 80000000
03000000 00000000 00000000 000001c9 80000000
00000000 80000000
reg 000001c8 00004000 00000000 00002000
000001c8 01000000 00000000 00000100
000001c8 00000000 00000000 0000d000
no-probe-list 0
latency-timer 00000040
model SUNW,psycho
compatible pci108e,8000
pciclass,060000
thermal-interrupt
bus-parity-generated
#size-cells 00000002
#address-cells 00000003
device_type pci
name pci
{0} ok cd pci@4
{0} ok ls
f00b5770 ethernet@7
f00b54a8 ethernet@6
f00b51e0 ethernet@5
f00b4f18 ethernet@4
{0} ok .properties
latency-timer 00000040
bus-range 00000001
00000001
compatible pci8086,b154
pciclass,060400
pci
#address-cells 00000003
#size-cells 00000002
reg 00002000 00000000 00000000 00000000 00000000
device_type pci
name pci
fast-back-to-back
devsel-speed 00000001
class-code 00060400
revision-id 00000000
device-id 0000b154
vendor-id 00008086
{0} ok cd ethernet@4
{0} ok .properties
latency-timer 00000014
assigned-addresses 81012010 00000000 00001000 00000000 00000080
82012014 00000000 00100000 00000000 00000400
82012030 00000000 00140000 00000000 00040000
reg 00012000 00000000 00000000 00000000 00000000
01012010 00000000 00000000 00000000 00000080
02012014 00000000 00000000 00000000 00000400
02012030 00000000 00000000 00000000 00040000
compatible pci103c,125a
pci1011,19
pciclass,020000
ethernet
name ethernet
fast-back-to-back
devsel-speed 00000001
class-code 00020000
interrupts 00000001
max-latency 00000028
min-grant 00000014
subsystem-vendor-id 0000103c
subsystem-id 0000125a
revision-id 00000041
device-id 00000019
vendor-id 00001011
{0} ok cd ..
{0} ok cd ethernet@5
{0} ok .properties
latency-timer 00000014
assigned-addresses 81012810 00000000 00001080 00000000 00000080
82012814 00000000 00180000 00000000 00000400
82012830 00000000 001c0000 00000000 00040000
reg 00012800 00000000 00000000 00000000 00000000
01012810 00000000 00000000 00000000 00000080
02012814 00000000 00000000 00000000 00000400
02012830 00000000 00000000 00000000 00040000
compatible pci103c,125a
pci1011,19
pciclass,020000
ethernet
name ethernet
fast-back-to-back
devsel-speed 00000001
class-code 00020000
interrupts 00000001
max-latency 00000028
min-grant 00000014
subsystem-vendor-id 0000103c
subsystem-id 0000125a
revision-id 00000041
device-id 00000019
vendor-id 00001011
{0} ok cd ..
{0} ok cd ethernet@6
{0} ok .properties
latency-timer 00000014
assigned-addresses 81013010 00000000 00001400 00000000 00000080
82013014 00000000 00200000 00000000 00000400
82013030 00000000 00240000 00000000 00040000
reg 00013000 00000000 00000000 00000000 00000000
01013010 00000000 00000000 00000000 00000080
02013014 00000000 00000000 00000000 00000400
02013030 00000000 00000000 00000000 00040000
compatible pci103c,125a
pci1011,19
pciclass,020000
ethernet
name ethernet
fast-back-to-back
devsel-speed 00000001
class-code 00020000
interrupts 00000001
max-latency 00000028
min-grant 00000014
subsystem-vendor-id 0000103c
subsystem-id 0000125a
revision-id 00000041
device-id 00000019
vendor-id 00001011
{0} ok cd ..
{0} ok cd ethernet@7
{0} ok ls
{0} ok .properties
latency-timer 00000014
assigned-addresses 81013810 00000000 00001480 00000000 00000080
82013814 00000000 00280000 00000000 00000400
82013830 00000000 002c0000 00000000 00040000
reg 00013800 00000000 00000000 00000000 00000000
01013810 00000000 00000000 00000000 00000080
02013814 00000000 00000000 00000000 00000400
02013830 00000000 00000000 00000000 00040000
compatible pci103c,125a
pci1011,19
pciclass,020000
ethernet
name ethernet
fast-back-to-back
devsel-speed 00000001
class-code 00020000
interrupts 00000001
max-latency 00000028
min-grant 00000014
subsystem-vendor-id 0000103c
subsystem-id 0000125a
revision-id 00000041
device-id 00000019
vendor-id 00001011
{0} ok boot
Resetting ...