From: Christoph Hellwig <hch@lst.de>
To: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>,
Helge Deller <deller@gmx.de>
Cc: linux-parisc@vger.kernel.org, iommu@lists.linux.dev
Subject: RFC: switch to use the generic remapping dma-allocator
Date: Mon, 21 Nov 2022 14:16:21 +0100 [thread overview]
Message-ID: <20221121131623.228727-1-hch@lst.de> (raw)
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(-)
next reply other threads:[~2022-11-21 13:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-21 13:16 Christoph Hellwig [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221121131623.228727-1-hch@lst.de \
--to=hch@lst.de \
--cc=James.Bottomley@HansenPartnership.com \
--cc=deller@gmx.de \
--cc=iommu@lists.linux.dev \
--cc=linux-parisc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).