drm/amd/display:: Fix NULL pointer in Raven hotplug
Subsystems (3)
PATCH 1/1 drm/amd/display:: Fix NULL pointer in Raven hotplug
Programming sequence to frontend and backend has been switched. In such case, program_scaler() is getting called when programming frontend, and should be removed from backend programming routine.
--- drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 7 ------- 1 file changed, 7 deletions(-)
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +0 -7
@@ -1369,13 +1369,6 @@ static enum dc_status apply_single_controller_ctx_to_hw( } pipe_ctx->plane_res.scl_data.lb_params.alpha_en = pipe_ctx->bottom_pipe !=0 ; -/* program_scaler and allocate_mem_input are not new asic */ -if ((!pipe_ctx_old || -memcmp (&pipe_ctx_old->plane_res.scl_data, &pipe_ctx->plane_res.scl_data, -sizeof (struct scaler_data )) !=0 ) && - pipe_ctx->plane_state) { -program_scaler (dc, pipe_ctx); - } pipe_ctx->stream->sink->link->psr_enabled = false;
Signature · 6 lines
2.11.0 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): [email protected]
Harry Wentland
Reviewed-byQuoted 5 lines · Jerry (Fangzhi) Zuo
Programming sequence to frontend and backend has been switched. In such case,
program_scaler()is getting called when programming frontend, and should be removed from backend programming routine.Signed-off-by Jerry (Fangzhi) Zuo <[email protected]>
Harry
Quoted 13 lines
--- drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 7 ------- 1 file changed, 7 deletions(-)drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +0
-0@@ -1369,13 +1369,6 @@ static enum dc_status apply_single_controller_ctx_to_hw( } pipe_ctx->plane_res.scl_data.lb_params.alpha_en = pipe_ctx->bottom_pipe !=0 ;
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c static enum dc_status apply_single_controller_ctx_to_hw( · line 1374
Quoted 10 lines
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +0
-7-/* program_scaler and allocate_mem_input are not new asic */ -if ((!pipe_ctx_old || -memcmp (&pipe_ctx_old->plane_res.scl_data, &pipe_ctx->plane_res.scl_data, -sizeof (struct scaler_data )) !=0 ) && - pipe_ctx->plane_state) { -program_scaler (dc, pipe_ctx); - } pipe_ctx->stream->sink->link->psr_enabled = false;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx