From: Ajay Kumar <ajaykumar.rs@samsung.com>
To: linux-arm-kernel@lists.infradead.org,
iommu@lists.linux-foundation.org, joro@8bytes.org,
will@kernel.org, robin.murphy@arm.com
Cc: alim.akhtar@samsung.com, pankaj.dubey@samsung.com,
ajaykumar.rs1989@gmail.com, Ajay Kumar <ajaykumar.rs@samsung.com>
Subject: [PATCH V2 0/6] IOMMU-DMA - support DMA_ATTR_LOW_ADDRESS attribute
Date: Wed, 11 May 2022 17:45:38 +0530 [thread overview]
Message-ID: <20220511121544.5998-1-ajaykumar.rs@samsung.com> (raw)
In-Reply-To: CGME20220511121425epcas5p256b55554b32dc58566827818a817ac44@epcas5p2.samsung.com
This patchset is a rebase of original patches from Marek Szyprowski:
https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg2321261.html
The patches have been rebased on Joro's IOMMU tree "next" branch:
https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git
This patchset is needed to address the IOVA address dependency issue between
firmware buffers and other buffers in Samsung s5p-mfc driver.
There have been few discussions in the past on how to find a generic
soultion for this issue, ranging from adding an entirely new API to choose
IOVA window[1], to adding a DMA attribute DMA_ATTR_LOW_ADDRESS which handles
buffer allocation from lower address[2].
This is a continuation of initial work from Marek for approach [2].
Patches have been tested with latest version of Samsung s5p-mfc driver.
Changes since V1:
[PATCH V2 1/6]
- Rebase on latest tree.
[PATCH V2 2/6]
- Rebase on latest tree.
Added a missing check for iova_pfn in __iova_rcache_get()
Discard changes from drivers/iommu/intel/iommu.c which are not necessary
[PATCH V2 3/6]
- Rebase on latest tree.
[PATCH V2 4/6]
- Rebase on latest tree
[PATCH V2 5/6]
- Rebase on latest tree
[PATCH V2 6/6]
- Rebase on latest tree.
Marek Szyprowski (6):
dma-mapping: add DMA_ATTR_LOW_ADDRESS attribute
iommu: iova: properly handle 0 as a valid IOVA address
iommu: iova: add support for 'first-fit' algorithm
iommu: dma-iommu: refactor iommu_dma_alloc_iova()
iommu: dma-iommu: add support for DMA_ATTR_LOW_ADDRESS
media: platform: s5p-mfc: use DMA_ATTR_LOW_ADDRESS
References:
[1]
https://lore.kernel.org/linux-iommu/20200811054912.GA301@infradead.org/
[2]
https://lore.kernel.org/linux-mm/bff57cbe-2247-05e1-9059-d9c66d64c407@arm.com
drivers/iommu/dma-iommu.c | 77 +++++++++++-----
drivers/iommu/iova.c | 91 ++++++++++++++++++-
.../media/platform/samsung/s5p-mfc/s5p_mfc.c | 8 +-
include/linux/dma-mapping.h | 6 ++
include/linux/iova.h | 3 +
5 files changed, 156 insertions(+), 29 deletions(-)
base-commit: faf93cfaadfaaff2a5c35d6301b45aa2f6e4ddb2
--
2.17.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next parent reply other threads:[~2022-05-12 3:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20220511121425epcas5p256b55554b32dc58566827818a817ac44@epcas5p2.samsung.com>
2022-05-11 12:15 ` Ajay Kumar [this message]
[not found] ` <CGME20220511121429epcas5p2d91f585a555e51b1c11e9e02c1b8dc15@epcas5p2.samsung.com>
2022-05-11 12:15 ` [PATCH V2 1/6] dma-mapping: add DMA_ATTR_LOW_ADDRESS attribute Ajay Kumar
[not found] ` <CGME20220511121433epcas5p3de77375a85edf1aa78c0976a7107fdfa@epcas5p3.samsung.com>
2022-05-11 12:15 ` [PATCH V2 2/6] iommu: iova: properly handle 0 as a valid IOVA address Ajay Kumar
2022-05-23 17:30 ` Robin Murphy
2022-05-30 13:27 ` Ajay Kumar
2022-06-02 15:58 ` Marek Szyprowski
2022-06-06 12:38 ` Robin Murphy
2022-06-17 14:30 ` Marek Szyprowski
[not found] ` <CGME20220511121437epcas5p29d2210065b47346840c9c6ac14b0e585@epcas5p2.samsung.com>
2022-05-11 12:15 ` [PATCH V2 3/6] iommu: iova: add support for 'first-fit' algorithm Ajay Kumar
[not found] ` <CGME20220511121439epcas5p493bf4b94c89c8a63fdc0586c89cea8df@epcas5p4.samsung.com>
2022-05-11 12:15 ` [PATCH V2 4/6] iommu: dma-iommu: refactor iommu_dma_alloc_iova() Ajay Kumar
[not found] ` <CGME20220511121442epcas5p26a997a19e8cc1de8eb23123500fb24fb@epcas5p2.samsung.com>
2022-05-11 12:15 ` [PATCH V2 5/6] iommu: dma-iommu: add support for DMA_ATTR_LOW_ADDRESS Ajay Kumar
[not found] ` <CGME20220511121445epcas5p377ef245c4f5a0bf282245877d2b922c8@epcas5p3.samsung.com>
2022-05-11 12:15 ` [PATCH V2 6/6] media: platform: s5p-mfc: use DMA_ATTR_LOW_ADDRESS Ajay Kumar
2022-05-23 15:54 ` [PATCH V2 0/6] IOMMU-DMA - support DMA_ATTR_LOW_ADDRESS attribute Ajay Kumar
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=20220511121544.5998-1-ajaykumar.rs@samsung.com \
--to=ajaykumar.rs@samsung.com \
--cc=ajaykumar.rs1989@gmail.com \
--cc=alim.akhtar@samsung.com \
--cc=iommu@lists.linux-foundation.org \
--cc=joro@8bytes.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=pankaj.dubey@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 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).