accel/ivpu/40xx: Fix missing VPUIP interrupts
authorKarol Wachowski <karol.wachowski@linux.intel.com>
Mon, 25 Sep 2023 12:11:36 +0000 (14:11 +0200)
committerStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Wed, 27 Sep 2023 05:40:37 +0000 (07:40 +0200)
commit09bb81cf243d151dd1c02fcd727a4604829d9927
tree8672a4a1eb96a9e32be8791bb4b542006ebd703f
parentec3e3adc6d53b0f4a9afc8f903fbf851341e0193
accel/ivpu/40xx: Fix missing VPUIP interrupts

Move sequence of masking and unmasking global interrupts from buttress
interrupt handler to generic one that handles both VPUIP and BTRS
interrupts.

Unmasking global interrupts will re-trigger MSI for any pending interrupts.
Lack of this sequence can randomly cause to miss any VPUIP interrupt that
comes after reading VPU_40XX_HOST_SS_ICB_STATUS_0 and before clearing
all active interrupt sources.

Fixes: 79cdc56c4a54 ("accel/ivpu: Add initial support for VPU 4")
Signed-off-by: Karol Wachowski <karol.wachowski@linux.intel.com>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230925121137.872158-6-stanislaw.gruszka@linux.intel.com
drivers/accel/ivpu/ivpu_hw_40xx.c