[igt-dev] [PATCH i-g-t 2/2] tests/kms_dp_aux_dev: Treat ENXIO as a sink detect error

Sripada, Radhakrishna radhakrishna.sripada at intel.com
Thu Mar 23 23:11:06 UTC 2023



> -----Original Message-----
> From: igt-dev <igt-dev-bounces at lists.freedesktop.org> On Behalf Of Imre Deak
> Sent: Thursday, March 23, 2023 9:18 AM
> To: igt-dev at lists.freedesktop.org
> Subject: [igt-dev] [PATCH i-g-t 2/2] tests/kms_dp_aux_dev: Treat ENXIO as a
> sink detect error
> 
> 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.
> 
Reviewed-by: Radhakrishna Sripada <radhakrishna.sripada at intel.com>

> 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