summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dm_helpers.h
diff options
context:
space:
mode:
authorMartin Tsai <martin.tsai@amd.com>2019-01-10 13:05:15 +0800
committerAlex Deucher <alexander.deucher@amd.com>2019-01-28 11:43:46 -0500
commit22051b636e347888bfd2efbbc9bcb8918d16e8c5 (patch)
treef19d4792ed754bf2545d46a2c48ce4b40b872f18 /drivers/gpu/drm/amd/display/dc/dm_helpers.h
parentcbce5f0a9f306f890d257a92fcca6cb341af76ed (diff)
downloadlinux-22051b636e347888bfd2efbbc9bcb8918d16e8c5.tar.gz
linux-22051b636e347888bfd2efbbc9bcb8918d16e8c5.tar.bz2
linux-22051b636e347888bfd2efbbc9bcb8918d16e8c5.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dm_helpers.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dm_helpers.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dm_helpers.h b/drivers/gpu/drm/amd/display/dc/dm_helpers.h
index 5d4527d03045..e81b24374bcb 100644
--- a/drivers/gpu/drm/amd/display/dc/dm_helpers.h
+++ b/drivers/gpu/drm/amd/display/dc/dm_helpers.h
@@ -58,6 +58,13 @@ bool dm_helpers_dp_mst_write_payload_allocation_table(
bool enable);
/*
+ * poll pending down reply before clear payload allocation table
+ */
+void dm_helpers_dp_mst_poll_pending_down_reply(
+ struct dc_context *ctx,
+ const struct dc_link *link);
+
+/*
* Clear payload allocation table before enable MST DP link.
*/
void dm_helpers_dp_mst_clear_payload_allocation_table(