From patchwork Thu Sep 26 07:51:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hermes Wu X-Patchwork-Id: 13813005 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 37590CCFA13 for ; Thu, 26 Sep 2024 07:51:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B0B9310EAEB; Thu, 26 Sep 2024 07:51:55 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=ite.com.tw header.i=@ite.com.tw header.b="asfD+vFa"; dkim-atps=neutral Received: from ironport.ite.com.tw (60-251-196-230.hinet-ip.hinet.net [60.251.196.230]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1FFE110EAEB for ; Thu, 26 Sep 2024 07:51:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ite.com.tw; s=dkim; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=zrwVDjPIwKWx8PST3o8tOiny0kwm1JgvIxdDZmxFFbU=; b=asfD+vFaMJisSEf8FYPuLc14WC1njwDz1FHA3Xw4Fq6Tg+MpwnFVCQzz iirPkrrqRU0fX1ZuVly35oGfz6ff/onrau+v1LYoo2/OmzNrElgNS2oSY sy46WcvWhNmiIxAlWU8Zg90heRtzX0Kebx6AWwjSjuLk+RQoZLkHan/B2 WqtzD+cmpCPLig7QGDNtoU34WAiAa06/9qfstGkuXR7XA+0Zx60K5HpfG /XotfC8AwtJ7CIheEczLrgUg4r1W2SKpEqM+/eQM1smmRoEJeZa5YHS1E rAaTCLDWodO9NQCeeV+Na2siWwPqVzI44I59Teh6l/w+iSzoQykTflh5n Q==; X-CSE-ConnectionGUID: EALjjDOoTxC+7L80wk1IbQ== X-CSE-MsgGUID: n2NBaRynTN61+suJEW9SEA== Received: from unknown (HELO mse.ite.com.tw) ([192.168.35.30]) by ironport.ite.com.tw with ESMTP; 26 Sep 2024 15:51:52 +0800 Received: from tpemail1.internal.ite.com.tw (TPEMAIL1.internal.ite.com.tw [192.168.15.58]) by mse.ite.com.tw with ESMTP id 48Q7pnLM046831; Thu, 26 Sep 2024 15:51:49 +0800 (GMT-8) (envelope-from Hermes.Wu@ite.com.tw) Received: from LAPTOP-C4GM1L3U.localdomain (192.168.82.6) by TPEMAIL1.internal.ite.com.tw (192.168.15.58) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 26 Sep 2024 15:51:49 +0800 From: Hermes Wu To: hermes wu CC: Kenneth Hung , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , AngeloGioacchino Del Regno , Hermes Wu , Allen Chen , "open list:DRM DRIVERS" , open list Subject: [PATCH v4 10/11] drm/bridge: it6505: fix HDCP CTS ksv wait timer Date: Thu, 26 Sep 2024 15:51:33 +0800 Message-ID: <20240926075134.22394-1-Hermes.Wu@ite.com.tw> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [192.168.82.6] X-ClientProxiedBy: TPEMAIL1.internal.ite.com.tw (192.168.15.58) To TPEMAIL1.internal.ite.com.tw (192.168.15.58) X-TM-SNTS-SMTP: BCAD1B799F795BD18B91676EA5CCCD6438D6A0284857668DAB9A24287FB284C92002:8 X-MAIL: mse.ite.com.tw 48Q7pnLM046831 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Hermes Wu When running the HDCP CTS test on UNIGRAF DPR-100. HDCP must disabled after waiting KSV for 5s. Consider system ksv work schedules. The original timer has a chance to expire. Fixes: b5c84a9edcd4 ("drm/bridge: add it6505 driver") Signed-off-by: Hermes Wu --- drivers/gpu/drm/bridge/ite-it6505.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/ite-it6505.c b/drivers/gpu/drm/bridge/ite-it6505.c index e75bc1575aa8..22d9bec3faea 100644 --- a/drivers/gpu/drm/bridge/ite-it6505.c +++ b/drivers/gpu/drm/bridge/ite-it6505.c @@ -2093,7 +2093,8 @@ static void it6505_hdcp_wait_ksv_list(struct work_struct *work) struct it6505 *it6505 = container_of(work, struct it6505, hdcp_wait_ksv_list); struct device *dev = it6505->dev; - unsigned int timeout = 5000; + /* 1B-04 fail, wait to long to Stop encription(5s->3s). */ + unsigned int timeout = 3000; u8 bstatus = 0; bool ksv_list_check;