From: Ilya Bakoulin <ilya.bakou...@amd.com>

[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.bakou...@amd.com>
Reviewed-by: Dmytro Laktyushkin <dmytro.laktyush...@amd.com>
Acked-by: Bhawanpreet Lakha <bhawanpreet.la...@amd.com>
---
 drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c 
b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
index 477885816854..353e3e7cb929 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
@@ -2798,7 +2798,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;
-- 
2.17.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to