OSDN Git Service

drm/amd/display: Prevent invalid pipe connections
authorEthan Bitnun <ethan.bitnun@amd.com>
Wed, 12 Jul 2023 19:44:00 +0000 (15:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jul 2023 17:39:41 +0000 (13:39 -0400)
commit75bd42fd2e8ef81e98418ffd06362169cbeebc06
treefd48b2eade529c175bc39b4e6115d8c6dc7af964
parent6cb209ed68e45c8e4b71d97a037ac6b7dbce9b50
drm/amd/display: Prevent invalid pipe connections

[Description]
 - Prevent ODM pipe connections between pipes that are not part
   of the same plane when adding a plane to context
 - Re-attach child pipes of ODM slice about to be disconnected
   to prevent any lost pipes with invalid tops/bottoms
 - We cannot split if head_pipe is not in ODM. Preventing this
   avoids creating an invalid context with an invalid pipe.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Ethan Bitnun <ethan.bitnun@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_resource.c