[igt-dev] [PATCH i-g-t 2/2] tests/kms_dp_aux_dev: Treat ENXIO as a sink detect error
Imre Deak
imre.deak at intel.com
Thu Mar 23 16:18:08 UTC 2023
The Nouveau/gm200 and the i915 drivers' AUX handlers return -ENXIO if
there was no sink detected. The other drivers don't use this error code
in the same handler, so assume this error always means a sink detect
error.
Signed-off-by: Imre Deak <imre.deak at intel.com>
---
tests/kms_dp_aux_dev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/kms_dp_aux_dev.c b/tests/kms_dp_aux_dev.c
index 86e111bf2..69edc1585 100644
--- a/tests/kms_dp_aux_dev.c
+++ b/tests/kms_dp_aux_dev.c
@@ -46,6 +46,7 @@ static bool sink_detect_error(int drm_fd, uint32_t connector_id, int error_code)
{
switch (error_code) {
case ETIMEDOUT:
+ case ENXIO:
return true;
case EIO:
return is_mst_connector(drm_fd, connector_id) ||
--
2.37.1
More information about the igt-dev
mailing list