Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5161A10E955 for ; Thu, 10 Mar 2022 15:56:38 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Date: Thu, 10 Mar 2022 21:25:19 +0530 Message-Id: <20220310155519.341863-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t] tests/kms_dp_aux_dev: Handle MST NAK reply on disconnected MST connectors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: If the given MST connector is disconnected the DPCD read out request will throw an MST NAK reply error. This patch will handle this in the test that skips to read the DPCD of disconnected MST connectors. <3> [793.017171] i915 0000:03:00.0: [drm] *ERROR* mstb 00000000e5e57ca0 port 1: DPCD read on addr 0x0 for 16 bytes NAKed Cc: Imre Deak Signed-off-by: Bhanuprakash Modem --- tests/kms_dp_aux_dev.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/kms_dp_aux_dev.c b/tests/kms_dp_aux_dev.c index 39fc2b9233..d3249fa3d6 100644 --- a/tests/kms_dp_aux_dev.c +++ b/tests/kms_dp_aux_dev.c @@ -53,6 +53,12 @@ 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)) { + close(dir_fd); + return false; + } + dir = fdopendir(dir_fd); igt_assert(dir); -- 2.35.1