aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/1662-drm-amdgpu-remove-some-unused-VM-defines.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1662-drm-amdgpu-remove-some-unused-VM-defines.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/1662-drm-amdgpu-remove-some-unused-VM-defines.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1662-drm-amdgpu-remove-some-unused-VM-defines.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1662-drm-amdgpu-remove-some-unused-VM-defines.patch
new file mode 100644
index 00000000..6be41664
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1662-drm-amdgpu-remove-some-unused-VM-defines.patch
@@ -0,0 +1,36 @@
+From 518a7e6e676edb0592306f957e744399690d1944 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Mon, 18 Mar 2019 15:27:20 +0100
+Subject: [PATCH 1662/2940] drm/amdgpu: remove some unused VM defines
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Not needed any more.
+
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
+Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 5 -----
+ 1 file changed, 5 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
+index af5bb52cc148..a18a9f8c0d40 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
+@@ -165,11 +165,6 @@ struct amdgpu_vm_pte_funcs {
+ uint32_t incr, uint64_t flags);
+ };
+
+-#define AMDGPU_VM_FAULT(pasid, addr) (((u64)(pasid) << 48) | (addr))
+-#define AMDGPU_VM_FAULT_PASID(fault) ((u64)(fault) >> 48)
+-#define AMDGPU_VM_FAULT_ADDR(fault) ((u64)(fault) & 0xfffffffff000ULL)
+-
+-
+ struct amdgpu_task_info {
+ char process_name[TASK_COMM_LEN];
+ char task_name[TASK_COMM_LEN];
+--
+2.17.1
+