mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
drm/amdgpu: have bos for PDs/PTS cpu accessible when kfd uses cpu to update vm
When kfd uses cpu to update vm iterates all current PDs/PTs bos, adds AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED flag and kmap them to kernel virtual address space before kfd updates the vm that was created by gfx. Signed-off-by: Xiaogang Chen <Xiaogang.Chen@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
9041b53a59
commit
eb58ad143d
@@ -31,6 +31,7 @@
|
||||
*/
|
||||
static int amdgpu_vm_cpu_map_table(struct amdgpu_bo_vm *table)
|
||||
{
|
||||
table->bo.flags |= AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED;
|
||||
return amdgpu_bo_kmap(&table->bo, NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user