From 803a86072a0b953916ba9077fda21a147283450a Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 17 Aug 2023 04:03:16 +0000 Subject: [PATCH] drm/amd/display: Update OTG instance in the commit stream From Rodrigo Siqueira 4fe91c51aa936779edcae5943b1e621047fe2c2d in linux-6.1.y/6.1.46 eef019eabc3cd0fddcffefbf67806a4d8cca29bb in mainline linux --- sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c b/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c index 753c07ab54e..5d0a44e2ef9 100644 --- a/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c +++ b/sys/dev/pci/drm/amd/display/dc/core/amdgpu_dc.c @@ -1995,6 +1995,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); -- 2.20.1