]> git.baikalelectronics.ru Git - kernel.git/commit
s390/pci: fix CPU address in MSI for directed IRQ
authorAlexander Gordeev <agordeev@linux.ibm.com>
Thu, 26 Nov 2020 17:00:37 +0000 (18:00 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 2 Dec 2020 17:17:50 +0000 (18:17 +0100)
commit2e2161764c93170eab353b3faaccb1c1cbc4667a
tree7fcbe0566342e1ccf1f5e97980ada18931f7a1b3
parenta51c3bc642cfce7cf306e250ca463c4e3ba95909
s390/pci: fix CPU address in MSI for directed IRQ

The directed MSIs are delivered to CPUs whose address is
written to the MSI message address. The current code assumes
that a CPU logical number (as it is seen by the kernel)
is also the CPU address.

The above assumption is not correct, as the CPU address
is rather the value returned by STAP instruction. That
value does not necessarily match the kernel logical CPU
number.

Fixes: e8dfa72f6dbf ("s390/pci: provide support for CPU directed interrupts")
Cc: <stable@vger.kernel.org> # v5.2+
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.ibm.com>
Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/pci/pci_irq.c