[Intel-gfx] [PATCH igt] igt/kms_vblank: To set a mode requires DRM_MASTER

Pandiyan, Dhinakaran dhinakaran.pandiyan at intel.com
Mon Dec 11 18:55:31 UTC 2017


On Mon, 2017-12-11 at 09:06 +0000, Chris Wilson wrote:
> Fixes: ba86514759c6 ("kms_vblank: Switch from using crtc0 statically to explicitly setting mode.")
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104208

Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan at intel.com>

What do you think of verifying the driver was opened as master in
igt_display_init()?



> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> ---
>  tests/kms_vblank.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/kms_vblank.c b/tests/kms_vblank.c
> index 97ccacc4a..342e4ef23 100644
> --- a/tests/kms_vblank.c
> +++ b/tests/kms_vblank.c
> @@ -343,7 +343,7 @@ igt_main
>  	igt_skip_on_simulation();
>  
>  	igt_fixture {
> -		fd = drm_open_driver(DRIVER_ANY);
> +		fd = drm_open_driver_master(DRIVER_ANY);
>  		kmstest_set_vt_graphics_mode();
>  		igt_display_init(&data.display, fd);
>  		igt_display_require_output(&data.display);


More information about the Intel-gfx mailing list