drm/amd/display: Partition DPCD address space and break up transactions
authorWesley Chalmers <Wesley.Chalmers@amd.com>
Thu, 8 Apr 2021 19:51:11 +0000 (15:51 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Jun 2021 21:25:41 +0000 (17:25 -0400)
commit9cf9498f668d4c78616ebd2fe2e5f3850b189c5b
tree07cf48ff664841732dd03c86c3cf95958cf3375e
parent95ad72f4ade3db645279dae3bf4ed456ac806a1c
drm/amd/display: Partition DPCD address space and break up transactions

[WHY]
SCR for DP 2.0 spec says that multiple LTTPRs must not be accessed in a
single AUX transaction.
There may be other places in future where breaking up AUX accesses is
necessary.

[HOW]
Partition the entire DPCD address space into blocks. When an incoming AUX
request spans multiple blocks, break up the request into multiple requests.

Signed-off-by: Wesley Chalmers <Wesley.Chalmers@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dpcd.c
include/drm/drm_dp_helper.h