[PATCH] Add call to non-crashing cores through IPI

Catalin Marinas catalin.marinas at arm.com
Tue Nov 23 04:14:58 EST 2010


On 22 November 2010 20:09, Maxim Uvarov <muvarov at gmail.com> wrote:
> 2010/11/22 Catalin Marinas <catalin.marinas at arm.com>:
>> On 22 November 2010 17:03, Per Fransson <per.fransson.ml at gmail.com> wrote:
>>> On the other hand, do we really need to enable the interrupts before
>>> performing an ipi?
>>> The important thing must be for them to be enabled on the
>>> receiving/callee cores. It's not
>>> as if we want the crashing core to be interruptable, is it?
>>
>> That's for the situation when the other core tries to send an IPI at
>> the same time. Unlikely but both cores may deadlock.
>>
>
> Am I right that deadlock can occur only if the same IPI was sent?

Not necessarily. It depends on whether the CPU issuing the IPI needs
to wait for the completion of the cross-call. If you don't need to
wait, you can send the IPI with the interrupts disabled (the platform
smp_cross_call is already called with interrupts disabled).

-- 
Catalin



More information about the kexec mailing list