[igt-dev] [PATCH i-g-t] tests/kms_dp_aux_dev: Handle MST NAK reply on disconnected MST connectors

Sharma, Swati2 swati2.sharma at intel.com
Thu May 19 07:37:36 UTC 2022


Overall patch LGTM.

Please add fixes tag, with that fixed.

Reviewed-by:
Swati Sharma <swati2.sharma at intel.com>

On 10-Mar-22 9:25 PM, Bhanuprakash Modem wrote:
> 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 at intel.com>
> Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
> ---
>   tests/kms_dp_aux_dev.c | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/tests/kms_dp_aux_dev.c b/tests/kms_dp_aux_dev.c
> index 39fc2b9233..d3249fa3d6 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);
>   

-- 
~Swati Sharma


More information about the igt-dev mailing list