]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd/display: update pipe selection policy to check head pipe
authorYihan Zhu <Yihan.Zhu@amd.com>
Wed, 30 Oct 2024 20:20:21 +0000 (16:20 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Nov 2024 14:38:19 +0000 (09:38 -0500)
commit8fef253c94a5312b9150b2ff8e633b331bac7e88
treed2a21bbb06b004f9b1fa193fdc6bbda33aa98946
parent6104112693011990a19d971c4c419de6c29adc54
drm/amd/display: update pipe selection policy to check head pipe

[Why]
No check on head pipe during the dml to dc hw mapping will allow illegal
pipe usage. This will result in a wrong pipe topology to cause mpcc tree
totally mess up then cause a display hang.

[How]
Avoid to use the pipe is head in all check and avoid ODM slice during
preferred pipe check.

Cc: stable@vger.kernel.org
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Yihan Zhu <Yihan.Zhu@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@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/dml2/dml2_dc_resource_mgmt.c