Maxime Ripard <[email protected]> writes:

> The atomic state API is allowed to return -EDEADLK whenever the
> wound/wait mutex code detects a deadlock, and the caller is then
> expected to back off and restart the whole sequence.
>
> drm_test_check_hdmi_color_format() wasn't doing any of that, and
> reported a spurious failure when drm_atomic_set_crtc_for_connector()
> returned -EDEADLK, just like its 420-only counterpart fixed earlier.
> Since the ticket ordering depends on the execution, this could only be
> observed occasionally.
>
> The assertion also aborted before the locking context could be
> released, leaving connection_mutex held when the device was released,
> which drm_modeset_lock_fini() then reported through
> drm_mode_config_cleanup().
>
> Add the usual backoff and restart pattern.
>
> Fixes: f7235a4805a4 ("drm/tests: hdmi: Add tests for the color_format 
> property")
> Signed-off-by: Maxime Ripard <[email protected]>
> ---

Acked-by: Javier Martinez Canillas <[email protected]>

-- 
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat

Reply via email to