summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarry Wentland <harry.wentland@amd.com>2017-08-28 10:59:39 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 18:17:23 -0400
commit7c228a1a910784801360db5aedd153db9f465b56 (patch)
tree689d56dffb319d008dfc53f2639dfbd12e2458bf
parent513b5693391af332feda8f273af8446ccd4a220b (diff)
downloadlinux-stable-7c228a1a910784801360db5aedd153db9f465b56.tar.gz
linux-stable-7c228a1a910784801360db5aedd153db9f465b56.tar.bz2
linux-stable-7c228a1a910784801360db5aedd153db9f465b56.zip
drm/amd/display: Don't spam log with failed validation
In a lot of case we fail validation of timings for legitimate reasons. No need to print an error. Signed-off-by: Harry Wentland <harry.wentland@amd.com> Reviewed-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc_resource.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
index c7bb966e8b29..fbf7747424a9 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c
@@ -2711,7 +2711,6 @@ void resource_build_bit_depth_reduction_params(struct dc_stream_state *stream,
bool dc_validate_stream(struct dc *dc, struct dc_stream_state *stream)
{
struct dc *core_dc = dc;
- struct dc_context *dc_ctx = core_dc->ctx;
struct dc_link *link = stream->sink->link;
struct timing_generator *tg = core_dc->res_pool->timing_generators[0];
enum dc_status res = DC_OK;
@@ -2733,10 +2732,6 @@ bool dc_validate_stream(struct dc *dc, struct dc_stream_state *stream)
link,
&stream->timing);
- if (res != DC_OK)
- DC_ERROR("Failed validation for stream %p, err:%d, !\n",
- stream, res);
-
return res == DC_OK;
}