Skip to contentSkip to conversation

yenta_socket

DISCUSSION Dmitriy Tochansky 2 participants 4 messages May 23, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi!

Cant get where is the problem.

Look. I have pci->pcmcia cardbus adaptor CP3-HOUSE and I want to start it on mips.

Im enable cardbus yenta type in kernel config and see the follow:

Yenta: CardBus bridge found at 0000:00:11.0 [e4bf:2000]
yenta 0000:00:11.0: Preassigned resource 0 busy, reconfiguring... yenta 0000:00:11.0: Preassigned resource 1 busy, reconfiguring...
Yenta: Enabling burst memory read transactions
Yenta: Using CSCINT to route CSC interrupts to PCI
Yenta: Routing CardBus interrupts to PCI
Yenta TI: socket 0000:00:11.0, mfunc 0x0fc01d02, devctl 0x66 drivers/pcmcia/ti113x.h pci_irq_status = 0
Yenta TI: socket 0000:00:11.0 probing PCI interrupt failed, trying to fix Yenta TI: socket 0000:00:11.0 falling back to parallel PCI interrupts Yenta TI: socket 0000:00:11.0 no PCI interrupts. Fish. Please report. CPU 0 Unable to handle kernel paging request at virtual address 00000004, epc =0
....

As far I understand driver cant get irq for this card but when I disable this driver I can see(via cat /proc/pci) that cardbus have irq 4... :( Ideas\advices are wellcome!

Signature · 3 lines
Dmitriy Tochansky
[email protected]
JID: [email protected]
#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Dmitriy Tochansky

toch> Im enable cardbus yenta type in kernel config and see the toch> follow:

toch> yenta 0000:00:11.0: Preassigned resource 0 busy, reconfiguring... toch> yenta 0000:00:11.0: Preassigned resource 1 busy, reconfiguring...

I think these messages are due to confliction with resource management codes in drivers/pci/setup-bus.c. Though I do not see details yet, this quick workaround might solve this issue.

drivers/pcmcia/yenta_socket.c +2 -0
@@ -611,10 +611,12 @@
  */
 static void yenta_allocate_resources(struct yenta_socket *socket)
 {
+#if 0
 	yenta_allocate_res(socket, 0, IORESOURCE_MEM|IORESOURCE_PREFETCH);
 	yenta_allocate_res(socket, 1, IORESOURCE_MEM);
 	yenta_allocate_res(socket, 2, IORESOURCE_IO);
 	yenta_allocate_res(socket, 3, IORESOURCE_IO);	/* PCI isn't clever enough to use this one yet */
+#endif
 }
 
 

---
Atsushi Nemoto

#2 lore raw

drivers/pcmcia/yenta_socket.c

Quoted 15 lines · On Tue, 24 May 2005 00:54:47 +0900 (JST) Atsushi Nemoto <[email protected]>…
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Dmitriy Tochansky

toch> Im enable cardbus yenta type in kernel config and see the toch> follow:

toch> yenta 0000:00:11.0: Preassigned resource 0 busy, reconfiguring... toch> yenta 0000:00:11.0: Preassigned resource 1 busy, reconfiguring...

I think these messages are due to confliction with resource management codes in drivers/pci/setup-bus.c. Though I do not see details yet, this quick workaround might solve this issue.

drivers/pcmcia/yenta_socket.c +0 -0
@@ -611,10 +611,12 @@

Well, yes, the resourse problem "dissapear", but irq is still asking to report. I'll try to check setup-bus.c becourse IMHO there is problem in irq assignment or something.
Yenta: CardBus bridge found at 0000:00:11.0 [e4bf:2000]
Yenta: Enabling burst memory read transactions
Yenta: Using CSCINT to route CSC interrupts to PCI
Yenta: Routing CardBus interrupts to PCI
Yenta TI: socket 0000:00:11.0, mfunc 0x0fc01d02, devctl 0x66
drivers/pcmcia/ti113x.h pci_irq_status = 0
Yenta TI: socket 0000:00:11.0 probing PCI interrupt failed, trying to fix
Yenta TI: socket 0000:00:11.0 falling back to parallel PCI interrupts
Yenta TI: socket 0000:00:11.0 no PCI interrupts. Fish. Please report.
CPU 0 Unable to handle kernel paging request at virtual address 00000004, epc =c
Oops in arch/mips/mm/fault.c::do_page_fault, line 167[#1]:

Signature · 3 lines
Dmitriy Tochansky
[email protected]
JID: [email protected]
#3 lore raw
In reply to Dmitriy Tochansky
Quoted 5 lines · On Mon, 23 May 2005 18:45:01 +0400 Dmitriy Tochansky <[email protected]> wrote:

Yenta: CardBus bridge found at 0000:00:11.0 [e4bf:2000] yenta 0000:00:11.0: Preassigned resource 0 busy, reconfiguring... yenta 0000:00:11.0: Preassigned resource 1 busy, reconfiguring...
Yenta: Enabling burst memory read transactions
Yenta: Using CSCINT to route CSC interrupts to PCI

Quoted 8 lines

Yenta: Routing CardBus interrupts to PCI
Yenta TI: socket 0000:00:11.0, mfunc 0x0fc01d02, devctl 0x66 drivers/pcmcia/ti113x.h pci_irq_status = 0
Yenta TI: socket 0000:00:11.0 probing PCI interrupt failed, trying to fix Yenta TI: socket 0000:00:11.0 falling back to parallel PCI interrupts Yenta TI: socket 0000:00:11.0 no PCI interrupts. Fish. Please report. CPU 0 Unable to handle kernel paging request at virtual address 00000004, epc =0
....

Hm... Bus 5?

Linux Kernel Card Services
options: [pci] [cardbus]
PCI: Bus 1, cardbus bridge: 0000:00:11.0
IO window: 00001000-00001fff
IO window: 00002000-00002fff
PREFETCH window: 40000000-41ffffff
MEM window: 42000000-43ffffff
PCI: Bus 5, cardbus bridge: 0000:00:11.1
IO window: 00003000-00003fff
IO window: 00004000-00004fff
PREFETCH window: 44000000-45ffffff
MEM window: 46000000-47ffffff
PCI: Enabling device 0000:00:11.0 (0000 -> 0002)
PCI: Enabling device 0000:00:11.1 (0000 -> 0002)

Signature · 3 lines
Dmitriy Tochansky
[email protected]
JID: [email protected]