drm/amdgpu: rework eviction lock handling into critical section v3

Taking the eviction lock is actually just one step which we need to do
in the critical section handling.

Rename the functions to reflect that, use the update parameters instead of the
vm to save the GFP flags.

v2: rebased and reordered
v3: fix rebase artefact, fix error handling in amdgpu_vm_pt_alloc

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Natalie Vock <nat@pixelcluster.dev>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Christian König 2026-05-27 15:39:47 +02:00 • committed by Alex Deucher
commit 0dc93a683a
4 changed files with 54 additions and 38 deletions