aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/0209-drm-amdgpu-remove-amdgpu_bo_gpu_accessible.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0209-drm-amdgpu-remove-amdgpu_bo_gpu_accessible.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/0209-drm-amdgpu-remove-amdgpu_bo_gpu_accessible.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0209-drm-amdgpu-remove-amdgpu_bo_gpu_accessible.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0209-drm-amdgpu-remove-amdgpu_bo_gpu_accessible.patch
new file mode 100644
index 00000000..621ceace
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0209-drm-amdgpu-remove-amdgpu_bo_gpu_accessible.patch
@@ -0,0 +1,48 @@
+From d6d2472c73c512aeade6a6192ddbc63483da2fb5 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Tue, 28 Aug 2018 13:44:32 +0200
+Subject: [PATCH 0209/2940] drm/amdgpu: remove amdgpu_bo_gpu_accessible
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Not used any more.
+
+Change-Id: I7330fe09c523fccad0668eade97a4a51b796b825
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
+Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 15 ---------------
+ 1 file changed, 15 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
+index ab987fda411c..019de018a6ca 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
+@@ -197,21 +197,6 @@ static inline u64 amdgpu_bo_mmap_offset(struct amdgpu_bo *bo)
+ return drm_vma_node_offset_addr(&bo->tbo.vma_node);
+ }
+
+-/**
+- * amdgpu_bo_gpu_accessible - return whether the bo is currently in memory that
+- * is accessible to the GPU.
+- */
+-static inline bool amdgpu_bo_gpu_accessible(struct amdgpu_bo *bo)
+-{
+- switch (bo->tbo.mem.mem_type) {
+- case TTM_PL_TT: return amdgpu_gtt_mgr_has_gart_addr(&bo->tbo.mem);
+- case AMDGPU_PL_DGMA:
+- case AMDGPU_PL_DGMA_IMPORT:
+- case TTM_PL_VRAM: return true;
+- default: return false;
+- }
+-}
+-
+ /**
+ * amdgpu_bo_in_cpu_visible_vram - check if BO is (partly) in visible VRAM
+ */
+--
+2.17.1
+