drm/amd/display: Fix DML tests
authorIlya Bakoulin <Ilya.Bakoulin@amd.com>
Wed, 7 Aug 2019 17:02:44 +0000 (13:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Sep 2019 22:54:34 +0000 (17:54 -0500)
[Why]
DML diags tests are failing because the struct contents get
clobbered by a memcpy.

[How]
Remove the memcpy call.

Signed-off-by: Ilya Bakoulin <Ilya.Bakoulin@amd.com>
Reviewed-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c

index b4e3ce2..5a9d3c8 100644 (file)
@@ -2800,7 +2800,6 @@ bool dcn20_validate_bandwidth(struct dc *dc, struct dc_state *context,
        ASSERT(false);
 
 restore_dml_state:
-       memcpy(&context->bw_ctx.dml, &dc->dml, sizeof(struct display_mode_lib));
        context->bw_ctx.dml.soc.dram_clock_change_latency_us = p_state_latency_us;
 
        return voltage_supported;