drm/imagination: vm: make use of GPUVM's drm_exec helper
authorDanilo Krummrich <dakr@redhat.com>
Wed, 29 Nov 2023 22:08:01 +0000 (23:08 +0100)
committerDanilo Krummrich <dakr@redhat.com>
Tue, 5 Dec 2023 01:43:11 +0000 (02:43 +0100)
commit4bc736f890cec126246a1d65d3b556763670a8d4
tree7091bbf0273146291d0141d9e31f72c6e31b6b93
parente759f2ca29d918d3db57a61cdf838025beb03465
drm/imagination: vm: make use of GPUVM's drm_exec helper

Make use of GPUVM's drm_exec helper functions preventing direct access
to GPUVM internal data structures, such as the external object list.

This is especially important to ensure following the locking rules
around the GPUVM external object list.

Fixes: ff5f643de0bf ("drm/imagination: Add GEM and VM related code")
Reviewed-by: Donald Robson <donald.robson@imgtec.com>
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231129220835.297885-3-dakr@redhat.com
drivers/gpu/drm/imagination/pvr_vm.c