]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Check CRTC compatibility in setplane
authorMatt Roper <matthew.d.roper@intel.com>
Thu, 29 May 2014 15:06:51 +0000 (08:06 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 5 Jun 2014 06:52:43 +0000 (08:52 +0200)
commite5e88ab672c736b045676d5bbb4458432d763147
tree15a2c7cdcf7f131b5d5fd59a23c868671b0f6f50
parent92a8c74e31060f9a429bbb154f3d98dcdd30d8bb
drm: Check CRTC compatibility in setplane

The DRM core setplane code should check that the plane is usable on the
specified CRTC before calling into the driver.

Prior to this patch, a plane's possible_crtcs field was purely
informational for userspace and was never actually verified at the
kernel level (aside from the primary plane helper).

Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Chon Ming Lee <chon.ming.lee@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Acked-by: Dave Airlie <airlied@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_plane_helper.c