Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/display: Don't update drm connector when read local EDID

[Why]
Currently, when we're tentatively detecting link configuration under mst
case, we will wrongly notify a none existing stream sink to drm layer.

It's due to we'll call amdgpu_dm_update_connector_after_detect() within
dm_helpers_read_local_edid() to update connector when we're still under
tentative detection procedure.

[How]
dm_helpers_read_local_edid() was designed to do "read" only. Don't
update drm connector status when we're still under detection process.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Wayne Lin and committed by
Alex Deucher
09ece5ac 1f6c40d5

-8
-8
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
··· 648 648 /* We don't need the original edid anymore */ 649 649 kfree(edid); 650 650 651 - /* connector->display_info is parsed from EDID and saved 652 - * into drm_connector->display_info 653 - * 654 - * drm_connector->display_info will be used by amdgpu_dm funcs, 655 - * like fill_stream_properties_from_drm_display_mode 656 - */ 657 - amdgpu_dm_update_connector_after_detect(aconnector); 658 - 659 651 edid_status = dm_helpers_parse_edid_caps( 660 652 link, 661 653 &sink->dc_edid,