Skip to content

Commit 4181b51

Browse files
niklas88Vasily Gorbik
authored andcommitted
s390/pci: Add missing virt_to_phys() for directed DIBV
In commit 4e4dc65 ("s390/pci: use phys_to_virt() for AIBVs/DIBVs") the setting of dibv_addr was missed when adding virt_to_phys(). This only affects systems with directed interrupt delivery enabled which are not generally available. Fixes: 4e4dc65 ("s390/pci: use phys_to_virt() for AIBVs/DIBVs") Reviewed-by: Heiko Carstens <[email protected]> Signed-off-by: Niklas Schnelle <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent 693d41f commit 4181b51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/pci/pci_irq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ static void __init cpu_enable_directed_irq(void *unused)
410410
union zpci_sic_iib iib = {{0}};
411411
union zpci_sic_iib ziib = {{0}};
412412

413-
iib.cdiib.dibv_addr = (u64) zpci_ibv[smp_processor_id()]->vector;
413+
iib.cdiib.dibv_addr = virt_to_phys(zpci_ibv[smp_processor_id()]->vector);
414414

415415
zpci_set_irq_ctrl(SIC_IRQ_MODE_SET_CPU, 0, &iib);
416416
zpci_set_irq_ctrl(SIC_IRQ_MODE_D_SINGLE, PCI_ISC, &ziib);

0 commit comments

Comments
 (0)