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: remove unnecessary cpu domain validation

before move to GTT domain.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

James Zhu and committed by
Alex Deucher
ca17c8e1 a89b5303

-6
-6
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
··· 595 595 { 596 596 struct ttm_operation_ctx ctx = {.interruptible = true}; 597 597 struct amdgpu_bo *bo = attachment->bo_va->base.bo; 598 - int ret; 599 - 600 - amdgpu_bo_placement_from_domain(bo, AMDGPU_GEM_DOMAIN_CPU); 601 - ret = ttm_bo_validate(&bo->tbo, &bo->placement, &ctx); 602 - if (ret) 603 - return ret; 604 598 605 599 amdgpu_bo_placement_from_domain(bo, AMDGPU_GEM_DOMAIN_GTT); 606 600 return ttm_bo_validate(&bo->tbo, &bo->placement, &ctx);