drm/amd/display: Properly handle additional cases where DCN is not supported
authorAlex Deucher <alexander.deucher@amd.com>
Wed, 25 Jan 2023 19:35:16 +0000 (14:35 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:57:02 +0000 (12:57 +0100)
commitf1cb549bcd0b0a5fe8a845632b95359992eb0fae
tree966e01cee971d8f04df5fa6e25ee6d20cef29f5b
parent5ca46a04a5c30c498f696b0403adf59b2c1cec61
drm/amd/display: Properly handle additional cases where DCN is not supported

[ Upstream commit 6fc547a5a2ef5ce05b16924106663ab92f8f87a7 ]

There could be boards with DCN listed in IP discovery, but no
display hardware actually wired up.  In this case the vbios
display table will not be populated.  Detect this case and
skip loading DM when we detect it.

v2: Mark DCN as harvested as well so other display checks
elsewhere in the driver are handled properly.

Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c