summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBhanuprakash Modem <bhanuprakash.modem@intel.com>2022-03-10 21:25:19 +0530
committerBhanuprakash Modem <bhanuprakash.modem@intel.com>2022-05-23 14:01:10 +0530
commit51663917b40d36086cc1c555ce4f67b22937694d (patch)
treed15332bed885ba5d0dd4fe428a4637631e9d5cbf
parent14ad49f5b6ed861eda93e9d6b6ed0f3c77d228d1 (diff)
tests/kms_dp_aux_dev: Handle MST NAK reply on disconnected MST connectors
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@intel.com> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com> Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
-rw-r--r--tests/kms_dp_aux_dev.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/kms_dp_aux_dev.c b/tests/kms_dp_aux_dev.c
index 39fc2b92..d3249fa3 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);