aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ast/ast_main.c
diff options
context:
space:
mode:
authorDanilo Krummrich <[email protected]>2023-11-24 23:36:38 +0000
committerMaxime Ripard <[email protected]>2023-11-28 12:57:46 +0000
commit0d3abd456be45369235dd75793ce26f07900044c (patch)
tree49baf411450557a160b2cb6beee5d1d2750b03e6 /drivers/gpu/drm/ast/ast_main.c
parentdrm/imagination: vm: check for drm_gpuvm_range_valid() (diff)
downloadkernel-0d3abd456be45369235dd75793ce26f07900044c.tar.gz
kernel-0d3abd456be45369235dd75793ce26f07900044c.zip
drm/imagination: vm: fix drm_gpuvm reference count
The driver specific reference count indicates whether the VM should be teared down, whereas GPUVM's reference count indicates whether the VM structure can finally be freed. Hence, free the VM structure in pvr_gpuvm_free() and drop the last GPUVM reference after tearing down the VM. Generally, this prevents lifetime issues such as the VM being freed as long as drm_gpuvm_bo structures still hold references to the VM. Fixes: ff5f643de0bf ("drm/imagination: Add GEM and VM related code") Signed-off-by: Danilo Krummrich <[email protected]> Reviewed-by: Donald Robson <[email protected]> Tested-by: Frank Binns <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/ast/ast_main.c')
0 files changed, 0 insertions, 0 deletions