mirror of https://gitee.com/openkylin/linux.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 <christian.koenig@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@amd.com> Acked-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
4dbda35ffa
commit
4d4358f3f1
|
@ -950,11 +950,8 @@ static void amdgpu_vm_handle_huge_pages(struct amdgpu_pte_update_params *p,
|
||||||
uint64_t pd_addr, pde;
|
uint64_t pd_addr, pde;
|
||||||
|
|
||||||
/* In the case of a mixed PT the PDE must point to it*/
|
/* In the case of a mixed PT the PDE must point to it*/
|
||||||
if (p->adev->asic_type < CHIP_VEGA10 ||
|
if (p->adev->asic_type < CHIP_VEGA10 || p->src ||
|
||||||
nptes != AMDGPU_VM_PTE_COUNT(p->adev) ||
|
nptes != AMDGPU_VM_PTE_COUNT(p->adev)) {
|
||||||
p->src ||
|
|
||||||
!(flags & AMDGPU_PTE_VALID)) {
|
|
||||||
|
|
||||||
dst = amdgpu_bo_gpu_offset(entry->base.bo);
|
dst = amdgpu_bo_gpu_offset(entry->base.bo);
|
||||||
flags = AMDGPU_PTE_VALID;
|
flags = AMDGPU_PTE_VALID;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue