[igt-dev] [PATCH i-g-t] tests/kms_dp_aux_dev: Handle MST NAK reply on disconnected MST connectors

Bhanuprakash Modem bhanuprakash.modem at intel.com
Thu Mar 10 15:55:19 UTC 2022


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 <imre.deak at intel.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
---
 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



More information about the igt-dev mailing list