]> 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)
commit70ec529b5020fc63cf02170de915b49de55090fe
tree7fcbe0566342e1ccf1f5e97980ada18931f7a1b3
parent5f237bcf17eb45c8b7d70729b19c07de3652452c
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: 50f3b167d5dc ("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