[RFC][PATCH 04/11] drm: Split the display info into static and dynamic parts

2018-02-27 Thread Ville Syrjala
From: Ville Syrjälä Currently we have a mix of static and dynamic information stored in the display info structure. That makes it rather difficult to repopulate the dynamic parts when a new EDID appears. Let's make life easier by splitting the structure up into

[RFC][PATCH 03/11] drm/shmobile: Don't fill display_info.{width,height}_mm at init time

2018-02-27 Thread Ville Syrjala
From: Ville Syrjälä shmobile is already populating display_info.width_mm and display_info.height_mm from the .get_modes() hook which is what we want. No need to populate it from the init path as well. Cc: Keith Packard Cc: Daniel Vetter

[RFC][PATCH 00/11] drm: Try to make display info less nuts

2018-02-27 Thread Ville Syrjala
From: Ville Syrjälä Currently the display info is cleared/populated in a very ad-hoc manner. I'd like to make it more robust by making sure it gets cleared by the core forcing drivers to repopulate in .fill_modes(). The bus_formats stuff looks very much ad-hoc all

[PATCH 5/5] drm: Don't pass clip to drm_atomic_helper_check_plane_state()

2018-01-23 Thread Ville Syrjala
From: Ville Syrjälä Move the plane clip rectangle handling into drm_atomic_helper_check_plane_state(). Drivers no longer have to worry about such mundane details. v2: Convert armada, rcar, and sun4i as well Cc: Liviu Dudau Cc: Brian Starkey