[igt-dev] [PATCH i-g-t 1/3] test/kms_chamelium: Start with disabling modeset

Kunal Joshi kunal1.joshi at intel.com
Tue Apr 14 01:30:59 UTC 2020


On 2020-04-14 at 11:14:45 +0300, Arkadiusz Hiler wrote:
> Doing disabling modeset from igt_display_require() is quite tricky, as
> there are some tests that depend on the leftover mode set by fbcon in
> order to work + PSR debugfs checks seem to behave a bit weird.
> 
> While those issues are being worked on let's do a disabling modeset
> between igt_display_require() and chamelium_init() so port
> auto-discovery works reliably on all configurations.
> 
> Issue: https://gitlab.freedesktop.org/drm/intel/issues/323
> Cc: Kunal Joshi <kunal1.joshi at intel.com>
> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
> ---
>  tests/kms_chamelium.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/tests/kms_chamelium.c b/tests/kms_chamelium.c
> index e5cfa633..b7207ef9 100644
> --- a/tests/kms_chamelium.c
> +++ b/tests/kms_chamelium.c
> @@ -2520,6 +2520,12 @@ igt_main
>  		igt_display_require(&data.display, data.drm_fd);
>  		igt_require(data.display.is_atomic);
>  
> +		/*
> +		 * XXX: disabling modeset, can be removed when
> +		 * igt_display_require will start doing this for us
> +		 */
> +		igt_display_commit2(&data.display, COMMIT_ATOMIC);
> +
>  		/* we need to initalize chamelium after igt_display_require */
>  		data.chamelium = chamelium_init(data.drm_fd);
>  		igt_require(data.chamelium);
> -- 
> 2.24.1
> 
Reviewed-by: Kunal Joshi <kunal1.joshi at intel.com>


More information about the igt-dev mailing list