OSDN Git Service

drm/amd/display: Pass tg and hubp inst instead of pipe index for SubVP
authorAlvin Lee <Alvin.Lee2@amd.com>
Fri, 24 Feb 2023 15:39:17 +0000 (10:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Mar 2023 19:22:41 +0000 (14:22 -0500)
commit7da2bcda5899e92ef3442d5997154d8220245370
tree2d19b4f66c737fd848b62026c3ac166cab9f0cd6
parent97fa4dfa66fdd52ad3d0c9fadeaaa1e87605bac7
drm/amd/display: Pass tg and hubp inst instead of pipe index for SubVP

[Description]
- For pipe harvesting cases, the pipe index does not necessarily
  match up with the OTG instance, so pass index by OTG Instance instead
- For pipe split cases pass HUBP instance, since the split index is
  only used for HUBP programming
- Also check for OPP ID when accessing opp for pipe harvesting cases

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Alvin Lee <Alvin.Lee2@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c