aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/0058-drm-amdgpu-powerplay-vega10-enable-AVFS-control-via-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0058-drm-amdgpu-powerplay-vega10-enable-AVFS-control-via-.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/0058-drm-amdgpu-powerplay-vega10-enable-AVFS-control-via-.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0058-drm-amdgpu-powerplay-vega10-enable-AVFS-control-via-.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0058-drm-amdgpu-powerplay-vega10-enable-AVFS-control-via-.patch
new file mode 100644
index 00000000..2926cd56
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0058-drm-amdgpu-powerplay-vega10-enable-AVFS-control-via-.patch
@@ -0,0 +1,32 @@
+From 2b92533e7bdc9c0403a8fd5d129a6911ba0c4bbf Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Fri, 10 Aug 2018 13:21:09 -0500
+Subject: [PATCH 0058/2940] drm/amdgpu/powerplay/vega10: enable AVFS control
+ via ppfeaturemask
+
+Allow the user to disable AFVS via ppfeaturemask for debugging.
+
+Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
+Reviewed-by: Huang Rui <ray.huang@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+index 704b237ecf70..ca9be583fb62 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c
+@@ -129,7 +129,8 @@ static void vega10_set_default_registry_data(struct pp_hwmgr *hwmgr)
+ data->registry_data.thermal_support = 1;
+ data->registry_data.fw_ctf_enabled = 1;
+
+- data->registry_data.avfs_support = 1;
++ data->registry_data.avfs_support =
++ hwmgr->feature_mask & PP_AVFS_MASK ? true : false;
+ data->registry_data.led_dpm_enabled = 1;
+
+ data->registry_data.vr0hot_enabled = 1;
+--
+2.17.1
+