Skip to content

Commit

Permalink
drm/amd/display: Update MST edid property every time
Browse files Browse the repository at this point in the history
Extended fix to: "Don't read EDID in atomic_check"

Fix display property not observed in GUI display after hot plug.

Call drm_mode_connector_update_edid_property every time in
.get_modes hook, due to the fact that edid property is getting
removed from usermode ioctl DRM_IOCTL_MODE_GETCONNECTOR each time
in hot unplug.

Signed-off-by: Jerry (Fangzhi) Zuo <Jerry.Zuo@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
  • Loading branch information
Jerry (Fangzhi) Zuo authored and Alex Deucher committed Apr 25, 2018
1 parent c7b8de0 commit d973f85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,11 @@ static int dm_dp_mst_get_modes(struct drm_connector *connector)
if (aconnector->dc_sink)
amdgpu_dm_add_sink_to_freesync_module(
connector, edid);

drm_mode_connector_update_edid_property(
&aconnector->base, edid);
}

drm_mode_connector_update_edid_property(
&aconnector->base, aconnector->edid);

ret = drm_add_edid_modes(connector, aconnector->edid);

return ret;
Expand Down

0 comments on commit d973f85

Please sign in to comment.