Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdkfd: Add missing NULL check in svm_range_map_to_gpu

bo_adev is NULL for system memory mapping to GPU.

Fixes: 30671b44aa570a ("drm/amdgpu: fix TLB flushing during eviction")
Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Philip Yang and committed by
Alex Deucher
96621ca5 78174f47

+1 -1
+1 -1
drivers/gpu/drm/amd/amdkfd/kfd_svm.c
··· 1281 1281 last_start, prange->start + i, 1282 1282 pte_flags, 1283 1283 last_start - prange->start, 1284 - bo_adev->vm_manager.vram_base_offset, 1284 + bo_adev ? bo_adev->vm_manager.vram_base_offset : 0, 1285 1285 NULL, dma_addr, &vm->last_update); 1286 1286 1287 1287 for (j = last_start - prange->start; j <= i; j++)