All of lore.kernel.org
 help / color / mirror / Atom feed
* Does the driver need check the GICD_ACTIVE or GICD_PENDING state before SPI affinity changing
@ 2018-07-11  9:15 Yang Yingliang
  2018-07-11 12:20 ` Marc Zyngier
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Yingliang @ 2018-07-11  9:15 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Marc,

The following case :

            cpu0           cpu1                          cpu2
           read iar
                           set affinity to cpu2
            dsb(sy)                                       read iar

cpu0 is interrupted by a edge-SPI. After cpu0 getting INTID,
cpu1 set SPI's affinity to another cpu(like cpu2), if the effects
of reading ICC_IAR1_EL1 on the state of a returned INTID are
not seeing by GIC, the SPI's state is still pending and the state
will be migrated to cpu2, so cpu2 can also read the INTID from
ICC_IAR1_EL1. It makes the SPI be handled twice.

Does the driver need check the GICD_ACTIVE or GICD_PENDING
state before SPI affinity changing or should hardware guarantee
this case can't happen ?

Does GIC SPEC have describe the affinity chaning flow ?


Thanks,
Yang

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-11 12:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-11  9:15 Does the driver need check the GICD_ACTIVE or GICD_PENDING state before SPI affinity changing Yang Yingliang
2018-07-11 12:20 ` Marc Zyngier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.