drm/amd/display: Filter Invalid 420 Modes for HDMI TMDS
authorFangzhi Zuo <Jerry.Zuo@amd.com>
Thu, 20 Oct 2022 20:06:26 +0000 (16:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Oct 2022 18:46:29 +0000 (14:46 -0400)
commit5468c36d628524effbb89a9503eb1a2318804759
tree62991a040a7a3958349214f034af32ba6c06de01
parente366f36958f60c431a7430c8c421c9db0ec6738d
drm/amd/display: Filter Invalid 420 Modes for HDMI TMDS

[Why]
Invalidate unsupported 420 modes on HDMI TMDS. HDMI TMDS does not
support ODM. Any modes that are horizontally wider than 4096, cannot be
supported via TMDS. So they must be filtered out and should not pass
validation.

[How]
Create fake plane for the new stream, and validate global state by going
through dml validation routine.

Tested-by: Mark Broadworth <mark.broadworth@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Fangzhi Zuo <Jerry.Zuo@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c