Changes to gt64260 interrupt support code
Please introduce these changes into the linuxppc sources in order that the existing gt64260 interrupt support code be usable on platforms other than the Galileo Eval Board.
The current gt64260 interrupt support code forces use of particular Linux irqs (starting from 0) for particular GT64260 interrupt sources. These changes allow use of that support code in other platforms and (of particular interest in my situation) in combination with other interrupt controllers (like the elegant and flexible 8259) that also want to map *their* interrupt sources to the Linux irqs starting at 0...
Regards,
Michael O'Donnell
Mission Critical Linux
begin 664 gt64260irqPatch M/3T]/3T@:6YC;'5D92]A<VTM<'!C+V=T-C0R-CN:"Q+C8@=G,@961I=&5D M(#T]/3T]"BTM+2Q+C8O:6YC;'5D92]A<VTM<'!C+V=T-C0R-CN:E-;VX@ M1&5C(#$W(#$W.C,U.C$W(#(P,#$**RLK(&5D:71E9"]I;F-L=61E+V%S;2UP M<&,O9W0V-#(V,"YH"51H=2!$96,@,C<@,3<Z-#Z,3(@,CP,0I0"M,SL M-BK,SL-R!0H@"B*(&5X=&5R;B!U,S(@("@(&=T-C0R-C!?8F%S93L* M*V5X=&5R;B!U,S(@("@(&=T-C0R-C!?9FER<W1)4E$[("@("O*B!792!H M86YD;&4@=&AE(&YE>'[email protected]@25)1<R!F<F]M(&AE<F4@*B\*(&5X=&5R;B!U M,S(@("@(&=T-C0R-C!?<F5V:7-I;VX["B!E>'1E<FX@=3@@("@("!G=#8T M,C8P7W!C:5]E>&-L=61E7V)R:61G93L*(H]/3T]/2!A<F-H+W!P8R]K97)N M96PO9W0V-#(V,%]P:6,N8RQ+C4@=G,@961I=&5D(#T]/3T]"BTM+2Q+C4O M87)C:"]P<&,O:V5R;F5L+V=T-C0R-C!?<&EC+F,)5&AU($1E8RR,"Q.#HP M,CHP-"R,#Q"BLK*R!E9&ET960O87)C:"]P<&,O:V5R;F5L+V=T-C0R-C!? M<&EC+F,)5&AU($1E8RR-RQ.#HP,CHS-"R,#Q"D!("TV-RPV("LV-RPX M($!"B)3E5,3D)"0DO*B!S971?869F:6YI='D@*B\*('T["B**W4S,B!G M=#8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25)1+H@("@("@("@("@("@("@ M("@("@("@("@9W0V-#(V,%]E=&A?:6YT7VAA;F1L97(L"B@("@("@ M("@("@("@("@("@("@("@("A305])3E1%4E)54%0@?"!305]304U0 M3$5?4D%.1$]-*2P*("@("@("@("@("@("@("@("@("@("@(D=4 M-C0R-C!?171H(BP@9&5V("D["B@("@("@(&EF*"A<F5T=F%L("D@('L* M+2@("@("@("@(&1E=BT^:7)Q(#T@1U0V-#(V,%]%5$A?:7)Q6W!O<G1= M.PHK("@("@("@("@9&5V+3YI<G$@/2!'5#8T,C8P7T542%]I<G%;<&]R M=%T@*R!G=#8T,C8P7V9I<G-T25)1.PH@("@("@("@("@<')I;G1K*"B M9W0V-#(V,%]E=&A?;W!E;BZ($%S<VEG;F5D($E242E9"!T;R!G=#8T,C8P M7V5T:"5D7&XB+H@("@("@("@("@("@("@("@("@("@("@("@ M("@("@("@("@("@("@("@("@("@("!D978M/FER<2P@<&]R="I 4.PH@(VEF(#@+RH@6%A86"J+PH
`
end
Quoted 7 lines · On Thu, Dec 27, 2001 at 12:44:24PM -0500…
Please introduce these changes into the linuxppc sources in order that the existing gt64260 interrupt support code be usable on platforms other than the Galileo Eval Board.
Quoted 8 lines
The current gt64260 interrupt support code forces use of particular Linux irqs (starting from 0) for particular GT64260 interrupt sources. These changes allow use of that support code in other platforms and (of particular interest in my situation) in combination with other interrupt controllers (like the elegant and flexible 8259) that also want to map *their* interrupt sources to the Linux irqs starting at 0...
Ugh. Did I mention I hate 8259's?
We **REALLY** need a better way to deal with cascaded 8259's than adding an offset.. I think Dan Malek had some good ideas on what to do about this, but I don't know that anyone has got any currently running code that solves this problem nicely.
--
Troy Benjegerdes | master of mispeeling | 'da hozer' | [email protected] -----"If this message isn't misspelled, I didn't write it" -- Me ----- "Why do musicians compose symphonies and poets write poems? They do it because life wouldn't have any meaning for them if they didn't. That's why I draw cartoons. It's my life." -- Charles Schulz
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 5 lines · Troy Benjegerdes
We **REALLY** need a better way to deal with cascaded 8259's than adding an offset.. I think Dan Malek had some good ideas on what to do about this, but I don't know that anyone has got any currently running code that solves this problem nicely.
The ppc64 port has an array of virtual irq's which is used to index to the real irq. In the interests of easy debugging (eg when drivers print out their irq number) the virtual irq is kept identical to the actual whenever possible.
arch/ppc64/prom.c sets up the map (virt_irq_to_real_map), and arch/ppc64/xics.c (the interrupt controller) uses it.
-Hollis
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 4 lines · [email protected] wrote:
Please introduce these changes into the linuxppc sources in order that the existing gt64260 interrupt support code be usable on platforms other than the Galileo Eval Board.
Michael,
I'm pushing your patch as I write this. I made one change, though. I changed the variable name gt64260_firstIRQ to gt64260_irq_base since it seems more descriptive--firstIRQ makes me think of a special case for the very first intr to happen.
You will need to make the appropriate changes to your internal code.
Mark
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 8 lines · Mark A. Greer
Quoted 4 lines · [email protected] wrote:
Please introduce these changes into the linuxppc sources in order that the existing gt64260 interrupt support code be usable on platforms other than the Galileo Eval Board.
Quoted 6 lines
Michael,
I'm pushing your patch as I write this. I made one change, though. I changed the variable name
gt64260_firstIRQtogt64260_irq_basesince it seems more descriptive--firstIRQ makes me think of a special case for the very first intr to happen.
err, if you're going to commit this, let's be consistent with openpic and use 'gt64260_pic_irq_offset'....
(arch/ppc/kernel/open_pic_irq_offset)
Also see openpic_init() .... the offset is passed in
--
Troy Benjegerdes | master of mispeeling | 'da hozer' | [email protected] -----"If this message isn't misspelled, I didn't write it" -- Me ----- "Why do musicians compose symphonies and poets write poems? They do it because life wouldn't have any meaning for them if they didn't. That's why I draw cartoons. It's my life." -- Charles Schulz
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/