yenta_socket with PCI allocation resource issues
Mathieu Bertrand
Bertrand at tcl.ite.mee.com
Mon Feb 7 05:29:55 EST 2005
Hi all,
I have some issues with my yenta driver.
I run linux 2.6.10 on a MIPS processor connected by a PCI bus (1) to a TI
2050 PCI/PCI bridge connected to a TI 1520 PCI/PCMCIA bridge.
I have these booting informations :
Yenta: CardBus bridge found at 0000:02:00.0 [0000:0000]
yenta 0000:02:00.0: Preassigned resource 0 busy, reconfiguring...
yenta 0000:02:00.0: no resource of type 1200 available, trying to
continue...
yenta 0000:02:00.0: Preassigned resource 1 busy, reconfiguring...
yenta 0000:02:00.0: no resource of type 100 available, trying to continue...
yenta 0000:02:00.0: no resource of type 100 available, trying to continue...
Yenta: Enabling burst memory read transactions
Yenta: Using CSCINT to route CSC interrupts to PCI
Yenta TI: socket 0000:02:00.0 all-serial interrupts, tied ok
Yenta: ISA IRQ mask 0x0000, PCI irq 361
Socket status: 30000220
It seems that I have troubles reserving PCI regions in yenta_allocate_res().
So when my cardbus 3Com LAN 10/100 is detected I have the following errors :
got res [d8400000:d841ffff] bus [d8400000:d841ffff] flags 7200 for BAR 6
of 0000:03:00.0
PCI: moved device 0000:03:00.0 resource 6 (7200) to d8400000
PCI: Failed to allocate I/O resource #0:80 at 0 for 0000:03:00.0
got res [d8420000:d842007f] bus [d8420000:d842007f] flags 200 for BAR 1 of
0000:03:00.0
PCI: moved device 0000:03:00.0 resource 1 (200) to d8420000
got res [d8420080:d84200ff] bus [d8420080:d84200ff] flags 200 for BAR 2 of
0000:03:00.0
PCI: moved device 0000:03:00.0 resource 2 (200) to d8420080
If I don't use the yenta_allocate_res() from yenta_allocate_resources(), it
seems ok when detecting my cardbus card :
got res [d0000000:d001ffff] bus [d0000000:d001ffff] flags 7200 for BAR 6
of 0000:03:00.0
PCI: moved device 0000:03:00.0 resource 6 (7200) to d0000000
got res [e8000000:e800007f] bus [e8000000:e800007f] flags 101 for BAR 0 of
0000:03:00.0
PCI: moved device 0000:03:00.0 resource 0 (101) to e8000000
got res [d4000000:d400007f] bus [d4000000:d400007f] flags 200 for BAR 1 of
0000:03:00.0
PCI: moved device 0000:03:00.0 resource 1 (200) to d4000000
got res [d4000080:d40000ff] bus [d4000080:d40000ff] flags 200 for BAR 2 of
0000:03:00.0
PCI: moved device 0000:03:00.0 resource 2 (200) to d4000080
So, what is the trouble here ?
Do I need to call yenta_allocate_res() since it seems to be ok if not called
?
My cardbus driver 3c59x doesn't seem to work correctly, it may be linked !
Thanks a lot,
Mathieu BERTRAND
Mitsubishi ITE-TCL, Rennes (FRANCE)
More information about the linux-pcmcia
mailing list