[PATCH 13/51] drm/amd/display: Add clock types to applying clk for voltage
Harry Wentland
harry.wentland at amd.com
Tue Jun 19 21:10:20 UTC 2018
From: Mikita Lipski <mikita.lipski at amd.com>
Add DCF and FCLK clock case statements for changing raven's
clocks for voltage request.
Also maintain DCEF clock for DCE120 calls.
Change-Id: I33018a752485b107c4127d4655d5e976855b6917
Signed-off-by: Mikita Lipski <mikita.lipski at amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng at amd.com>
Acked-by: Harry Wentland <harry.wentland at amd.com>
---
.../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c
index 67f1245e70ef..025f37f62c4b 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_services.c
@@ -441,10 +441,18 @@ bool dm_pp_apply_clock_for_voltage_request(
pp_clock_request.clock_type = amd_pp_dcef_clock;
break;
+ case DM_PP_CLOCK_TYPE_DCFCLK:
+ pp_clock_request.clock_type = amd_pp_dcf_clock;
+ break;
+
case DM_PP_CLOCK_TYPE_PIXELCLK:
pp_clock_request.clock_type = amd_pp_pixel_clock;
break;
+ case DM_PP_CLOCK_TYPE_FCLK:
+ pp_clock_request.clock_type = amd_pp_f_clock;
+ break;
+
default:
return false;
}
--
2.17.1
More information about the amd-gfx
mailing list