drm/amd/display: Optimize DP_SINK_STATUS_ESI range read on HPD
authorNikola Cornij <nikola.cornij@amd.com>
Wed, 9 May 2018 21:07:36 +0000 (17:07 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Jun 2018 17:20:25 +0000 (12:20 -0500)
commit3c8e4316a0bf6f65e8fbcf777abbc3b0e629e800
treeeadb1dfdac81204a94920d3da2d0fbd032c16a1d
parentbf58968647729ce320a7ef27077d60b7b2cdcd00
drm/amd/display: Optimize DP_SINK_STATUS_ESI range read on HPD

DP_SINK_STATUS_ESI range data is not continual, but rather than
getting it in two AUX reads, it's quicker to read more bytes in a
AUX read and then memcpy the required fields (it's only 8 more
bytes to read).

Signed-off-by: Nikola Cornij <nikola.cornij@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c