Skip to content

drm+dma: cache support for arm, etc

Rob Clark dri-devel linux-arm-kernel linux-arm-msm linux-mips linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6arm64: export arch_sync_dma_for_*()arch/arm64/mm/dma-mapping.c+2 -00 replies
2/6mips: export arch_sync_dma_for_*()arch/arm64/mm/flush.c arch/mips/mm/dma-noncoherent.c drivers/gpu/drm/drm_cache.c +1 more+25 -30 replies
3/6powerpc: export arch_sync_dma_for_*()arch/powerpc/mm/dma-noncoherent.c+2 -00 replies
4/6arm: add arch_sync_dma_for_*()arch/arm/Kconfig arch/arm/mm/dma-mapping-nommu.c arch/arm/mm/dma-mapping.c+44 -00 replies
5/6drm/msm: stop abusing DMA APIdrivers/gpu/drm/msm/msm_gem.c+11 -260 replies
6/6drm/vgem: fix cache synchronization on arm/arm64 (take two)drivers/gpu/drm/vgem/vgem_drv.c+98 -470 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] drm+dma: cache support for arm, etc

From: Rob Clark <[email protected]>

This is a replacement for a previous patches[1] that was adding arm64 support for drm_clflush. I've also added a patch to solve a similar cache issue in vgem.

The first few patches just export arch_sync_dma_for_*(). Possibly instead the EXPORT_SYMBOL_GPL() should be somewere central, rather than per-arch (but where would make sense?)

The fourth adds (and exports) these ops for arch/arm. (Arnd Bergmann mentioned on IRC that Christoph Hellwig was working on this already for arch/arm which could replace the fourth patch.)

The last two patches actually fix things.

[1] https://patchwork.freedesktop.org/series/64732/

Rob Clark (6):
arm64: export arch_sync_dma_for_*()
mips: export arch_sync_dma_for_*()
powerpc: export arch_sync_dma_for_*()
arm: add arch_sync_dma_for_*()
drm/msm: stop abusing DMA API
drm/vgem: fix cache synchronization on arm/arm64 (take two)

 arch/arm/Kconfig                  |   2 +
 arch/arm/mm/dma-mapping-nommu.c   |  14 +++
 arch/arm/mm/dma-mapping.c         |  28 ++++++
 arch/arm64/mm/dma-mapping.c       |   2 +
 arch/arm64/mm/flush.c             |   2 +
 arch/mips/mm/dma-noncoherent.c    |   2 +
 arch/powerpc/mm/dma-noncoherent.c |   2 +
 drivers/gpu/drm/drm_cache.c       |  20 ++++-
 drivers/gpu/drm/msm/msm_gem.c     |  37 +++-----
 drivers/gpu/drm/vgem/vgem_drv.c   | 145 ++++++++++++++++++++----------
 include/drm/drm_cache.h           |   4 +
 11 files changed, 182 insertions(+), 76 deletions(-)
Signature · 6 lines
2.21.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel