drm/amd/display: Poll pending down rep before clear payload allocation table
authorMartin Tsai <martin.tsai@amd.com>
Thu, 10 Jan 2019 05:05:15 +0000 (13:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Jan 2019 16:43:46 +0000 (11:43 -0500)
commit22051b636e347888bfd2efbbc9bcb8918d16e8c5
treef19d4792ed754bf2545d46a2c48ce4b40b872f18
parentcbce5f0a9f306f890d257a92fcca6cb341af76ed
drm/amd/display: Poll pending down rep before clear payload allocation table

[Why]
On current design, driver cannot handle the interrupt for
down reply when link training is processing. The DOWN REQ
send before link training will keep in the pending DOWN REP
state in the queue.
It makes the next DOWN REQ be queued until time out.

[How]
To add a polling sequence before clear payload allocation table
to make sure the pending DOWN REP can be handled.

Signed-off-by: Martin Tsai <martin.tsai@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dm_helpers.h