From: Alex Xie Date: Fri, 3 Mar 2017 21:47:11 +0000 (-0500) Subject: drm/amdgpu: handle PTE EXEC in amdgpu_vm_bo_split_mapping X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=15b31c59bc71c9c7e7c1d13cd62e38b9ef67379e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/amdgpu: handle PTE EXEC 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 696860132f04..338aee7f2aba 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -1110,6 +1110,9 @@ static int amdgpu_vm_bo_split_mapping(struct amdgpu_device *adev, if (!(mapping->flags & AMDGPU_PTE_WRITEABLE)) flags &= ~AMDGPU_PTE_WRITEABLE; + flags &= ~AMDGPU_PTE_EXECUTABLE; + flags |= mapping->flags & AMDGPU_PTE_EXECUTABLE; + trace_amdgpu_vm_bo_update(mapping); pfn = mapping->offset >> PAGE_SHIFT;