]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/xive: Clear XIVE internal structures when a CPU is removed
authorCédric Le Goater <clg@kaod.org>
Wed, 4 Oct 2017 09:15:05 +0000 (11:15 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 Oct 2017 11:01:57 +0000 (22:01 +1100)
commit0a0d8e6684399a3ffbfe6f9ecf7920dfea4e98a5
treea967d3e6c6da88459035b4f3393cff84242dbd30
parent8167f4ec176f4a787106cf4c0c175ee3fab607a4
powerpc/xive: Clear XIVE internal structures when a CPU is removed

Commit fbd2c5a388dd ("powerpc/xive: guest exploitation of the XIVE
interrupt controller") introduced support for the XIVE exploitation
mode of the P9 interrupt controller on the pseries platform.

At that time, support for CPU removal was not complete on PowerVM and
CPU hot unplug remained untested. It appears that some cleanups of the
XIVE internal structures are required before releasing the CPU,
without which the kernel crashes in a RTAS call doing the CPU
isolation.

These changes fix the crash by deconfiguring the IPI interrupt source
and clearing the event queues of the CPU when it is removed.

Fixes: fbd2c5a388dd ("powerpc/xive: guest exploitation of the XIVE interrupt controller")
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/xive/common.c