summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/powerplay/inc
diff options
context:
space:
mode:
authorWenhui Sheng <Wenhui.Sheng@amd.com>2020-05-21 08:11:13 +0200
committerAlex Deucher <alexander.deucher@amd.com>2020-05-28 20:00:50 +0200
commitd4f3c0b3325413193ddd996fbb495f1d09250583 (patch)
tree31435c1eec7d81881f8b78b178deb2141d357c06 /drivers/gpu/drm/amd/powerplay/inc
parentdrm/amd/powerplay: check whether SMU IP is enabled before access (diff)
downloadlinux-d4f3c0b3325413193ddd996fbb495f1d09250583.tar.xz
linux-d4f3c0b3325413193ddd996fbb495f1d09250583.zip
drm/amd/powerplay: add SMC message filter for SMU11
1. add smu_11_0_msg_mapping definition 2. add valid info for each SMC message in SRIOV Signed-off-by: Wenhui Sheng <Wenhui.Sheng@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Kevin Wang <kevin1.wang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/powerplay/inc')
-rw-r--r--drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h b/drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h
index 5c6bfe76d596..09047c3010e9 100644
--- a/drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h
+++ b/drivers/gpu/drm/amd/powerplay/inc/smu_v11_0.h
@@ -70,6 +70,12 @@ static const struct smu_temperature_range smu11_thermal_policy[] =
{ 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000, 120000},
};
+struct smu_11_0_msg_mapping {
+ int valid_mapping;
+ int map_to;
+ int valid_in_vf;
+};
+
struct smu_11_0_cmn2aisc_mapping {
int valid_mapping;
int map_to;