aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0208-drm-amdgpu-disable-direct-VM-updates-when-vm_debug-i.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0208-drm-amdgpu-disable-direct-VM-updates-when-vm_debug-i.patch')
-rw-r--r--common/recipes-kernel/linux/files/0208-drm-amdgpu-disable-direct-VM-updates-when-vm_debug-i.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/files/0208-drm-amdgpu-disable-direct-VM-updates-when-vm_debug-i.patch b/common/recipes-kernel/linux/files/0208-drm-amdgpu-disable-direct-VM-updates-when-vm_debug-i.patch
new file mode 100644
index 00000000..59c1787f
--- /dev/null
+++ b/common/recipes-kernel/linux/files/0208-drm-amdgpu-disable-direct-VM-updates-when-vm_debug-i.patch
@@ -0,0 +1,34 @@
+From 1338d00055c756221e1d26d5e110f3712d037732 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Fri, 19 Feb 2016 10:03:03 +0100
+Subject: [PATCH 0208/1110] drm/amdgpu: disable direct VM updates when vm_debug
+ is set
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+That should make user space bugs more obvious.
+
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
+index 8eb4b68..cb34ff6 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
+@@ -596,7 +596,8 @@ int amdgpu_gem_va_ioctl(struct drm_device *dev, void *data,
+ break;
+ }
+ ttm_eu_backoff_reservation(&ticket, &list);
+- if (!r && !(args->flags & AMDGPU_VM_DELAY_UPDATE))
++ if (!r && !(args->flags & AMDGPU_VM_DELAY_UPDATE) &&
++ !amdgpu_vm_debug)
+ amdgpu_gem_va_update_vm(adev, bo_va, args->operation);
+
+ drm_gem_object_unreference_unlocked(gobj);
+--
+2.7.4
+