Subject: Cardbus on an old 486DX2/66
To: None <port-i386@netbsd.org>
From: Jasper Wallace <jasper@pointless.net>
List: port-i386
Date: 06/07/2001 16:56:05
-----BEGIN PGP SIGNED MESSAGE-----


I'm probably SOL here, but i thought i'd better ask in case anyone has
anything to say:

I've got a PCI <-> cardbus PCI card for use with a wavelan card that i want
to use in an old 486 machine (PhoenixBios v 4.04, "UMC 8880 PCI/ISA Ver 2.1
Dec 8, 94"), and it seesm that that bios isn't assigining the card an
interrupt:

cbb0 at pci0 dev 23 function 0: Ricoh 5C475 PCI-CardBus bridge (rev. 0x80)
cbb0: NOT USED because of unconfigured interrupt

The bios has an option (under "Advanced system setup" ->
"Pci devices") to change vairous things:

Enable Device {Enabled,Disabled}
Enable Master {Enabled,Disabled}
PCI INTA#       {most irq's}
Use Default LAtency Timer Value {Yes, No}
Latency Timer Value:    {0040}

I've tried most combinations and it dosn't make any difference. The PCIBIOS
stuff in the kernel does seem to help a little, but can't find the PCI IRQ
Routing info:

BIOS32 rev. 0 found at 0xfdb22
PCI BIOS rev. 2.0 found at 0xfdb83
pcibios: config mechanism [1][x], special cycles [x][x], last bus 0
pcibios_get_intr_routing: function not supported
No PCI IRQ Routing information available.
[System BIOS Setting]-----------------------
  device vendor product
  register space address    size
- --------------------------------------------
000:16:0 0x1060 0x8881
                [OK]
000:18:0 0x1060 0x8886
                [OK]
000:23:0 0x1180 0x0475
        10h mem  0x90000000 0x00001000
                [OK]
000:24:0 0x1142 0x6424
        10h mem  0x80000000 0x01000000
        14h port 0x00003000 0x00000010
                [OK]
000:25:0 0x1098 0x0002
        10h port 0x000001f0 0x00000008
        14h port 0x000003f4 0x00000004
        18h port 0x00000170 0x00000008
        1ch port 0x00000374 0x00000004
                [OK]
- --------------------------[  0 devices bogus]
 Physical memory end: 0x02ffd000
 PCI memory mapped I/O space start: 0x03000000

Are the differences between the PCI BIOS spec's v 2.0 and 2.1 such that the
irq info is laid out in a different way in 2.0, and NetBSD dosn't know how
to find it?

On another note, if i enable "options        PCIBIOS_BUS_FIXUP" the machine
resets just after the irq messages above.

I plan to dig around a bit more tonight, and see if ditching the sound card
helps.

- -- 
     "The aurochs was the great, black bull that was painted on cave
walls  alongside bison and mammoths  by tacky prehistoric minimalist
artists  who  had no  sense whatsoever of  modeling or perspective."
[see: http://www.aristotle.net/~swarmack/aurochs.html]  [0x2ECA0975]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (NetBSD)
Comment: For info see http://www.gnupg.org

iQEVAwUBOx+kGwCB+Qwuygl1AQFiJAf+IRPGZMLEQWBvCDnQzcI8HSoB3bZoHklf
JjxdMcqRv9mkbZW71WAg6Hny49E15wbHCSitunavpKV4b1hnY/R8yOk1p9/KRXJ+
rGuP1akiYE5ySatohojCXgzr1RKe/LOteCsAdjs4rRETlNGbRKSyD9w8nDbVUbrQ
Q8xX19/D+dZ6K8RjdrObU0z06TRC64wx9AtqDUNuObqHNWUFd17+L1QtH18w0G8z
hWvIl05M1FI6RQ5IPhHc8Ml7HfmSM9HMNXV6vX8hLu+3rzDvjFJJOTVVxWJzjLh8
Y6nE/NrLsG+CMyIZzhQez5++5UodILQtmD7PyQD7WMWcI5a593Dwqg==
=c2M3
-----END PGP SIGNATURE-----