Re: [PATCH 3/3] drm: require a non_NULL drm_crtc.primary

2020-12-11 Thread Daniel Vetter
On Thu, Dec 10, 2020 at 03:50:35PM +, Simon Ser wrote: > If a CRTC is missing a legacy primary plane pointer, a lot of things > will be broken for user-space: fbdev stops working and the entire legacy > uAPI stops working. > > Require all drivers to populate drm_crtc.primary to prevent these >

[PATCH 3/3] drm: require a non_NULL drm_crtc.primary

2020-12-10 Thread Simon Ser
If a CRTC is missing a legacy primary plane pointer, a lot of things will be broken for user-space: fbdev stops working and the entire legacy uAPI stops working. Require all drivers to populate drm_crtc.primary to prevent these issues. Warn if it's NULL. Signed-off-by: Simon Ser Cc: Daniel Vette