]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdgpu:PTE flag should be 64 bit width
authorMonk Liu <Monk.Liu@amd.com>
Thu, 27 Apr 2017 09:14:57 +0000 (17:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 May 2017 22:12:28 +0000 (18:12 -0400)
otherwise we'll lost the high 32 bit for pte, which lead
to incorrect MTYPE for vega10.

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c

index 7bb1bf76319a513e6bc5555f50e97cd3daa0d94c..5db0230e45c6db9c2604547346aa715afcb8cdd0 100644 (file)
@@ -765,7 +765,7 @@ int amdgpu_ttm_recover_gart(struct amdgpu_device *adev)
 {
        struct amdgpu_ttm_tt *gtt, *tmp;
        struct ttm_mem_reg bo_mem;
-       uint32_t flags;
+       uint64_t flags;
        int r;
 
        bo_mem.mem_type = TTM_PL_TT;