drm/amd/display: Fetch the EDID from _DDC if available for eDP
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 27 Sep 2024 23:06:00 +0000 (18:06 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Oct 2024 18:32:08 +0000 (14:32 -0400)
commitc6a837088bedef74e38f47eb65247dea1d835634
tree0c8ccb7b95b4e4086bb4407f4bd03ac0afa8b6fd
parent0159f88a99c9f5722dbe52ac42faf3446f371dea
drm/amd/display: Fetch the EDID from _DDC if available for eDP

Some manufacturers have intentionally put an EDID that differs from
the EDID on the internal panel on laptops.

Attempt to fetch this EDID if it exists and prefer it over the EDID
that is provided by the panel. If a user prefers to use the EDID from
the panel, offer a DC debugging parameter that would disable this.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
drivers/gpu/drm/amd/include/amd_shared.h