Paul Cercueil 4a791cb6d3
drm/ingenic: Add option to alloc cached GEM buffers
Alloc GEM buffers backed by noncoherent memory on SoCs where it is
actually faster than write-combine.

This dramatically speeds up software rendering on these SoCs, even for
tasks where write-combine memory should in theory be faster (e.g. simple
blits).

v3: The option is now selected per-SoC instead of being a module
    parameter.

v5: - Fix drm_atomic_get_new_plane_state() used to retrieve the old
      state
    - Use custom drm_gem_fb_create()
    - Only check damage clips and sync DMA buffers if non-coherent
      buffers are used

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20210523170415.90410-4-paul@crapouillou.net
2021-05-25 11:42:53 +01:00
..
2021-05-22 07:17:05 +02:00
2021-05-06 11:43:46 +02:00
2021-04-13 23:15:09 +02:00
2021-04-27 13:13:19 +02:00
2021-05-12 11:31:28 +02:00
2021-04-28 10:01:40 -07:00
2021-04-08 12:42:14 +10:00
2021-05-19 09:22:56 +10:00
2021-04-13 23:15:09 +02:00
2021-03-16 17:08:46 +10:00
2021-05-12 12:37:47 +02:00
2021-04-13 23:15:09 +02:00
2021-03-16 17:08:46 +10:00
2021-04-29 18:53:05 -03:00
2021-04-13 23:15:09 +02:00
2021-05-10 15:46:54 +02:00
2021-01-04 12:59:33 +01:00
2020-09-21 10:45:08 +02:00
2021-01-07 13:40:20 +01:00
2021-05-17 21:19:48 +02:00
2021-03-18 14:22:50 +01:00