[igt-dev] [PATCH] tests/kms_dp_aux_dev: Skip failure on EIO for amdgpu

Alex Hung alex.hung at amd.com
Fri Oct 28 02:59:15 UTC 2022


amdgpu returns -EIO (-5) when DP is not connected instead of -ETIMEOUT.

Signed-off-by: Alex Hung <alex.hung at amd.com>
---
 tests/kms_dp_aux_dev.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/kms_dp_aux_dev.c b/tests/kms_dp_aux_dev.c
index ed9dd510..850ec8e2 100644
--- a/tests/kms_dp_aux_dev.c
+++ b/tests/kms_dp_aux_dev.c
@@ -86,7 +86,8 @@ static bool test(int drm_fd, uint32_t connector_id)
 
 		igt_assert(ret == sizeof(buf) ||
 			   errno == ETIMEDOUT ||
-			   (errno == EIO && is_mst_connector(drm_fd, connector_id)));
+			   (errno == EIO && (is_mst_connector(drm_fd, connector_id) ||
+			    is_amdgpu_device(drm_fd))));
 
 		close(fd);
 
-- 
2.34.1



More information about the igt-dev mailing list