For what are IPIs (Inter-Processor-Interrupts) used?

Programming, for all ages and all languages.
Post Reply
ErikVikinger
Member
Member
Posts: 30
Joined: Wed Jan 13, 2010 7:59 am
Location: Germany / Nuernberg

For what are IPIs (Inter-Processor-Interrupts) used?

Post by ErikVikinger »

Hello,


For what are IPIs used? (general on UMA-SMP-Architectures and special on x86-based Architectures)
Only for flushing remote TLBs?


Thanks for Answers!
Erik
User avatar
XanClic
Member
Member
Posts: 138
Joined: Wed Feb 13, 2008 9:38 am

Re: For what are IPIs (Inter-Processor-Interrupts) used?

Post by XanClic »

As for me, I also use them to force a processor to schedule (because I don't use the LAPIC timer yet) and to shut all CPUs down in case of a BSOD (though it's actually an orange screen of death in my OS).
ErikVikinger
Member
Member
Posts: 30
Joined: Wed Jan 13, 2010 7:59 am
Location: Germany / Nuernberg

Re: For what are IPIs (Inter-Processor-Interrupts) used?

Post by ErikVikinger »

Hallo,

XanClic wrote:I also use them to force a processor to schedule (because I don't use the LAPIC timer yet)
You mean you forward the Timer-IRQ from the BSP (if it be the IRQ-Receiver-Processor) to an other Processor?
XanClic wrote:to shut all CPUs down in case of a BSOD (though it's actually an orange screen of death in my OS).
Okay, it is a new reason for IPI for me.

Exist any other reasons for IPI?


Regards
Erik
User avatar
XanClic
Member
Member
Posts: 138
Joined: Wed Feb 13, 2008 9:38 am

Re: For what are IPIs (Inter-Processor-Interrupts) used?

Post by XanClic »

ErikVikinger wrote:You mean you forward the Timer-IRQ from the BSP (if it be the IRQ-Receiver-Processor) to an other Processor?
Yes, exactly that. I know, it's very slow, but because I don't have another timer for now and I also don't initialize the I/O-APIC yet (which could be used to forward the IRQ to the other processors, afaik), it is necessary.
ErikVikinger
Member
Member
Posts: 30
Joined: Wed Jan 13, 2010 7:59 am
Location: Germany / Nuernberg

Re: For what are IPIs (Inter-Processor-Interrupts) used?

Post by ErikVikinger »

Hello,

XanClic wrote:Yes, exactly that. ...
Okay, thanks for your answer.


@all:
Anything else?
Any other use for IPIs?


Regards
Erik
Post Reply