]> git.ipfire.org Git - thirdparty/linux.git/commit
irqchip/gic-v4: Always configure affinity on VPE activation
authorMarc Zyngier <maz@kernel.org>
Fri, 5 Jul 2024 09:31:53 +0000 (10:31 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 15 Jul 2024 13:13:55 +0000 (15:13 +0200)
commit7d2c2048a86477461f7bc75d064579ed349472bc
tree6f4f978783ff9187d2ede67d7eb5f199330d5d24
parentbe5e5f3a1120bada0cff1bc84c2a1805da308f6e
irqchip/gic-v4: Always configure affinity on VPE activation

There are currently two paths to set the initial affinity of a VPE:

 - at activation time on GICv4 without the stupid VMOVP list, and
   on GICv4.1

 - at map time for GICv4 with VMOVP list

The latter location may end-up modifying the affinity of VPE that is
currently running, making the results unpredictible.

Instead, unify the two paths, making sure to set the initial affinity only
at activation time.

Reported-by: Nianyao Tang <tangnianyao@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Nianyao Tang <tangnianyao@huawei.com>
Link: https://lore.kernel.org/r/20240705093155.871070-2-maz@kernel.org
drivers/irqchip/irq-gic-v3-its.c