aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorBrendan King <[email protected]>2025-02-26 15:43:06 +0000
committerMatt Coster <[email protected]>2025-03-03 12:09:00 +0000
commita5c4c3ba95a52d66315acdfbaba9bd82ed39c250 (patch)
treef4233b48ef522a6c47128f9851f49714b306c030 /net/switchdev/switchdev.c
parentdrm/imagination: avoid deadlock on fence release (diff)
downloadkernel-a5c4c3ba95a52d66315acdfbaba9bd82ed39c250.tar.gz
kernel-a5c4c3ba95a52d66315acdfbaba9bd82ed39c250.zip
drm/imagination: Hold drm_gem_gpuva lock for unmap
Avoid a warning from drm_gem_gpuva_assert_lock_held in drm_gpuva_unlink. The Imagination driver uses the GEM object reservation lock to protect the gpuva list, but the GEM object was not always known in the code paths that ended up calling drm_gpuva_unlink. When the GEM object isn't known, it is found by calling drm_gpuva_find to lookup the object associated with a given virtual address range, or by calling drm_gpuva_find_first when removing all mappings. Cc: [email protected] Fixes: 4bc736f890ce ("drm/imagination: vm: make use of GPUVM's drm_exec helper") Signed-off-by: Brendan King <[email protected]> Reviewed-by: Matt Coster <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/20250226-hold-drm_gem_gpuva-lock-for-unmap-v2-1-3fdacded227f@imgtec.com Signed-off-by: Matt Coster <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions