[38/39] drm/amd/dal: fix wrong pll selection for hdmi

Submitted by Harry Wentland on Nov. 24, 2016, 2:03 a.m.

Details

Message ID 20161124020308.28124-39-harry.wentland@amd.com
State New
Headers show
Series "dal patches for nov 23, 2016" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Harry Wentland Nov. 24, 2016, 2:03 a.m.
From: Tony Cheng <tony.cheng@amd.com>

- expose phy pll selection algorithm

Change-Id: I770519f1fa83f3ccb5b4379d46d476c24ae5d7ed
Signed-off-by: Tony Cheng <tony.cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
---
 drivers/gpu/drm/amd/dal/dc/dce112/dce112_resource.c | 6 +++---
 drivers/gpu/drm/amd/dal/dc/inc/resource.h           | 4 ++++
 2 files changed, 7 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/amd/dal/dc/dce112/dce112_resource.c b/drivers/gpu/drm/amd/dal/dc/dce112/dce112_resource.c
index c74288d98749..a9991aa28666 100644
--- a/drivers/gpu/drm/amd/dal/dc/dce112/dce112_resource.c
+++ b/drivers/gpu/drm/amd/dal/dc/dce112/dce112_resource.c
@@ -902,7 +902,7 @@  enum dc_status dce112_validate_bandwidth(
 	return result;
 }
 
-static enum dc_status map_clock_resources(
+enum dc_status resource_map_phy_clock_resources(
 		const struct core_dc *dc,
 		struct validate_context *context)
 {
@@ -1001,7 +1001,7 @@  enum dc_status dce112_validate_with_context(
 	result = resource_map_pool_resources(dc, context);
 
 	if (result == DC_OK)
-		result = map_clock_resources(dc, context);
+		result = resource_map_phy_clock_resources(dc, context);
 
 	if (!resource_validate_attach_surfaces(
 			set, set_count, dc->current_context, context)) {
@@ -1037,7 +1037,7 @@  enum dc_status dce112_validate_guaranteed(
 	result = resource_map_pool_resources(dc, context);
 
 	if (result == DC_OK)
-		result = resource_map_clock_resources(dc, context);
+		result = resource_map_phy_clock_resources(dc, context);
 
 	if (result == DC_OK)
 		result = validate_mapped_resource(dc, context);
diff --git a/drivers/gpu/drm/amd/dal/dc/inc/resource.h b/drivers/gpu/drm/amd/dal/dc/inc/resource.h
index dae94706e5da..c1a236d54f72 100644
--- a/drivers/gpu/drm/amd/dal/dc/inc/resource.h
+++ b/drivers/gpu/drm/amd/dal/dc/inc/resource.h
@@ -152,6 +152,10 @@  enum dc_status resource_map_clock_resources(
 		const struct core_dc *dc,
 		struct validate_context *context);
 
+enum dc_status resource_map_phy_clock_resources(
+		const struct core_dc *dc,
+		struct validate_context *context);
+
 bool pipe_need_reprogram(
 		struct pipe_ctx *pipe_ctx_old,
 		struct pipe_ctx *pipe_ctx);