From: Leon Romanovsky <leon@kernel.org>
To: Christoph Hellwig <hch@lst.de>,
Robin Murphy <robin.murphy@arm.com>,
Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>,
Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Easwar Hariharan <eahariha@linux.microsoft.com>,
linux-kernel@vger.kernel.org, iommu@lists.linux.dev,
Jason Gunthorpe <jgg@nvidia.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: [PATCH v3 0/2] DMA IOMMU static calls
Date: Sun, 21 Jul 2024 10:49:09 +0300 [thread overview]
Message-ID: <cover.1721547902.git.leon@kernel.org> (raw)
Changelog:
v3:
* Changed coding style as Christoph asked
* Moved debug WARN_ON check to dma_set_mask.
* Slightly updated commit messages
* Added Greg to the CC list
v2: https://lore.kernel.org/all/cover.1721219730.git.leon@kernel.org/
* Ditched dma_ops flag in favor of field in struct device (suggested by
Christoph)
* Removed CONFIG_DMA_OPS select from dma-iommu.c Kconfig
* Removed flags field which exist only in default IOMMU
v1: https://lore.kernel.org/all/cover.1721041611.git.leon@kernel.org/
* Dropped extra layer and called directly to iommu_dma_* functions
* Added unmap_page and unmap_sg to dummy ops
* Converted all dma-mapping calls to use iommu directly
* Updated commit messages
v0:
https://lore.kernel.org/all/98d1821780028434ff55b5d2f1feea287409fbc4.1720693745.git.leon@kernel.org/
Leon Romanovsky (2):
dma: call unconditionally to unmap_page and unmap_sg callbacks
dma: add IOMMU static calls with clear default ops
MAINTAINERS | 1 +
drivers/iommu/Kconfig | 1 -
drivers/iommu/dma-iommu.c | 127 +++++++++++----------------
include/linux/device.h | 5 ++
include/linux/dma-map-ops.h | 33 ++++---
include/linux/iommu-dma.h | 169 ++++++++++++++++++++++++++++++++++++
kernel/dma/dummy.c | 23 +++++
kernel/dma/mapping.c | 84 +++++++++++++++---
8 files changed, 338 insertions(+), 105 deletions(-)
create mode 100644 include/linux/iommu-dma.h
--
2.45.2
next reply other threads:[~2024-07-21 7:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-21 7:49 Leon Romanovsky [this message]
2024-07-21 7:49 ` [PATCH v3 1/2] dma: call unconditionally to unmap_page and unmap_sg callbacks Leon Romanovsky
2024-07-21 7:49 ` [PATCH v3 2/2] dma: add IOMMU static calls with clear default ops Leon Romanovsky
2024-07-22 15:10 ` Christoph Hellwig
2024-07-22 15:44 ` Leon Romanovsky
2024-07-22 15:49 ` Christoph Hellwig
2024-07-22 16:05 ` Leon Romanovsky
2024-07-22 23:16 ` Christoph Hellwig
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=cover.1721547902.git.leon@kernel.org \
--to=leon@kernel.org \
--cc=eahariha@linux.microsoft.com \
--cc=gregkh@linuxfoundation.org \
--cc=hch@lst.de \
--cc=iommu@lists.linux.dev \
--cc=jgg@nvidia.com \
--cc=joro@8bytes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=robin.murphy@arm.com \
--cc=will@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.