diff options
author | Rodrigo Siqueira <[email protected]> | 2022-10-18 08:28:23 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2022-10-24 14:34:46 -0400 |
commit | eef019eabc3cd0fddcffefbf67806a4d8cca29bb (patch) | |
tree | 67fd8a8f572e05378bd2178e6f42d8eecf34c4b2 | |
parent | 170390e587a69b2a24abac39eb3ae6ec28a4d7f2 (diff) |
drm/amd/display: Update OTG instance in the commit stream
OTG instance is not updated in dc_commit_state_no_check for newly
committed streams because mode_change is not set. Notice that OTG update
is part of the software state, and after hardware programming, it must
be updated; for this reason, this commit updates the OTG offset right
after hardware programming.
Reviewed-by: Harry Wentland <[email protected]>
Signed-off-by: Rodrigo Siqueira <[email protected]>
Co-developed-by: Aurabindo Pillai <[email protected]>
Signed-off-by: Aurabindo Pillai <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index d568387c4bda..b7afada35b24 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -1949,6 +1949,12 @@ enum dc_status dc_commit_streams(struct dc *dc, res = dc_commit_state_no_check(dc, context); + for (i = 0; i < stream_count; i++) { + for (j = 0; j < context->stream_count; j++) + if (streams[i]->stream_id == context->streams[j]->stream_id) + streams[i]->out.otg_offset = context->stream_status[j].primary_otg_inst; + } + fail: dc_release_state(context); |