drm/amd/display: dce60_hw_sequencer: add DCE6 specific .cursor_lock
authorMauro Rossi <issor.oruam@gmail.com>
Sun, 12 Jul 2020 20:54:13 +0000 (22:54 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Jul 2020 20:46:39 +0000 (16:46 -0400)
[Why]
kernel WARNING due to use of .cursor_lock = dce_pipe_control_lock inherited by dce110

[How]
DCE6 set .cursor_lock = dce60_pipe_control_lock

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce60/dce60_hw_sequencer.c

index 9d8797a..920c7ae 100644 (file)
@@ -424,6 +424,7 @@ void dce60_hw_sequencer_construct(struct dc *dc)
 
        dc->hwseq->funcs.enable_display_power_gating = dce100_enable_display_power_gating;
        dc->hwss.apply_ctx_for_surface = dce60_apply_ctx_for_surface;
+       dc->hwss.cursor_lock = dce60_pipe_control_lock;
        dc->hwss.pipe_control_lock = dce60_pipe_control_lock;
        dc->hwss.prepare_bandwidth = dce100_prepare_bandwidth;
        dc->hwss.optimize_bandwidth = dce100_optimize_bandwidth;