aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2017-drm-amd-powerplay-Tidy-up-cz_dpm_powerdown_uvd.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2017-drm-amd-powerplay-Tidy-up-cz_dpm_powerdown_uvd.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2017-drm-amd-powerplay-Tidy-up-cz_dpm_powerdown_uvd.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2017-drm-amd-powerplay-Tidy-up-cz_dpm_powerdown_uvd.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2017-drm-amd-powerplay-Tidy-up-cz_dpm_powerdown_uvd.patch
new file mode 100644
index 00000000..daeea4a9
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2017-drm-amd-powerplay-Tidy-up-cz_dpm_powerdown_uvd.patch
@@ -0,0 +1,33 @@
+From 037b059ba048c2a2851c2aeac2e33fc32e97662c Mon Sep 17 00:00:00 2001
+From: Tom St Denis <tom.stdenis@amd.com>
+Date: Mon, 16 Oct 2017 13:25:42 -0400
+Subject: [PATCH 2017/4131] drm/amd/powerplay: Tidy up cz_dpm_powerdown_uvd()
+
+Use PP_CAP and tidy up indentation.
+
+Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
+index 75af4d9..c2afc0a 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
+@@ -1274,10 +1274,8 @@ static int cz_dpm_force_dpm_level(struct pp_hwmgr *hwmgr,
+
+ int cz_dpm_powerdown_uvd(struct pp_hwmgr *hwmgr)
+ {
+- if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,
+- PHM_PlatformCaps_UVDPowerGating))
+- return smum_send_msg_to_smc(hwmgr,
+- PPSMC_MSG_UVDPowerOFF);
++ if (PP_CAP(PHM_PlatformCaps_UVDPowerGating))
++ return smum_send_msg_to_smc(hwmgr, PPSMC_MSG_UVDPowerOFF);
+ return 0;
+ }
+
+--
+2.7.4
+