aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1360-drm-amd-powerplay-add-smu-table-context-structure.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1360-drm-amd-powerplay-add-smu-table-context-structure.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1360-drm-amd-powerplay-add-smu-table-context-structure.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1360-drm-amd-powerplay-add-smu-table-context-structure.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1360-drm-amd-powerplay-add-smu-table-context-structure.patch
new file mode 100644
index 00000000..11177507
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/1360-drm-amd-powerplay-add-smu-table-context-structure.patch
@@ -0,0 +1,42 @@
+From 827fc52642096554308284f9e2789ceab6097795 Mon Sep 17 00:00:00 2001
+From: Huang Rui <ray.huang@amd.com>
+Date: Wed, 12 Dec 2018 20:47:24 +0800
+Subject: [PATCH 1360/2940] drm/amd/powerplay: add smu table context structure
+
+This patch adds smu table context.
+
+Signed-off-by: Huang Rui <ray.huang@amd.com>
+Reviewed-by: Kevin Wang <Kevin1.Wang@amd.com>
+Acked-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h b/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
+index 9e467d32aa85..215902fdbd8d 100644
+--- a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
++++ b/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h
+@@ -24,12 +24,20 @@
+
+ #include "amdgpu.h"
+
++struct smu_table_context
++{
++ void *power_play_table;
++ uint32_t power_play_table_size;
++};
++
+ struct smu_context
+ {
+ struct amdgpu_device *adev;
+
+ const struct smu_funcs *funcs;
+ struct mutex mutex;
++
++ struct smu_table_context smu_table;
+ };
+
+ struct smu_funcs
+--
+2.17.1
+