powerpc/xive: Use hw CPU ids when configuring the CPU queues
authorCédric Le Goater <clg@kaod.org>
Tue, 13 Feb 2018 08:47:12 +0000 (09:47 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 14 Feb 2018 22:54:43 +0000 (09:54 +1100)
commit8e036c8d30a2cd9d8fc7442fbf6824e0a3e986e7
tree0f10218268c499d95583f3600efa535031bbca82
parentc134f0d57a47b7f8704dee1cefc246f9471f3e80
powerpc/xive: Use hw CPU ids when configuring the CPU queues

The CPU event notification queues on sPAPR should be configured using
a hardware CPU identifier.

The problem did not show up on the Power Hypervisor because pHyp
supports 8 threads per core which keeps CPU number contiguous. This is
not the case on all sPAPR virtual machines, some use SMT=1.

Also improve error logging by adding the CPU number.

Fixes: eac1e731b59e ("powerpc/xive: guest exploitation of the XIVE interrupt controller")
Cc: stable@vger.kernel.org # v4.14+
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/xive/spapr.c