linux-parisc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RFC: switch to use the generic remapping dma-allocator
@ 2022-11-21 13:16 Christoph Hellwig
  2022-11-21 13:16 ` [PATCH 1/2] dma-mapping: add a arch_can_dma_alloc_coherent hook Christoph Hellwig
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Christoph Hellwig @ 2022-11-21 13:16 UTC (permalink / raw)
  To: James E.J. Bottomley, Helge Deller; +Cc: linux-parisc, iommu

Hi all,

currently parisc has it's own implementation of the dma-coherent
allocator that sets up PTEs with the uncached bit.  I can't see any
reason why using vmap to do the same kind of setup shouldn't work.
This small series shows how that could work, but due to a lack of
actual parisc hardware it is compile tested only and not only needs
a careful review but also actual testing on hardware.

Diffstat:
 arch/parisc/Kconfig               |    4 
 arch/parisc/include/asm/pgtable.h |    1 
 arch/parisc/kernel/pci-dma.c      |  446 +-------------------------------------
 include/linux/dma-map-ops.h       |    1 
 kernel/dma/Kconfig                |    3 
 kernel/dma/direct.c               |    4 
 6 files changed, 24 insertions(+), 435 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-21 15:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-21 13:16 RFC: switch to use the generic remapping dma-allocator Christoph Hellwig
2022-11-21 13:16 ` [PATCH 1/2] dma-mapping: add a arch_can_dma_alloc_coherent hook Christoph Hellwig
2022-11-21 13:16 ` [PATCH 2/2] parisc: use the generic remapping dma allocator Christoph Hellwig
2022-11-21 14:22 ` RFC: switch to use the generic remapping dma-allocator Helge Deller
2022-11-21 15:30   ` Helge Deller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).