From: Leon Romanovsky <leon@kernel.org>
To: Christoph Hellwig <hch@lst.de>
Cc: Robin Murphy <robin.murphy@arm.com>,
iommu@lists.linux.dev, Joerg Roedel <joro@8bytes.org>,
Will Deacon <will@kernel.org>,
Marek Szyprowski <m.szyprowski@samsung.com>,
Xi Ruoyao <xry111@xry111.site>
Subject: Re: [PATCH 1/2] dma-mapping: fix vmap and mmap of noncontiougs allocations
Date: Sun, 22 Sep 2024 18:02:06 +0300 [thread overview]
Message-ID: <20240922150206.GE11337@unreal> (raw)
In-Reply-To: <20240922140743.1596763-2-hch@lst.de>
On Sun, Sep 22, 2024 at 04:07:34PM +0200, Christoph Hellwig wrote:
> Commit b5c58b2fdc42 ("dma-mapping: direct calls for dma-iommu") switched
> to use direct calls to dma-iommu, but missed the dma_vmap_noncontiguous,
> dma_vunmap_noncontiguous and dma_mmap_noncontiguous behavior keyed off the
> presence of the alloc_noncontiguous method.
>
> Fix this by removing the now unused alloc_noncontiguous and
> free_noncontiguous methods and moving the vmapping and mmaping of the
> noncontiguous allocations into the iommu code, as it is the only provider
> of actually noncontiguous allocations.
>
> Fixes: b5c58b2fdc42 ("dma-mapping: direct calls for dma-iommu")
> Reported-by: Xi Ruoyao <xry111@xry111.site>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> Tested-by: Xi Ruoyao <xry111@xry111.site>
> ---
> drivers/iommu/dma-iommu.c | 33 +++++++++++++++++++++++++++++++++
> include/linux/dma-map-ops.h | 19 -------------------
> include/linux/iommu-dma.h | 6 ++++++
> kernel/dma/mapping.c | 37 ++++++++++---------------------------
> 4 files changed, 49 insertions(+), 46 deletions(-)
>
Thanks,
Reviewed-by: Leon Romanovsky <leon@kernel.org>
next prev parent reply other threads:[~2024-09-22 15:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-22 14:07 iommu-dma direct call fixups Christoph Hellwig
2024-09-22 14:07 ` [PATCH 1/2] dma-mapping: fix vmap and mmap of noncontiougs allocations Christoph Hellwig
2024-09-22 15:02 ` Leon Romanovsky [this message]
2024-09-22 14:07 ` [PATCH 2/2] iommu/dma: remove most stubs in iommu-dma.h Christoph Hellwig
2024-09-22 14:28 ` Leon Romanovsky
2024-09-22 14:32 ` Christoph Hellwig
2024-09-22 15:02 ` Leon Romanovsky
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=20240922150206.GE11337@unreal \
--to=leon@kernel.org \
--cc=hch@lst.de \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=m.szyprowski@samsung.com \
--cc=robin.murphy@arm.com \
--cc=will@kernel.org \
--cc=xry111@xry111.site \
/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.