summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuang Rui <ray.huang@amd.com>2018-12-12 20:47:24 +0800
committerAlex Deucher <alexander.deucher@amd.com>2019-03-19 15:03:55 -0500
commit2cf543ed4f3b70f9f1eeadf4a7cbf656d39ad30e (patch)
tree926704af2e2a19c0e3c07de5726d070213508d96
parent0ae6afbffe0e7aa2880e19864ef92ce255d2c189 (diff)
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> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h8
1 files changed, 8 insertions, 0 deletions
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