Return-Path: Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2083.outbound.protection.outlook.com [40.107.220.83]) by gabe.freedesktop.org (Postfix) with ESMTPS id B432610E28D for ; Wed, 26 Oct 2022 02:17:01 +0000 (UTC) From: Alex Hung To: Date: Tue, 25 Oct 2022 20:16:15 -0600 Message-ID: <20221026021615.2445018-1-alex.hung@amd.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Subject: [igt-dev] [PATCH] tests/kms_dp_aux_dev: Check DP connection only before tests List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: markyacoub@google.com Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Without DP port connected, kernel reports "Too many retries" that indicates no sink to respond. This is the same across GPUs. amdgpu ... DM aux hw bus 2: Too many retries, giving up. First error: -5 i915 ... AUX C/DDI C/PHY C: Too many retries, giving up. First error: -110 In addition, the test can result time out such as below: /dev/drm_dp_aux0: Connection timed out /dev/drm_dp_aux1: Connection timed out As a result, checking DP connection alone should be sufficient. Signed-off-by: Alex Hung --- tests/kms_dp_aux_dev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/kms_dp_aux_dev.c b/tests/kms_dp_aux_dev.c index ed9dd510..7fce74a4 100644 --- a/tests/kms_dp_aux_dev.c +++ b/tests/kms_dp_aux_dev.c @@ -53,8 +53,7 @@ static bool test(int drm_fd, uint32_t connector_id) drmModeFreeConnector(connector); igt_assert(dir_fd >= 0); - if (connector->connection != DRM_MODE_CONNECTED && - is_mst_connector(drm_fd, connector_id)) { + if (connector->connection != DRM_MODE_CONNECTED) { close(dir_fd); return false; } -- 2.34.1