Skip to content

Commit 923bbfe

Browse files
Paul Hsiehalexdeucher
authored andcommitted
drm/amd/display: Clear dpcd_sink_ext_caps if not set
[WHY] Some eDP panels' ext caps don't set initial values and the value of dpcd_addr (0x317) is random. It means that sometimes the eDP can be OLED, miniLED and etc, and cause incorrect backlight control interface. [HOW] Add remove_sink_ext_caps to remove sink ext caps (HDR, OLED and etc) Cc: Mario Limonciello <mario.limonciello@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org Reviewed-by: Anthony Koo <anthony.koo@amd.com> Acked-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Paul Hsieh <paul.hsieh@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 435f5b3 commit 923bbfe

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/gpu/drm/amd/display/dc/dc_types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ struct dc_panel_patch {
177177
unsigned int disable_fams;
178178
unsigned int skip_avmute;
179179
unsigned int mst_start_top_delay;
180+
unsigned int remove_sink_ext_caps;
180181
};
181182

182183
struct dc_edid_caps {

drivers/gpu/drm/amd/display/dc/link/link_detection.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,6 +1088,9 @@ static bool detect_link_and_local_sink(struct dc_link *link,
10881088
if (sink->edid_caps.panel_patch.skip_scdc_overwrite)
10891089
link->ctx->dc->debug.hdmi20_disable = true;
10901090

1091+
if (sink->edid_caps.panel_patch.remove_sink_ext_caps)
1092+
link->dpcd_sink_ext_caps.raw = 0;
1093+
10911094
if (dc_is_hdmi_signal(link->connector_signal))
10921095
read_scdc_caps(link->ddc, link->local_sink);
10931096

0 commit comments

Comments
 (0)