OSDN Git Service

accel/ivpu: Do not use mutex_lock_interruptible
authorStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Thu, 25 May 2023 10:38:18 +0000 (12:38 +0200)
committerStanislaw Gruszka <stanislaw.gruszka@linux.intel.com>
Thu, 8 Jun 2023 06:15:46 +0000 (08:15 +0200)
commitb563e47957af4ff71736c5cc4120a59b055ab583
treeab6bb5589978d9b5ec020120e032065dcc8afd17
parent9f7e3611f6c828fcb6001c39d8e7a523a4f31525
accel/ivpu: Do not use mutex_lock_interruptible

If we get signal when waiting for the mmu->lock we do not invalidate
current MMU configuration that might result in undefined behavior.

Additionally there is little or no benefit on break waiting for
ipc->lock. In current code base, we keep this lock for short periods.

Fixes: 263b2ba5fc93 ("accel/ivpu: Add Intel VPU MMU support")
Reviewed-by: Krystian Pradzynski <krystian.pradzynski@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/20230525103818.877590-2-stanislaw.gruszka@linux.intel.com
drivers/accel/ivpu/ivpu_ipc.c
drivers/accel/ivpu/ivpu_mmu.c