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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 31 Jan 2023 19:04:39 +0000 (14:04 -0500)
commit44900af0401fd2a2f76f5e65d42a252665bb7bdb
tree48d156a1268e1de7e85737e62066bde4c625616a
parent2f68c414981a10af42a90522ef831d59c0923ce1
drm/amd/display: Properly handle additional cases where DCN is not supported

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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c