[PATCH v3 2/2] drm/tests: Add test for drm_atomic_helper_commit_modeset_disables()

Dmitry Baryshkov dmitry.baryshkov at linaro.org
Wed Dec 11 22:50:35 UTC 2024


On Wed, Dec 11, 2024 at 01:18:43PM -0800, Jessica Zhang wrote:
> Add a subtest to check that modeset is called when the connector is
> changed
> 
> Signed-off-by: Jessica Zhang <quic_jesszhan at quicinc.com>
> ---
> Changes in v3:
> - Use BUILD_BUG_ON to check connectors and encoders array sizes (Dmitry)
> - Renamed functions to be more test-specific (Dmitry)
> - Added comment description for test (Dmitry)
> - Return get_modes_fixed() directly within the encoder get_modes
>   function (Dmitry)
> - Move drm_connector local variable declaration to top of function
>   (Dmitry)
> - Changed drm_test_modeset() to a more descriptive name
> ---
>  drivers/gpu/drm/tests/Makefile                |   1 +
>  drivers/gpu/drm/tests/drm_atomic_state_test.c | 244 ++++++++++++++++++++++++++
>  2 files changed, 245 insertions(+)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>

-- 
With best wishes
Dmitry


More information about the dri-devel mailing list