Den 02.12.2022 12.50, skrev Thomas Zimmermann: > >>> >>> You use drm_gem_fb_vmap() in the other places but here you access the >>> object directly (and in the next hunk), but again not so important since >>> it goes away in a later patch. >> >> I'll update this patch to use drm_gem_fb_vmap() consistently. > > And after looking at the impact and churn, I rather go with the existing > code that initializes from the GEM DMA object. > > Noralf, is there a reason why most of MIPI DBI uses DMA helpers? In > terms of flexibility and resource consumption, wouldn't SHMEM helpers be > a better fit? > The SHMEM helper didn't exist at the time. The SPI subsystem doesn't have an interface for scatter/gather transfers and DMA is needed in order to run at full speed. SPI does convert an is_vmalloc_addr() buffer to an sg list of pages in spi_map_buf() so it solves the missing interface that way. I have never tried to pass a shmem buffer to spi_sync() so I don't know if it works, but I guess that it will work. Bare in mind that theses buffers are at most 400k in size so I'm not sure there's much to gain in term of resources at least. Noralf.
- [PATCH 0/8] drm/mipi-dbi: Convert to shadow-plane helper... Thomas Zimmermann
- [PATCH 4/8] drm/mipi-dbi: Initialize default driver... Thomas Zimmermann
- Re: [PATCH 4/8] drm/mipi-dbi: Initialize defaul... Noralf Trønnes
- [PATCH 5/8] drm/mipi-dbi: Prepare framebuffer copy ... Thomas Zimmermann
- Re: [PATCH 5/8] drm/mipi-dbi: Prepare framebuff... Noralf Trønnes
- Re: [PATCH 5/8] drm/mipi-dbi: Prepare frame... Thomas Zimmermann
- Re: [PATCH 5/8] drm/mipi-dbi: Prepare f... Thomas Zimmermann
- Re: [PATCH 5/8] drm/mipi-dbi: Prep... Noralf Trønnes
- Re: [PATCH 5/8] drm/mipi-dbi: Prepare f... Noralf Trønnes
- [PATCH 1/8] drm/simple-kms: Remove drm_gem_simple_d... Thomas Zimmermann
- Re: [PATCH 1/8] drm/simple-kms: Remove drm_gem_... Noralf Trønnes
- [PATCH 7/8] drm/mipi-dbi: Use shadow-plane mappings Thomas Zimmermann
- Re: [PATCH 7/8] drm/mipi-dbi: Use shadow-plane ... Noralf Trønnes
- [PATCH 8/8] drm/mipi-dbi: Move drm_dev_{enter, exit... Thomas Zimmermann
- Re: [PATCH 8/8] drm/mipi-dbi: Move drm_dev_{ent... Noralf Trønnes
- [PATCH 2/8] drm/ili9225: Call MIPI DBI mode_valid h... Thomas Zimmermann
- Re: [PATCH 2/8] drm/ili9225: Call MIPI DBI mode... Noralf Trønnes
- [PATCH 3/8] drm/st7586: Call MIPI DBI mode_valid he... Thomas Zimmermann