All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stylon Wang <stylon.wang@amd.com>
To: <amd-gfx@lists.freedesktop.org>
Cc: Stylon Wang <stylon.wang@amd.com>,
	Eryk.Brol@amd.com, Sunpeng.Li@amd.com, Harry.Wentland@amd.com,
	Qingqing.Zhuo@amd.com, Rodrigo.Siqueira@amd.com,
	Wenjing Liu <wenjing.liu@amd.com>,
	Anson.Jacob@amd.com, Aurabindo.Pillai@amd.com,
	Bhawanpreet.Lakha@amd.com,
	Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>,
	bindu.r@amd.com
Subject: [PATCH 03/30] drm/amd/display: delay 100ms before restart after failing to read CP_IRQ
Date: Tue, 8 Jun 2021 00:46:47 +0800	[thread overview]
Message-ID: <20210607164714.311325-4-stylon.wang@amd.com> (raw)
In-Reply-To: <20210607164714.311325-1-stylon.wang@amd.com>

From: Wenjing Liu <wenjing.liu@amd.com>

[why]
Some DPRX will issue CP_IRQ when user disconnects a display
that has been authenticated.
Since display is being disconnecting dpcd read will fail.
This will cause us to attempt HDCP retry on disconnection.
We are adding a 100ms delay before retry.
So we will only start retry if within 100ms there is no disconnection call
to HDCP module.

Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Stylon Wang <stylon.wang@amd.com>
---
 drivers/gpu/drm/amd/display/modules/hdcp/hdcp2_transition.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/modules/hdcp/hdcp2_transition.c b/drivers/gpu/drm/amd/display/modules/hdcp/hdcp2_transition.c
index b0306ed6d6b4..70cb230d8f56 100644
--- a/drivers/gpu/drm/amd/display/modules/hdcp/hdcp2_transition.c
+++ b/drivers/gpu/drm/amd/display/modules/hdcp/hdcp2_transition.c
@@ -564,7 +564,7 @@ enum mod_hdcp_status mod_hdcp_hdcp2_dp_transition(struct mod_hdcp *hdcp,
 	case D2_A5_AUTHENTICATED:
 		if (input->rxstatus_read == FAIL ||
 				input->reauth_request_check == FAIL) {
-			fail_and_restart_in_ms(0, &status, output);
+			fail_and_restart_in_ms(100, &status, output);
 			break;
 		} else if (input->link_integrity_check_dp == FAIL) {
 			if (hdcp->connection.hdcp2_retry_count >= 1)
-- 
2.25.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2021-06-07 16:48 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-07 16:46 [PATCH 00/30] DC Patches June, 7, 2021 Stylon Wang
2021-06-07 16:46 ` [PATCH 01/30] drm/amd/display: Trigger full update after DCC on/off Stylon Wang
2021-06-07 16:46 ` [PATCH 02/30] drm/amd/display: Enabling PSR support for multiple panels Stylon Wang
2021-06-07 16:46 ` Stylon Wang [this message]
2021-06-07 16:46 ` [PATCH 04/30] drm/amd/display: Fix DCN 3.01 DSCCLK validation Stylon Wang
2021-06-07 16:46 ` [PATCH 05/30] drm/amd/display: Control power gating by driver Stylon Wang
2021-06-07 16:46 ` [PATCH 06/30] drm/amd/display: Refactor visual confirm Stylon Wang
2021-06-07 16:46 ` [PATCH 07/30] drm/amd/display: add visual confirm colors to differentiate layer_index > 0 Stylon Wang
2021-06-07 16:46 ` [PATCH 08/30] drm/amd/display: Revert "Fix clock table filling logic" Stylon Wang
2021-06-07 16:46 ` [PATCH 09/30] drm/amd/display: Expand DP module equalization API Stylon Wang
2021-06-07 16:46 ` [PATCH 10/30] drm/amd/display: Support mappable encoders when transmitting training patterns Stylon Wang
2021-06-07 16:46 ` [PATCH 11/30] drm/amd/display: Update scaling settings on modeset Stylon Wang
2021-06-07 16:46 ` [PATCH 12/30] drm/amd/display: Remove unused definition of DMUB SET_CONFIG Stylon Wang
2021-06-07 16:46 ` [PATCH 13/30] drm/amd/display: Return last used DRR VTOTAL from DC Stylon Wang
2021-06-07 16:46 ` [PATCH 14/30] drm/amd/display: Enable PSR Residency for multiple panels Stylon Wang
2021-06-07 16:46 ` [PATCH 15/30] drm/amd/display: Release MST resources on switch from MST to SST Stylon Wang
2021-06-07 16:47 ` [PATCH 16/30] drm/amd/display: Change default policy for MPO with multidisplay Stylon Wang
2021-06-07 16:47 ` [PATCH 17/30] drm/amd/display: [FW Promotion] Release 0.0.68 Stylon Wang
2021-06-07 16:47 ` [PATCH 18/30] drm/amd/display: 3.2.138 Stylon Wang
2021-06-07 16:47 ` [PATCH 19/30] drm/amd/display: Add Interface to set FIFO ERRDET SW Override Stylon Wang
2021-06-07 16:47 ` [PATCH 20/30] drm/amd/display: Add interface for ADD & DROP PIXEL Registers Stylon Wang
2021-06-07 16:47 ` [PATCH 21/30] drm/amd/display: Set DISPCLK_MAX_ERRDET_CYCLES to 7 Stylon Wang
2021-06-07 16:47 ` [PATCH 22/30] drm/amd/display: Fix off-by-one error in DML Stylon Wang
2021-06-07 16:47 ` [PATCH 23/30] drm/amd/display: Fix crash during MPO + ODM combine mode recalculation Stylon Wang
2021-06-07 16:47 ` [PATCH 24/30] drm/amd/display: Add debugfs entry for dsc passthrough Stylon Wang
2021-06-07 16:47 ` [PATCH 25/30] drm/amd/display: Revert "Disconnect non-DP with no EDID" Stylon Wang
2021-06-07 16:47 ` [PATCH 26/30] drm/amd/display: Updates for ODM Transition Test Stylon Wang
2021-06-07 16:47 ` [PATCH 27/30] drm/amd/display: force CP to DESIRED when removing display Stylon Wang
2021-06-07 16:47 ` [PATCH 28/30] drm/amd/display: Add swizzle visual confirm mode Stylon Wang
2021-06-07 16:47 ` [PATCH 29/30] drm/amd/display: [FW Promotion] Release 0.0.69 Stylon Wang
2021-06-07 16:47 ` [PATCH 30/30] drm/amd/display: 3.2.139 Stylon Wang
2021-06-08 14:00 ` [PATCH 00/30] DC Patches June, 7, 2021 Wheeler, Daniel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210607164714.311325-4-stylon.wang@amd.com \
    --to=stylon.wang@amd.com \
    --cc=Anson.Jacob@amd.com \
    --cc=Aurabindo.Pillai@amd.com \
    --cc=Bhawanpreet.Lakha@amd.com \
    --cc=Eryk.Brol@amd.com \
    --cc=Harry.Wentland@amd.com \
    --cc=Nicholas.Kazlauskas@amd.com \
    --cc=Qingqing.Zhuo@amd.com \
    --cc=Rodrigo.Siqueira@amd.com \
    --cc=Sunpeng.Li@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=bindu.r@amd.com \
    --cc=wenjing.liu@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.