drm: Check CRTC compatibility in setplane
authorMatt Roper <[email protected]>
Thu, 29 May 2014 15:06:51 +0000 (08:06 -0700)
committerDaniel Vetter <[email protected]>
Thu, 5 Jun 2014 06:52:43 +0000 (08:52 +0200)
commit7f994f3fc4f44365a953dbcac55131b7160750ea
tree15a2c7cdcf7f131b5d5fd59a23c868671b0f6f50
parent27da3bdfcf7f5233cdfe4563f53edf1ecab7cea0
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: [email protected]
Reviewed-by: Chon Ming Lee <[email protected]>
Signed-off-by: Matt Roper <[email protected]>
Acked-by: Dave Airlie <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_plane_helper.c