aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0465-drm-amdgpu-Drop-dead-define-in-amdgpu.h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0465-drm-amdgpu-Drop-dead-define-in-amdgpu.h.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0465-drm-amdgpu-Drop-dead-define-in-amdgpu.h.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0465-drm-amdgpu-Drop-dead-define-in-amdgpu.h.patch b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0465-drm-amdgpu-Drop-dead-define-in-amdgpu.h.patch
new file mode 100644
index 00000000..500bc717
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux-4.19/linux-yocto-4.19.8/0465-drm-amdgpu-Drop-dead-define-in-amdgpu.h.patch
@@ -0,0 +1,63 @@
+From 91935310fa4503b0c37ac9cc256c2350a38ddae2 Mon Sep 17 00:00:00 2001
+From: Rex Zhu <Rex.Zhu@amd.com>
+Date: Sat, 29 Sep 2018 17:07:48 +0800
+Subject: [PATCH 0465/2940] drm/amdgpu: Drop dead define in amdgpu.h
+
+the struct was not in use any more.
+
+Change-Id: I9c45b405c6cbf69a3c95d5fcd59e99bf3b489486
+Reviewed-by: Evan Quan <evan.quan@amd.com>
+Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
+Signed-off-by: Kalyan Alle <kalyan.alle@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu.h | 27 ---------------------------
+ 1 file changed, 27 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+index cb7e47d95002..b39c5adc43d0 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+@@ -623,30 +623,6 @@ void amdgpu_benchmark(struct amdgpu_device *adev, int test_number);
+ void amdgpu_test_moves(struct amdgpu_device *adev);
+
+
+-/*
+- * amdgpu smumgr functions
+- */
+-struct amdgpu_smumgr_funcs {
+- int (*check_fw_load_finish)(struct amdgpu_device *adev, uint32_t fwtype);
+- int (*request_smu_load_fw)(struct amdgpu_device *adev);
+- int (*request_smu_specific_fw)(struct amdgpu_device *adev, uint32_t fwtype);
+-};
+-
+-/*
+- * amdgpu smumgr
+- */
+-struct amdgpu_smumgr {
+- struct amdgpu_bo *toc_buf;
+- struct amdgpu_bo *smu_buf;
+- /* asic priv smu data */
+- void *priv;
+- spinlock_t smu_lock;
+- /* smumgr functions */
+- const struct amdgpu_smumgr_funcs *smumgr_funcs;
+- /* ucode loading complete flag */
+- uint32_t fw_flags;
+-};
+-
+ /*
+ * ASIC specific register table accessible by UMD
+ */
+@@ -1013,9 +989,6 @@ struct amdgpu_device {
+ u32 cg_flags;
+ u32 pg_flags;
+
+- /* amdgpu smumgr */
+- struct amdgpu_smumgr smu;
+-
+ /* gfx */
+ struct amdgpu_gfx gfx;
+
+--
+2.17.1
+