[PATCH 01/10] drm/amdgpu: fix huge page setting for ATS case

Christian König ckoenig.leichtzumerken at gmail.com
Mon Dec 11 10:27:03 UTC 2017


Am 11.12.2017 um 09:16 schrieb Chunming Zhou:
> Change-Id: I35a35ed2956fc76cef7c31d45502ccb614040dee
> Signed-off-by: Chunming Zhou <david1.zhou at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com>

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> index 3ecdbdfb04dd..bb191fca60f3 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> @@ -346,7 +346,7 @@ static int amdgpu_vm_alloc_levels(struct amdgpu_device *adev,
>   
>   	if (vm->pte_support_ats) {
>   		init_value = AMDGPU_PTE_DEFAULT_ATC;
> -		if (level != adev->vm_manager.num_level - 1)
> +		if (level != adev->vm_manager.num_level)
>   			init_value |= AMDGPU_PDE_PTE;
>   
>   	}



More information about the amd-gfx mailing list