* Virtual IRQs on 82xx
@ 2008-08-28 6:37 Muller, Ralf (NSN - FI/Espoo)
2008-08-28 16:27 ` Scott Wood
0 siblings, 1 reply; 2+ messages in thread
From: Muller, Ralf (NSN - FI/Espoo) @ 2008-08-28 6:37 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 839 bytes --]
Hi,
I'm using a 8247 custom board and kernl 2.6.21.7 on the arch/powerpc
branch. Here the irq are virtualized in the irq map functions now I'm
facing several problems.
* I have to manually call irq_create_of_mapping for each CPM interrupt
* The irq_map structure, which associates virtual to HW IRQs is not
initialized auto matically
* The reverse map isn't initialized
And the major problem is:
Now the kernel mixes virtual- and HW-IRQs, e.g. request_irq works with
HW_IRQs but the interrupt handler with virtual interrupts, which can't
work.
For some reason even on a powerpc the first 16 interrupts are reserved
for legacy (PC) IRQs, so the easiest mapping HW-IRQ0 -> VIRQ16 a.s.o
Is there an solution available for this problem, at least for it looks
like the problem still persists in 2.6.26?
Regards,
Ralf
[-- Attachment #2: Type: text/html, Size: 1915 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Virtual IRQs on 82xx
2008-08-28 6:37 Virtual IRQs on 82xx Muller, Ralf (NSN - FI/Espoo)
@ 2008-08-28 16:27 ` Scott Wood
0 siblings, 0 replies; 2+ messages in thread
From: Scott Wood @ 2008-08-28 16:27 UTC (permalink / raw)
To: Muller, Ralf (NSN - FI/Espoo); +Cc: linuxppc-embedded
Muller, Ralf (NSN - FI/Espoo) wrote:
> I'm using a 8247 custom board and kernl 2.6.21.7
I strongly recommend using something newer. There was a lot of 82xx
work going on around that time.
> on the arch/powerpc
> branch. Here the irq are virtualized in the irq map functions now I'm
> facing several problems.
>
> * I have to manually call irq_create_of_mapping for each CPM interrupt
What's wrong with irq_of_parse_and_map()?
> And the major problem is:
> Now the kernel mixes virtual- and HW-IRQs, e.g. request_irq works with
> HW_IRQs but the interrupt handler with virtual interrupts, which can't work.
No, request_irq works with virtual interrupts as well.
> For some reason even on a powerpc the first 16 interrupts are reserved
> for legacy (PC) IRQs,
Right, there are powerpc systems with the same legacy interrupts and the
same ISA drivers that expect to be able to use ISA IRQs directly as virqs.
> so the easiest mapping HW-IRQ0 -> VIRQ16 a.s.o
The "easiest mapping" is whatever the IRQ subsystem gives you. This
isn't something that should be hardcoded.
-Scott
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-28 16:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-28 6:37 Virtual IRQs on 82xx Muller, Ralf (NSN - FI/Espoo)
2008-08-28 16:27 ` Scott Wood
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).