Skip to content

Commit 3d71a87

Browse files
Ivan Lipskialexdeucher
authored andcommitted
drm/amd/display: Add monitor patch for specific eDP
[WHY] Some eDP panels's ext caps don't write initial value cause the value of dpcd_addr(0x317) is random. It means that sometimes the eDP will clarify it is OLED, miniLED...etc cause the backlight control interface is incorrect. [HOW] Add a new panel patch to remove sink ext caps(HDR,OLED...etc) Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Reviewed-by: Sun peng Li <sunpeng.li@amd.com> Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com> Signed-off-by: Ivan Lipski <ivlipski@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent fec05ad commit 3d71a87

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ static void apply_edid_quirks(struct edid *edid, struct dc_edid_caps *edid_caps)
6363
DRM_DEBUG_DRIVER("Disabling FAMS on monitor with panel id %X\n", panel_id);
6464
edid_caps->panel_patch.disable_fams = true;
6565
break;
66+
/* Workaround for some monitors that do not clear DPCD 0x317 if FreeSync is unsupported */
67+
case drm_edid_encode_panel_id('A', 'U', 'O', 0xA7AB):
68+
case drm_edid_encode_panel_id('A', 'U', 'O', 0xE69B):
69+
DRM_DEBUG_DRIVER("Clearing DPCD 0x317 on monitor with panel id %X\n", panel_id);
70+
edid_caps->panel_patch.remove_sink_ext_caps = true;
71+
break;
6672
default:
6773
return;
6874
}

0 commit comments

Comments
 (0)