@@ -99,6 +99,30 @@ events for atomic commits correctly. But fixing these bugs is good anyway.
9999
100100Contact: Daniel Vetter, respective driver maintainers
101101
102+ Better manual-upload support for atomic
103+ ---------------------------------------
104+
105+ This would be especially useful for tinydrm:
106+
107+ - Add a struct drm_rect dirty_clip to drm_crtc_state. When duplicating the
108+ crtc state, clear that to the max values, x/y = 0 and w/h = MAX_INT, in
109+ __drm_atomic_helper_crtc_duplicate_state().
110+
111+ - Move tinydrm_merge_clips into drm_framebuffer.c, dropping the tinydrm _
112+ prefix ofc and using drm_fb _. drm_framebuffer.c makes sense since this
113+ is a function useful to implement the fb->dirty function.
114+
115+ - Create a new drm_fb_dirty function which does essentially what e.g.
116+ mipi_dbi_fb_dirty does. You can use e.g. drm_atomic_helper_update_plane as the
117+ template. But instead of doing a simple full-screen plane update, this new
118+ helper also sets crtc_state->dirty_clip to the right coordinates. And of
119+ course it needs to check whether the fb is actually active (and maybe where),
120+ so there's some book-keeping involved. There's also some good fun involved in
121+ scaling things appropriately. For that case we might simply give up and
122+ declare the entire area covered by the plane as dirty.
123+
124+ Contact: Noralf Trønnes, Daniel Vetter
125+
102126Fallout from atomic KMS
103127-----------------------
104128
@@ -336,6 +360,52 @@ Contact: Daniel Vetter
336360Driver Specific
337361===============
338362
363+ tinydrm
364+ -------
365+
366+ Tinydrm is the helper driver for really simple fb drivers. The goal is to make
367+ those drivers as simple as possible, so lots of room for refactoring:
368+
369+ - backlight helpers, probably best to put them into a new drm_backlight.c.
370+ This is because drivers/video is de-facto unmaintained. We could also
371+ move drivers/video/backlight to drivers/gpu/backlight and take it all
372+ over within drm-misc, but that's more work.
373+
374+ - spi helpers, probably best put into spi core/helper code. Thierry said
375+ the spi maintainer is fast&reactive, so shouldn't be a big issue.
376+
377+ - extract the mipi-dbi helper (well, the non-tinydrm specific parts at
378+ least) into a separate helper, like we have for mipi-dsi already. Or follow
379+ one of the ideas for having a shared dsi/dbi helper, abstracting away the
380+ transport details more.
381+
382+ - tinydrm_lastclose could be drm_fb_helper_lastclose. Only thing we need
383+ for that is to store the drm_fb_helper pointer somewhere in
384+ drm_device->mode_config. And then we could roll that out to all the
385+ drivers.
386+
387+ - tinydrm_gem_cma_prime_import_sg_table should probably go into the cma
388+ helpers, as a _vmapped variant (since not every driver needs the vmap).
389+ And tinydrm_gem_cma_free_object could the be merged into
390+ drm_gem_cma_free_object().
391+
392+ - tinydrm_fb_create we could move into drm_simple_pipe, only need to add
393+ the fb_create hook to drm_simple_pipe_funcs, which would again simplify a
394+ bunch of things (since it gives you a one-stop vfunc for simple drivers).
395+
396+ - Quick aside: The unregister devm stuff is kinda getting the lifetimes of
397+ a drm_device wrong. Doesn't matter, since everyone else gets it wrong
398+ too :-)
399+
400+ - With the fbdev pointer in dev->mode_config we could also make
401+ suspend/resume helpers entirely generic, at least if we add a
402+ dev->mode_config.suspend_state. We could even provide a generic pm_ops
403+ structure with those.
404+
405+ - also rework the drm_framebuffer_funcs->dirty hook wire-up, see above.
406+
407+ Contact: Noralf Trønnes, Daniel Vetter
408+
339409Outside DRM
340410===========
341411
0 commit comments