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

Modem, Bhanuprakash bhanuprakash.modem at intel.com
Fri Oct 28 04:09:50 UTC 2022


On Fri-28-10-2022 08:29 am, Alex Hung wrote:
> 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))));

Reviewed-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>

>   
>   		close(fd);
>   



More information about the igt-dev mailing list