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>
Thu, 2 Feb 2023 03:45:51 +0000 (22:45 -0500)
commit6fc547a5a2ef5ce05b16924106663ab92f8f87a7
tree3d849f8f3a089ed012de4a697104f8cc0967b976
parentac7170082c0e140663f0853d3de733a5341ce7b0
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