accel/ivpu/37xx: Fix missing VPUIP interrupts
authorKarol Wachowski <karol.wachowski@linux.intel.com>
Tue, 24 Oct 2023 16:19:52 +0000 (18:19 +0200)
committerStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Thu, 26 Oct 2023 05:43:28 +0000 (07:43 +0200)
commitb132ac51d7a50c37683be56c96ff64f8c887930f
treee45197b53c5f75f596bc2444f0fb5b9995b9eeee
parent4e6c38c38723a954b85aa9ee62603bb4a37acbb4
accel/ivpu/37xx: 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 will cause the driver to miss any
VPUIP interrupt that comes after reading VPU_37XX_HOST_SS_ICB_STATUS_0
and before clearing all active interrupt sources.

Fixes: 35b137630f08 ("accel/ivpu: Introduce a new DRM driver for Intel VPU")
Cc: stable@vger.kernel.org
Signed-off-by: Karol Wachowski <karol.wachowski@linux.intel.com>
Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Signed-off-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231024161952.759914-1-stanislaw.gruszka@linux.intel.com
drivers/accel/ivpu/ivpu_hw_37xx.c