From: Christian König Date: Thu, 21 Dec 2017 12:30:50 +0000 (+0100) Subject: drm/amdgpu: loosen the criteria for huge pages a bit X-Git-Tag: v4.19~1610^2~10^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d4358f3f1d8fcc90aec89ea2925e748515b4332;p=platform%2Fkernel%2Flinux-rpi3.git drm/amdgpu: loosen the criteria for huge pages a bit We can actually handle invalid huge pages perfectly fine now. Signed-off-by: Christian König Reviewed-by: Chunming Zhou Acked-by: Felix Kuehling Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index d451080..3632c69 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -950,11 +950,8 @@ static void amdgpu_vm_handle_huge_pages(struct amdgpu_pte_update_params *p, uint64_t pd_addr, pde; /* In the case of a mixed PT the PDE must point to it*/ - if (p->adev->asic_type < CHIP_VEGA10 || - nptes != AMDGPU_VM_PTE_COUNT(p->adev) || - p->src || - !(flags & AMDGPU_PTE_VALID)) { - + if (p->adev->asic_type < CHIP_VEGA10 || p->src || + nptes != AMDGPU_VM_PTE_COUNT(p->adev)) { dst = amdgpu_bo_gpu_offset(entry->base.bo); flags = AMDGPU_PTE_VALID; } else {