On Fri, Apr 06, 2018 at 09:10:43AM +0300, Tomi Valkeinen wrote:
> On 05/04/18 19:50, Daniel Vetter wrote:
> > On Thu, Apr 05, 2018 at 06:13:58PM +0300, Ville Syrjala wrote:
> >> From: Ville Syrjälä <ville.syrj...@linux.intel.com>
> >> omap_framebuffer_get_next_connector() uses plane->fb which we want to
> >> deprecate for atomic drivers. As omap_framebuffer_get_next_connector()
> >> is unused just nuke the entire function.
> >> Cc: Tomi Valkeinen <tomi.valkei...@ti.com>
> >> Signed-off-by: Ville Syrjälä <ville.syrj...@linux.intel.com>
> > Yeah was slightly worried how to fix up this one, but we're lucky!
> > Reviewed-by: Daniel Vetter <daniel.vet...@ffwll.ch>
> I tried to remove it just a week ago, but Sebastian said that it's used
> by a unmerged series about DSI command mode displays, so I dropped the
> In the unmerged series, it's used by omap_framebuffer_dirty() ([PATCHv3
> 3/8] drm/omap: add support for manually updated displays). So we have a
> framebuffer, and we want to know which crtcs need to be flushed.
You can't do that in atomic drivers.
You need to take appropriate locks and do the full ->state->fb deref.
Also, there's a gazillion of copies for generic framebuffer_dirty
implementations floating around, pleas try to coordinate with those.
Software Engineer, Intel Corporation
dri-devel mailing list