]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commita2bd4097b3ec242f4de4924db463a9c94530e03a
tree7fcbe0566342e1ccf1f5e97980ada18931f7a1b3
parentb65054597872ce3aefbc6a666385eabdf9e288da
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: e979ce7bced2 ("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