Commit ad51b4ac authored by Nicholas Kazlauskas's avatar Nicholas Kazlauskas Committed by Alex Deucher

drm/amd/display: Extend DMCUB offload testing into dcn20/21

[Why]
To quickly validate whether DMCUB is running and accepting commands for
offload testing we want to intercept a common sequence as part of
modeset programming.

[How]
OTG enable will cause the most impact in terms of golden register
changes and it's a single register write.

This approach was previously done in dcn10 code when it was shared with
dcn20 but it wasn't ported over to the dcn20 code.

Port over start, execute and wait sequence into dcn20_optc.
Signed-off-by: default avatarNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: default avatarTony Cheng <Tony.Cheng@amd.com>
Acked-by: default avatarLeo Li <sunpeng.li@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c14f2507
...@@ -59,11 +59,16 @@ bool optc2_enable_crtc(struct timing_generator *optc) ...@@ -59,11 +59,16 @@ bool optc2_enable_crtc(struct timing_generator *optc)
REG_UPDATE(CONTROL, REG_UPDATE(CONTROL,
VTG0_ENABLE, 1); VTG0_ENABLE, 1);
REG_SEQ_START();
/* Enable CRTC */ /* Enable CRTC */
REG_UPDATE_2(OTG_CONTROL, REG_UPDATE_2(OTG_CONTROL,
OTG_DISABLE_POINT_CNTL, 3, OTG_DISABLE_POINT_CNTL, 3,
OTG_MASTER_EN, 1); OTG_MASTER_EN, 1);
REG_SEQ_SUBMIT();
REG_SEQ_WAIT_DONE();
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment