]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit63ecbf21ca5d14043a9f3333131b4b5117815ad3
treef19d4792ed754bf2545d46a2c48ce4b40b872f18
parent18efe91822fb3e80529c571363bea983505e664d
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