Re: I need some info on driver development status
Brought to you by:
aeb,
bencollins
From: Sebastien R. <Seb...@sy...> - 2000-05-11 11:41:18
|
>> Something wrong is happening during the bus reset phase, but there is not >> much I can do without the proper hardware to figure it out... I am >> starting to suspect that irqs are not detected properly... is the irq >> shared with other devices ? Daniel> Indeed it is shared, and it has worried me before. It looks like Sony Daniel> saved a few lines and routes every PCI device to IRQ 9. Both CardBus Daniel> controllers are actually active. The rest of the stuff shouldn't Daniel> generate any interrupts. Could you please add a debug message at the top of the irq handler, and verify that the irq handler is called when the driver is loaded. Something like this: /* read the interrupt event register */ event=reg_read(ohci, OHCI1394_IntEventSet); PRINT(KERN_INFO, ohci->id, "IntEvent: %08x",event); You should have something like this after `insmod ohci1394` ........ ohci1394_0: resetting bus on request and attempting to become root ieee1394: detected 1 ohci1394 adapter ohci1394_0: IntEvent: 00020010 ohci1394_0: IntEvent: 00020000 ohci1394_0: IntEvent: 00020000 ....... Daniel> Sebastien, below is a patch against the current ohci driver from CVS Daniel> which you might want to consider. It does Daniel> * process only those events in the IRQ handler that we haven't masked. Daniel> * shut up interrupts from the card before freeing the IRQ. * not go Daniel> through all ifs in the IRQ handler when there are no events to Daniel> process. Thanks, I will have a look at it. -- Sebastien Rougeaux RSISE, The Australian National University |