drm/amdgpu: reserve the pd while cleaning up PRTs
authorChristian König <christian.koenig@amd.com>
Mon, 7 Feb 2022 08:05:23 +0000 (09:05 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Feb 2022 23:03:50 +0000 (18:03 -0500)
commitb6fba4ecf3554c515aa5354c54dfdf70d7526ff1
treee57a89b0c940d2a3fb79668a381f880660355f85
parentd7d7ddc15672940be0dbbe03e016c5bb617256b8
drm/amdgpu: reserve the pd while cleaning up PRTs

We want to have lockdep annotation here, so make sure that we reserve
the PD while removing PRTs even if it isn't strictly necessary since the
VM object is about to be destroyed anyway.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c