]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vblank: Pass crtc_id to page_flip_ioctl.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 23 Nov 2017 10:37:37 +0000 (11:37 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 23 Nov 2017 12:04:19 +0000 (13:04 +0100)
commit5999bc23c79036d71c5663b4da9b4464f9bbed3f
treedebfbe772cbcc2622daea1880d08c056eef5d888
parentf4aa56197b71f9a531721920329fdf6fdc7e6e0a
drm/vblank: Pass crtc_id to page_flip_ioctl.

We added crtc_id to the atomic ioctl, but forgot to add it for vblank
and page flip events. Commit 71b1e46d2da6 ("drm: Reorganize
drm_pending_event to support future event types [v2]") added it to
the vblank event, but page flip event was still missing.

Correct this and add a test for making sure we always set crtc_id correctly.

Fixes: 71b1e46d2da6 ("drm: Reorganize drm_pending_event to support future event types [v2]")
Fixes: c7d0957e0f36 ("drm: Pass CRTC ID in userspace vblank events")
Cc: Daniel Stone <daniels@collabora.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Gustavo Padovan <gustavo@padovan.org>
Cc: Sean Paul <seanpaul@chromium.org>
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v4.12+
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> #irc
Testcase: igt/kms_vblank/crtc_id
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171123103737.47138-1-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/drm_plane.c