Message ID | 20220802000405.949236-1-dakr@redhat.com (mailing list archive) |
---|---|
Headers | show |
Series | drm: rename CMA helpers to DMA helpers | expand |
Hi Danilo, On Tue, Aug 02, 2022 at 02:04:00AM +0200, Danilo Krummrich wrote: > This patch series renames all CMA helpers to DMA helpers - considering the > hierarchy of APIs (mm/cma -> dma -> gem/fb dma helpers) calling them DMA > helpers seems to be more applicable. > > Additionally, commit e57924d4ae80 ("drm/doc: Task to rename CMA helpers") > requests to rename the CMA helpers and implies that people seem to be confused > about the naming. > > The patches are compile-time tested building a x86_64 kernel with > `make allyesconfig && make drivers/gpu/drm`. For good measure I build tested each patch on my setup - which covers a few more archs (cross compiled). There was a few checkpatch warnings when applying, which I happily ignored. Most/all are existing flaws where you do other edits in the relevant line. I consider the series ready to be applied to drm-misc, but have not done so myself. I have pinged Daniel Vetter on irc - as he was the one suggesting the task from the very beginning. Sam
Hi Danilo, On Tue, Aug 02, 2022 at 02:04:00AM +0200, Danilo Krummrich wrote: > This patch series renames all CMA helpers to DMA helpers - considering the > hierarchy of APIs (mm/cma -> dma -> gem/fb dma helpers) calling them DMA > helpers seems to be more applicable. > > Additionally, commit e57924d4ae80 ("drm/doc: Task to rename CMA helpers") > requests to rename the CMA helpers and implies that people seem to be confused > about the naming. > > The patches are compile-time tested building a x86_64 kernel with > `make allyesconfig && make drivers/gpu/drm`. > > Changes in v2: > - Fixed up comments for consistent memory/address classification > (DMA-contiguous) > - Added a patch to rename struct drm_gem_dma_object.{paddr => dma_addr} > > Changes in v3: > - Use a ccoccinelle script for > "drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr}" for fixing > up missing drivers and compile-test on x86_64, arm and arm64. > > Changes in v4: > - Rebased all patches on drm-misc/drm-misc-next. > > Changes in v5: > - Rebase of v4, meanwhile some merge conflicts came up on > drm-misc/drm-misc-next. > > Changes in v6: > - Added a patch to remove unused include occurances of drm_fb_cma_helper.h > in various drivers. > > Changes in v7: > - Fix `select DRM_KMS_{CMA => DMA}_HELPER` and > `select DRM_GEM_{CMA => DMA}_HELPER` in > drivers/gpu/drm/logicvc/Kconfig and drivers/gpu/drm/mxsfb/Kconfig which > slipped through in a rebase. > - Another rebase. > > Danilo Krummrich (5): > drm/fb: remove unused includes of drm_fb_cma_helper.h > drm/fb: rename FB CMA helpers to FB DMA helpers > drm/gem: rename GEM CMA helpers to GEM DMA helpers > drm/gem: rename struct drm_gem_dma_object.{paddr => dma_addr} > drm/todo: remove task to rename CMA helpers Thanks for looking into this task! The patches are now applied to drm-misc (drm-misc-next). Sam