]> www.infradead.org Git - users/willy/xarray.git/commit
drm/amd/display: use correct phantom pipe when populating subvp pipe info
authorWenjing Liu <wenjing.liu@amd.com>
Thu, 18 Jan 2024 20:30:01 +0000 (15:30 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 29 Jan 2024 20:45:53 +0000 (15:45 -0500)
commitc50c9c872e76d6b171b5fb77341f337c78349bca
treea0cf6bfdef3012e08657bccf06c6c1c4ad70cfac
parent607e1b0cf480cb8dbd65b372397871d7389942b5
drm/amd/display: use correct phantom pipe when populating subvp pipe info

[why]
In current code, we recognize a pipe as a phantom pipe if it references
the same phantom stream. However it can also a phantom split pipe.
If the phantom split pipe has a smaller pipe index than the phantom pipe
we will mistakenly use the phantom split pipe as the phantom pipe. This
causes an incorrect subvp configuration where the first half of the
screen is flashing solid white image.

[how]
Add additional check that the pipe needs to be an OTG master pipe.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@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/dc_dmub_srv.c