aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorLang Yu <Lang.Yu@amd.com>2024-04-07 12:36:00 +0800
committerAlex Deucher <alexander.deucher@amd.com>2024-04-23 23:22:23 -0400
commit9c783a11214553a54f0915a7260a3ce624d36bf2 (patch)
tree90b96bc19685578ef25eccba9760cd209b8f8848 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parent25e9227c6afd200bed6774c866980b8e36d033af (diff)
downloadlinux-9c783a11214553a54f0915a7260a3ce624d36bf2.tar.gz
linux-9c783a11214553a54f0915a7260a3ce624d36bf2.tar.bz2
linux-9c783a11214553a54f0915a7260a3ce624d36bf2.zip
drm/amdkfd: make sure VM is ready for updating operations
When page table BOs were evicted but not validated before updating page tables, VM is still in evicting state, amdgpu_vm_update_range returns -EBUSY and restore_process_worker runs into a dead loop. v2: Split the BO validation and page table update into two separate loops in amdgpu_amdkfd_restore_process_bos. (Felix) 1.Validate BOs 2.Validate VM (and DMABuf attachments) 3.Update page tables for the BOs validated above Fixes: 50661eb1a2c8 ("drm/amdgpu: Auto-validate DMABuf imports in compute VMs") Signed-off-by: Lang Yu <Lang.Yu@amd.com> Acked-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> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions