linux-stable/drivers/accel
Jacek Lawrynowicz d43e11d9c7 accel/ivpu: Fix deadlock in context_xa
commit fd7726e759 upstream.

ivpu_device->context_xa is locked both in kernel thread and IRQ context.
It requires XA_FLAGS_LOCK_IRQ flag to be passed during initialization
otherwise the lock could be acquired from a thread and interrupted by
an IRQ that locks it for the second time causing the deadlock.

This deadlock was reported by lockdep and observed in internal tests.

Fixes: 35b137630f ("accel/ivpu: Introduce a new DRM driver for Intel VPU")
Cc: <stable@vger.kernel.org> # v6.3+
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240402104929.941186-9-jacek.lawrynowicz@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-04-17 11:19:34 +02:00
..
habanalabs accel/habanalabs: increase HL_MAX_STR to 64 bytes to avoid warnings 2024-04-13 13:07:35 +02:00
ivpu accel/ivpu: Fix deadlock in context_xa 2024-04-17 11:19:34 +02:00
qaic accel/qaic: Implement quirk for SOC_HW_VERSION 2024-01-10 17:16:47 +01:00
Kconfig accel/qaic: Add qaic driver to the build system 2023-04-06 08:23:03 +02:00
Makefile accel/qaic: Add qaic driver to the build system 2023-04-06 08:23:03 +02:00
drm_accel.c driver core: class: remove module * from class_create() 2023-03-17 15:16:33 +01:00