Re: Help enabling PCI interrupts on Dell/SMP and Sun/SMP systems.

2005-02-24 Thread linux-os
Where are you getting IRQ5 from? You can't "hard-code" interrupts on PCI. kernel: ACPI: PCI interrupt :13:03.0[A] -> GSI 36 (level, low) -> IRQ 217 ^___ This is your IRQ It should be in dev->irq AFTER it's enabled. [SNIPPED...] Cheers, Dick Johnson Penguin : Linux versio

Re: Help enabling PCI interrupts on Dell/SMP and Sun/SMP systems.

2005-02-23 Thread Alan Kilian
On Wed, 2005-02-23 at 15:46 -0800, Roland Dreier wrote: > Alan> pci_read_config_byte(dev, PCI_INTERRUPT_LINE, > &softp->interrupt_line); > Alan> request_irq(softp->interrupt_line, sseintr, SA_INTERRUPT, > "sse", softp); > > Don't do that. The kernel may need you to use a differe

Re: Help enabling PCI interrupts on Dell/SMP and Sun/SMP systems.

2005-02-23 Thread Roland Dreier
Alan> I ask the card which interrupt line it was given at Alan> boot-time: Alan> pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &softp->interrupt_line); Alan> Then I request an IRQ: Alan> request_irq(softp->interrupt_line, sseintr, SA_INTERRUPT, "sse", softp); D

Re: Help enabling PCI interrupts on Dell/SMP and Sun/SMP systems.

2005-02-23 Thread Robert Hancock
Alan Kilian wrote: Maybe that's it. I ask the card which interrupt line it was given at boot-time: pci_read_config_byte(dev, PCI_INTERRUPT_LINE, &softp->interrupt_line); Then I request an IRQ: request_irq(softp->interrupt_line, sseintr,

Re: Help enabling PCI interrupts on Dell/SMP and Sun/SMP systems.

2005-02-23 Thread Robert Hancock
Alan Kilian wrote: kernel: SSE: Found a DeCypher card. kernel: ACPI: PCI interrupt :13:03.0[A] -> GSI 36 (level, low) -> IRQ 217 The first message is in my driver after pci_find_device() The second is from when I do pci_enable_device(dev); Can you decode the mys

Re: Help enabling PCI interrupts on Dell/SMP and Sun/SMP systems.

2005-02-23 Thread Alan Kilian
> Alan> kernel: SSE: Found a DeCypher card. kernel: ACPI: PCI > Alan> interrupt :13:03.0[A] -> GSI 36 (level, low) -> IRQ 217 > > If ACPI has set this device up to use interrupt 217, why are you > registering it on IRQ 5? > Peter, Maybe that's it. I ask the car

Re: Help enabling PCI interrupts on Dell/SMP and Sun/SMP systems.

2005-02-23 Thread Peter Chubb
> "Alan" == Alan Kilian <[EMAIL PROTECTED]> writes: Alan> kernel: SSE: Found a DeCypher card. kernel: ACPI: PCI Alan> interrupt :13:03.0[A] -> GSI 36 (level, low) -> IRQ 217 If ACPI has set this device up to use interrupt 217, why are you registering it on IRQ 5? -- Dr Peter Chub

Re: Help enabling PCI interrupts on Dell/SMP and Sun/SMP systems.

2005-02-23 Thread Alan Kilian
> On Wed, 23 Feb 2005, Dick Johnson wrote: > > callpci_enable_device(dev) > ... before you use the IRQ in dev->irq. > > The reported IRQ is bogus until you make that > call. It's a reported BUG, probably won't > ever get fixed because it's considered a > fe

Re: Help enabling PCI interrupts on Dell/SMP and Sun/SMP systems.

2005-02-23 Thread linux-os
On Wed, 23 Feb 2005, Alan Kilian wrote: callpci_enable_device(dev) ... before you use the IRQ in dev->irq. The reported IRQ is bogus until you make that call. It's a reported BUG, probably won't ever get fixed because it's considered a feature.

Help enabling PCI interrupts on Dell/SMP and Sun/SMP systems.

2005-02-23 Thread Alan Kilian
Folks, This group was instrumental in helping me get my first-ever linux/PCI-bus device driver working last year, and I'm back for some more help if you are willing. I have a PCI card that generates an interrupt when it completes a DMA transfer to the