From: Alex Xie Date: Fri, 3 Mar 2017 21:49:39 +0000 (-0500) Subject: drm/amdgpu: handle PTE MTYPE in amdgpu_vm_bo_split_mapping X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b0fd18b0712307e1cd930c273795664d43d97871;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/amdgpu: handle PTE MTYPE in amdgpu_vm_bo_split_mapping Reviewed-by: Christian König Signed-off-by: Alex Xie 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 338aee7f2aba..2d9ec9cac447 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -1113,6 +1113,9 @@ static int amdgpu_vm_bo_split_mapping(struct amdgpu_device *adev, flags &= ~AMDGPU_PTE_EXECUTABLE; flags |= mapping->flags & AMDGPU_PTE_EXECUTABLE; + flags &= ~AMDGPU_PTE_MTYPE_MASK; + flags |= (mapping->flags & AMDGPU_PTE_MTYPE_MASK); + trace_amdgpu_vm_bo_update(mapping); pfn = mapping->offset >> PAGE_SHIFT;