]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jun 2023 09:16:51 +0000 (11:16 +0200)
commita096f7b8c8629e1184e355255c0e8ec4ca47e560
treee6d1a2a62118bef16f90fa67ea5ead74f00b80f0
parentcb459a104b8c3a23242668d99863cf52f7686337
accel/ivpu: Do not use mutex_lock_interruptible

[ Upstream commit b563e47957af4ff71736c5cc4120a59b055ab583 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/accel/ivpu/ivpu_ipc.c
drivers/accel/ivpu/ivpu_mmu.c