aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJun Lei <Jun.Lei@amd.com>2019-04-30 16:22:38 -0400
committerAlex Deucher <alexander.deucher@amd.com>2019-05-24 12:21:00 -0500
commitccd76ebce4e8e1e19df19bc7024355a1f82a9363 (patch)
tree1f5e7f2f43a4bf161389c7670188fdbf1b177032
parentdrm/amd/display: Explicitly specify update type per plane info change (diff)
downloadwireguard-linux-ccd76ebce4e8e1e19df19bc7024355a1f82a9363.tar.xz
wireguard-linux-ccd76ebce4e8e1e19df19bc7024355a1f82a9363.zip
drm/amd/display: dont set otg offset
move the update of otg instance outside of hw programming logic, since this is sw state, it should always be updated and should never be optimized away. Signed-off-by: Jun Lei <Jun.Lei@amd.com> Reviewed-by: Eric Yang <eric.yang2@amd.com> Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c
index 257e632a3a1a..4e17af2b63dc 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc.c
@@ -1141,7 +1141,6 @@ static enum dc_status dc_commit_state_no_check(struct dc *dc, struct dc_state *c
/* Program all planes within new context*/
for (i = 0; i < context->stream_count; i++) {
const struct dc_link *link = context->streams[i]->link;
- struct dc_stream_status *status;
if (!context->streams[i]->mode_changed)
continue;
@@ -1166,9 +1165,6 @@ static enum dc_status dc_commit_state_no_check(struct dc *dc, struct dc_state *c
}
}
- status = dc_stream_get_status_from_state(context, context->streams[i]);
- context->streams[i]->out.otg_offset = status->primary_otg_inst;
-
CONN_MSG_MODE(link, "{%dx%d, %dx%d@%dKhz}",
context->streams[i]->timing.h_addressable,
context->streams[i]->timing.v_addressable,