request_8xxirq
Hi,
I am working on an old code which uses request_8xxirq() call which I can't find in latest kernel. Has this been replaced by something else ?
I see the references on net about replacing request_8xxirq() with request_irq(). Can I do it ?
TIA,
Manish
---------------------------------
Start your day with Yahoo! - make it your home page
Hi,
I had some problems with irq in my embedded system. I'm interested in this function source code, but I didn't find it in my linux distribuction?
Does anyone know where I can find it?
Thanks a lot
Tiago
Quoted 21 lines · Manish Joshi
Hi,
I am working on an old code which uses
request_8xxirq()call which I can't find in latest kernel. Has this been replaced by something else ?I see the references on net about replacing
request_8xxirq()withrequest_irq(). Can I do it ?TIA,
Manish------------------------------------------------------------------------
Start your day with Yahoo! - make it your home page <http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs>------------------------------------------------------------------------
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Signature · 7 lines
Tiago Dall'Agnol Pesquisa e Desenvolvimento Tel.: +55.51.470.05.64 Fax.: +55.51.470.05.70 e-mail: [email protected] Parks S.A. Comunicações Digitais www.parks.com.br
In linux-2.4 it's in
include/asm-ppc/mpc8xx.h
-- snip --
#define request_8xxirq request_irq
--/snip --
And request_irq is in arch/ppc/kernel/irq.c
Alex
Quoted 49 lines · On Fri, 29 Jul 2005 10:07:58 -0300 "Tiago Dall'Agnol"…
Hi,
I had some problems with irq in my embedded system. I'm interested in this function source code, but I didn't find it in my linux distribuction?
Does anyone know where I can find it?
Thanks a lot
TiagoQuoted 24 lines · Manish Joshi
Hi,
I am working on an old code which uses
request_8xxirq()call which I can't find in latest kernel.
Has this been replaced by something else ?I see the references on net about replacing
request_8xxirq()withrequest_irq(). Can I do it ?TIA,
Manish------------------------------------------------------------------------
Start your day with Yahoo! - make it your home page
<http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs>------------------------------------------------------------------------
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embeddedSignature · 11 lines
Tiago Dall'Agnol Pesquisa e Desenvolvimento Tel.: +55.51.470.05.64 Fax.: +55.51.470.05.70 e-mail: [email protected] www.parks.com.br _______________________________________________ Linuxppc-embedded mailing list [email protected] https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Thank you Alex.
But in my linux, this is different.
What I have in that file is just
extern int request_8xxirq(unsigned int irq,
void (*handler)(int, void *, struct pt_regs *), unsigned long flags,
const char *device,
void *dev_id);
And the request_8xxirq is declared as a
EXPORT_SYMBOL(request_8xxirq);
in arch/ppc/kernel/ppc_ksyms.c.
I already tried to find out where the code that implements the function is located, but it seems that it doesn't exist in my distribuction. Maybe is it a "binary version"?
Any other information will be apreciated ;-)
Best Regards,
Tiago
Quoted 70 lines · Alex Zeffertt
In linux-2.4 it's in
include/asm-ppc/mpc8xx.h-- snip --
#definerequest_8xxirqrequest_irq
--/snip --And
request_irqis inarch/ppc/kernel/irq.cAlex
Quoted 50 lines · On Fri, 29 Jul 2005 10:07:58 -0300 "Tiago Dall'Agnol"…
Hi,
I had some problems with irq in my embedded system. I'm interested in this function source code, but I didn't find it in my linux distribuction?
Does anyone know where I can find it?
Thanks a lot
TiagoQuoted 23 lines · Manish Joshi
Hi,
I am working on an old code which uses
request_8xxirq()call which I can't find in latest kernel. Has this been replaced by something else ?I see the references on net about replacing
request_8xxirq()withrequest_irq(). Can I do it ?TIA,
Manish------------------------------------------------------------------------
Start your day with Yahoo! - make it your home page <http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs>------------------------------------------------------------------------
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embeddedSignature · 11 lines
Tiago Dall'Agnol Pesquisa e Desenvolvimento Tel.: +55.51.470.05.64 Fax.: +55.51.470.05.70 e-mail: [email protected] www.parks.com.br _______________________________________________ Linuxppc-embedded mailing list [email protected] https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Maybe you're using a really old kernel. In linux-2.4.4 it's in arch/ppc/kernel/irq.c:
-- snip --
#if (defined(CONFIG_8xx) || defined(CONFIG_8260))
/* Name change so we can catch standard drivers that potentially mess up
* the internal interrupt controller on 8xx and 8260. Just bear with me,
* I don't like this either and I am searching a better solution. For
* now, this is what I need. -- Dan
*/
#define request_irq request_8xxirq
...
...
...
int request_irq(unsigned int irq, void (*handler)(int, void *, struct pt_regs *),
unsigned long irqflags, const char * devname, void *dev_id)
{
--/snip --
I don't know why it was done like this....
Alex
Quoted 104 lines · On Fri, 29 Jul 2005 10:52:33 -0300 "Tiago Dall'Agnol"…
Thank you Alex.
But in my linux, this is different.
What I have in that file is justextern int request_8xxirq(unsigned int irq,
void (*handler)(int, void *, structpt_regs*), unsigned long flags,
const char *device,
void*dev_id);And the
request_8xxirqis declared as a
EXPORT_SYMBOL(request_8xxirq);in
arch/ppc/kernel/ppc_ksyms.c.I already tried to find out where the code that implements the function is located, but it seems that it doesn't exist in my distribuction. Maybe is it a "binary version"?
Any other information will be apreciated ;-)
Best Regards,
TiagoQuoted 74 lines · Alex Zeffertt
In linux-2.4 it's in
include/asm-ppc/mpc8xx.h-- snip --
#definerequest_8xxirqrequest_irq
--/snip --And
request_irqis inarch/ppc/kernel/irq.cAlex
Quoted 54 lines · On Fri, 29 Jul 2005 10:07:58 -0300 "Tiago Dall'Agnol"…
Hi,
I had some problems with irq in my embedded system. I'm interested in this function source code, but I didn't find it in my linux distribuction?
Does anyone know where I can find it?
Thanks a lot
TiagoQuoted 26 lines · Manish Joshi
Hi,
I am working on an old code which uses
request_8xxirq()call which I can't find in latest kernel.
Has this been replaced by something else ?I see the references on net about replacing
request_8xxirq()withrequest_irq(). Can I do it ?TIA,
Manish------------------------------------------------------------------------
Start your day with Yahoo! - make it your home page
<http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs>------------------------------------------------------------------------
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embeddedSignature · 11 lines
Tiago Dall'Agnol Pesquisa e Desenvolvimento Tel.: +55.51.470.05.64 Fax.: +55.51.470.05.70 e-mail: [email protected] www.parks.com.br _______________________________________________ Linuxppc-embedded mailing list [email protected] https://ozlabs.org/mailman/listinfo/linuxppc-embedded
I'm using kernel 2.4.18, and I can see the code you posted.
But this code doesn't help to find request_8xxirq. It just do the opposite. This code defines request_irq to be request_8xxirq when CONFIG_8xx is defined. But where is located the implementation of request_8xxirq?
Am I wrong? I didn't understand when that function request_irq is used.
Thanks
Tiago
Quoted 145 lines · Alex Zeffertt
Maybe you're using a really old kernel. In linux-2.4.4 it's in
arch/ppc/kernel/irq.c:-- snip --
#if (defined(CONFIG_8xx)||defined(CONFIG_8260))
/* Name change so we can catch standard drivers that potentially mess up
* the internal interrupt controller on 8xx and 8260. Just bear with me,
* I don't like this either and I am searching a better solution. For
* now, this is what I need. -- Dan
*/
#definerequest_irqrequest_8xxirq...
...
...int request_irq(unsigned int irq, void (*handler)(int, void *, struct
pt_regs*),
unsigned long irqflags, const char * devname, void*dev_id)
{
--/snip --I don't know why it was done like this....
Alex
Quoted 110 lines · On Fri, 29 Jul 2005 10:52:33 -0300 "Tiago Dall'Agnol"…
Thank you Alex.
But in my linux, this is different.
What I have in that file is justextern int request_8xxirq(unsigned int irq,
void (*handler)(int, void *, structpt_regs*), unsigned long flags,
const char *device,
void*dev_id);And the
request_8xxirqis declared as a
EXPORT_SYMBOL(request_8xxirq);in
arch/ppc/kernel/ppc_ksyms.c.I already tried to find out where the code that implements the function is located, but it seems that it doesn't exist in my distribuction. Maybe is it a "binary version"?
Any other information will be apreciated ;-)
Best Regards,
TiagoQuoted 79 lines · Alex Zeffertt
In linux-2.4 it's in
include/asm-ppc/mpc8xx.h-- snip --
#definerequest_8xxirqrequest_irq
--/snip --And
request_irqis inarch/ppc/kernel/irq.cAlex
Quoted 56 lines · On Fri, 29 Jul 2005 10:07:58 -0300 "Tiago Dall'Agnol"…
Hi,
I had some problems with irq in my embedded system. I'm interested in this function source code, but I didn't find it in my linux distribuction?
Does anyone know where I can find it?
Thanks a lot
TiagoQuoted 25 lines · Manish Joshi
Hi,
I am working on an old code which uses
request_8xxirq()call which I can't find in latest kernel. Has this been replaced by something else ?I see the references on net about replacing
request_8xxirq()withrequest_irq(). Can I do it ?TIA,
Manish------------------------------------------------------------------------
Start your day with Yahoo! - make it your home page <http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs>------------------------------------------------------------------------
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embeddedSignature · 11 lines
Tiago Dall'Agnol Pesquisa e Desenvolvimento Tel.: +55.51.470.05.64 Fax.: +55.51.470.05.70 e-mail: [email protected] www.parks.com.br _______________________________________________ Linuxppc-embedded mailing list [email protected] https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Signature · 7 lines
Tiago Dall'Agnol Pesquisa e Desenvolvimento Tel.: +55.51.470.05.64 Fax.: +55.51.470.05.70 e-mail: [email protected] Parks S.A. Comunicações Digitais www.parks.com.br
Quoted 1 line · Tiago Dall'Agnol
Am I wrong? I didn't understand when that function
request_irqis used.
At some point I don't remember and against all of my wishes, the code was changed from using request_8xxirq to using request_irq using an ugly hack to add some offset to the 8xx interrupt vector number. I didn't see any bug that needed fixing, but people with the power to ignore my maintainer status decided to change it anyway. So, now you have to modify your drivers to call request_irq() with some nonsensical interrupt number. No value added, just confusion.
Thanks.
-- Dan
Hi Dan
Thanks for your attention. I believe that I'm doing some confusion about what is "request_8xxirq". I have this function (or some alias?) in my system, and I guess that there isn't any problem with it. But the problem I had was a pretty strange, and I decided to take a look at that function. And I hadn't find its implementation. I tried to grep request_8xxirq in the whole code, but I just found a EXPORT_SYMBOL(request_8xxirq).
Anyway, my problem was related to the SEC Lite module. In my Linux, what I had in source files originally was the use of SEC Lite interruption as a LEVEL4 (number 9). In some boards (I mean, the same models, just other boards), the interrupt handler was not called when it should be, i.e., when the SEC Lite module ends its processing and signals that the packed is ready for me. That's the way my system works, with interruption to signal that the packet was already processed.
So, after identifying that problem, I tried to change interrupt to LEVEL3 (number 7), and for my surprise... now it works, for all boards. But why?
Isn't it strange?
Best Regards,
Tiago
Quoted 18 lines · Dan Malek
Quoted 1 line · Tiago Dall'Agnol
Am I wrong? I didn't understand when that function
request_irqis used.At some point I don't remember and against all of my wishes, the code was changed from using
request_8xxirqto usingrequest_irqusing an ugly hack to add some offset to the 8xx interrupt vector number. I didn't see any bug that needed fixing, but people with the power to ignore my maintainer status decided to change it anyway. So, now you have to modify your drivers to callrequest_irq()with some nonsensical interrupt number. No value added, just confusion.Thanks.
-- Dan
Quoted 5 lines · On Fri, 29 Jul 2005 14:01:21 -0300 "Tiago Dall'Agnol"…
But this code doesn't help to find
request_8xxirq. It just do the opposite. This code definesrequest_irqto berequest_8xxirqwhenCONFIG_8xxis defined. But where is located the implementation ofrequest_8xxirq?
See the code snippet in my last email. The C preprocessor replaces 'int request_irq(...' with 'int request_8xxirq(...' prior to compilation.
Quoted 161 lines
Quoted 151 lines · Alex Zeffertt
Maybe you're using a really old kernel. In linux-2.4.4 it's in
arch/ppc/kernel/irq.c:-- snip --
#if (defined(CONFIG_8xx)||defined(CONFIG_8260))
/* Name change so we can catch standard drivers that potentially mess up
* the internal interrupt controller on 8xx and 8260. Just bear with me,
* I don't like this either and I am searching a better solution. For
* now, this is what I need. -- Dan
*/
#definerequest_irqrequest_8xxirq...
...
...int request_irq(unsigned int irq, void (*handler)(int, void *, struct
pt_regs*),
unsigned long irqflags, const char * devname, void*dev_id)
{
--/snip --I don't know why it was done like this....
Alex
Quoted 116 lines · On Fri, 29 Jul 2005 10:52:33 -0300 "Tiago Dall'Agnol"…
Thank you Alex.
But in my linux, this is different.
What I have in that file is justextern int request_8xxirq(unsigned int irq,
void (*handler)(int, void *, structpt_regs*), unsigned long flags,
const char *device,
void*dev_id);And the
request_8xxirqis declared as a
EXPORT_SYMBOL(request_8xxirq);in
arch/ppc/kernel/ppc_ksyms.c.I already tried to find out where the code that implements the function is located, but it seems that it doesn't exist in my distribuction. Maybe is it a "binary version"?
Any other information will be apreciated ;-)
Best Regards,
TiagoQuoted 83 lines · Alex Zeffertt
In linux-2.4 it's in
include/asm-ppc/mpc8xx.h-- snip --
#definerequest_8xxirqrequest_irq
--/snip --And
request_irqis inarch/ppc/kernel/irq.cAlex
Quoted 60 lines · On Fri, 29 Jul 2005 10:07:58 -0300 "Tiago Dall'Agnol"…
Hi,
I had some problems with irq in my embedded system. I'm interested in this function source code, but I didn't find it in my linux distribuction?
Does anyone know where I can find it?
Thanks a lot
TiagoQuoted 28 lines · Manish Joshi
Hi,
I am working on an old code which uses
request_8xxirq()call which I can't find in latest kernel.
Has this been replaced by something else ?I see the references on net about replacing
request_8xxirq()withrequest_irq(). Can I do it ?TIA,
Manish------------------------------------------------------------------------
Start your day with Yahoo! - make it your home page
<http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs>------------------------------------------------------------------------
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embeddedSignature · 11 lines
Tiago Dall'Agnol Pesquisa e Desenvolvimento Tel.: +55.51.470.05.64 Fax.: +55.51.470.05.70 e-mail: [email protected] www.parks.com.br _______________________________________________ Linuxppc-embedded mailing list [email protected] https://ozlabs.org/mailman/listinfo/linuxppc-embeddedSignature · 6 lines
Tiago Dall'Agnol Pesquisa e Desenvolvimento Tel.: +55.51.470.05.64 Fax.: +55.51.470.05.70 e-mail: [email protected] www.parks.com.br
Hi Alex
All right. But where are request_8xxirq? That's my doubt.
Thank you,
Tiago
Quoted 191 lines · Alex Zeffertt
Quoted 4 lines · On Fri, 29 Jul 2005 14:01:21 -0300 "Tiago Dall'Agnol"…
But this code doesn't help to find
request_8xxirq. It just do the opposite. This code definesrequest_irqto berequest_8xxirqwhenCONFIG_8xxis defined. But where is located the implementation ofrequest_8xxirq?See the code snippet in my last email. The C preprocessor replaces 'int request_irq(...' with 'int request_8xxirq(...' prior to compilation.
Quoted 173 lines
Quoted 160 lines · Alex Zeffertt
Maybe you're using a really old kernel. In linux-2.4.4 it's in
arch/ppc/kernel/irq.c:-- snip --
#if (defined(CONFIG_8xx)||defined(CONFIG_8260))
/* Name change so we can catch standard drivers that potentially mess up
* the internal interrupt controller on 8xx and 8260. Just bear with me,
* I don't like this either and I am searching a better solution. For
* now, this is what I need. -- Dan
*/
#definerequest_irqrequest_8xxirq...
...
...int request_irq(unsigned int irq, void (*handler)(int, void *, struct
pt_regs*),
unsigned long irqflags, const char * devname, void*dev_id)
{
--/snip --I don't know why it was done like this....
Alex
Quoted 122 lines · On Fri, 29 Jul 2005 10:52:33 -0300 "Tiago Dall'Agnol"…
Thank you Alex.
But in my linux, this is different.
What I have in that file is justextern int request_8xxirq(unsigned int irq,
void (*handler)(int, void *, structpt_regs*), unsigned long flags,
const char *device,
void*dev_id);And the
request_8xxirqis declared as a
EXPORT_SYMBOL(request_8xxirq);in
arch/ppc/kernel/ppc_ksyms.c.I already tried to find out where the code that implements the function is located, but it seems that it doesn't exist in my distribuction. Maybe is it a "binary version"?
Any other information will be apreciated ;-)
Best Regards,
TiagoQuoted 87 lines · Alex Zeffertt
In linux-2.4 it's in
include/asm-ppc/mpc8xx.h-- snip --
#definerequest_8xxirqrequest_irq
--/snip --And
request_irqis inarch/ppc/kernel/irq.cAlex
Quoted 62 lines · On Fri, 29 Jul 2005 10:07:58 -0300 "Tiago Dall'Agnol"…
Hi,
I had some problems with irq in my embedded system. I'm interested in this function source code, but I didn't find it in my linux distribuction?
Does anyone know where I can find it?
Thanks a lot
TiagoQuoted 27 lines · Manish Joshi
Hi,
I am working on an old code which uses
request_8xxirq()call which I can't find in latest kernel. Has this been replaced by something else ?I see the references on net about replacing
request_8xxirq()withrequest_irq(). Can I do it ?TIA,
Manish------------------------------------------------------------------------
Start your day with Yahoo! - make it your home page <http://us.rd.yahoo.com/evt=34442/*http://www.yahoo.com/r/hs>------------------------------------------------------------------------
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embeddedSignature · 11 lines
Tiago Dall'Agnol Pesquisa e Desenvolvimento Tel.: +55.51.470.05.64 Fax.: +55.51.470.05.70 e-mail: [email protected] www.parks.com.br _______________________________________________ Linuxppc-embedded mailing list [email protected] https://ozlabs.org/mailman/listinfo/linuxppc-embeddedSignature · 6 lines
Tiago Dall'Agnol Pesquisa e Desenvolvimento Tel.: +55.51.470.05.64 Fax.: +55.51.470.05.70 e-mail: [email protected] www.parks.com.br