[PATCH 38/39] drm/amd/dal: fix wrong pll selection for hdmi
Harry Wentland
harry.wentland at amd.com
Thu Nov 24 02:03:07 UTC 2016
From: Tony Cheng <tony.cheng at amd.com>
- expose phy pll selection algorithm
Change-Id: I770519f1fa83f3ccb5b4379d46d476c24ae5d7ed
Signed-off-by: Tony Cheng <tony.cheng at amd.com>
Acked-by: Harry Wentland <harry.wentland at 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(-)
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);
--
2.10.1
More information about the amd-gfx
mailing list