From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
To: ulf.hansson@linaro.org, wsa+renesas@sang-engineering.com,
hch@lst.de, m.szyprowski@samsung.com, robin.murphy@arm.com,
joro@8bytes.org
Cc: linux-mmc@vger.kernel.org, iommu@lists.linux-foundation.org,
linux-renesas-soc@vger.kernel.org,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Subject: [RFC PATCH v5 0/8] treewide: improve R-Car SDHI performance
Date: Wed, 5 Jun 2019 20:11:46 +0900 [thread overview]
Message-ID: <1559733114-4221-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> (raw)
This patch series is based on iommu.git / next branch.
Since SDHI host internal DMAC of the R-Car Gen3 cannot handle two or
more segments, the performance rate (especially, eMMC HS400 reading)
is not good. However, if IOMMU is enabled on the DMAC, since IOMMU will
map multiple scatter gather buffers as one contignous iova, the DMAC can
handle the iova as well and then the performance rate is possible to
improve. In fact, I have measured the performance by using bonnie++,
"Sequential Input - block" rate was improved on r8a7795.
To achieve this, this patch series modifies DMA MAPPING and IOMMU
subsystem at first. Since I'd like to get any feedback from each
subsystem whether this way is acceptable for upstream, I submit it
to treewide with RFC.
Changes from v4:
- [DMA MAPPING] Add a new device_dma_parameters for iova contiguous.
- [IOMMU] Add a new capable for "merging" segments.
- [IOMMU] Add a capable ops into the ipmmu-vmsa driver.
- [MMC] Sort headers in renesas_sdhi_core.c.
- [MMC] Remove the following codes that made on v3 that can be achieved by
DMA MAPPING and IOMMU subsystem:
-- Check if R-Car Gen3 IPMMU is used or not on patch 3.
-- Check if all multiple segment buffers are aligned to PAGE_SIZE on patch 3.
https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=125593
Changes from v3:
- Use a helper function device_iommu_mapped on patch 1 and 3.
- Check if R-Car Gen3 IPMMU is used or not on patch 3.
- Check if all multiple segment buffers are aligned to PAGE_SIZE on patch 3.
- Add Reviewed-by Wolfram-san on patch 1 and 2. Note that I also got his
Reviewed-by on patch 3, but I changed it from v2. So, I didn't add
his Reviewed-by at this time.
https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=120985
Changes from v2:
- Add some conditions in the init_card().
- Add a comment in the init_card().
- Add definitions for some "MAX_SEGS".
https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=116729
Changes from v1:
- Remove adding init_card ops into struct tmio_mmc_dma_ops and
tmio_mmc_host and just set init_card on renesas_sdhi_core.c.
- Revise typos on "mmc: tmio: No memory size limitation if runs on IOMMU".
- Add Simon-san's Reviewed-by on a tmio patch.
https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=110485
*** BLURB HERE ***
Yoshihiro Shimoda (8):
dma-mapping: add a device driver helper for iova contiguous
iommu/dma: move iommu_dma_unmap_sg() place
iommu: add a new capable IOMMU_CAP_MERGING
iommu/ipmmu-vmsa: add capable ops
mmc: tmio: No memory size limitation if runs on IOMMU
mmc: tmio: Add a definition for default max_segs
mmc: renesas_sdhi: sort headers
mmc: renesas_sdhi: use multiple segments if possible
drivers/iommu/dma-iommu.c | 74 +++++++++++++++++----------
drivers/iommu/ipmmu-vmsa.c | 13 +++++
drivers/mmc/host/renesas_sdhi_core.c | 43 +++++++++++++---
drivers/mmc/host/renesas_sdhi_internal_dmac.c | 4 ++
drivers/mmc/host/tmio_mmc.h | 1 +
drivers/mmc/host/tmio_mmc_core.c | 7 +--
include/linux/device.h | 1 +
include/linux/dma-mapping.h | 16 ++++++
include/linux/iommu.h | 1 +
9 files changed, 123 insertions(+), 37 deletions(-)
--
2.7.4
WARNING: multiple messages have this Message-ID (diff)
From: Yoshihiro Shimoda <yoshihiro.shimoda.uh-zM6kxYcvzFBBDgjK7y7TUQ@public.gmane.org>
To: ulf.hansson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org,
wsa+renesas-jBu1N2QxHDJrcw3mvpCnnVaTQe2KTcn/@public.gmane.org,
hch-jcswGhMUV9g@public.gmane.org,
m.szyprowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
robin.murphy-5wv7dgnIgG8@public.gmane.org,
joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org
Cc: linux-renesas-soc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
linux-mmc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [RFC PATCH v5 0/8] treewide: improve R-Car SDHI performance
Date: Wed, 5 Jun 2019 20:11:46 +0900 [thread overview]
Message-ID: <1559733114-4221-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> (raw)
This patch series is based on iommu.git / next branch.
Since SDHI host internal DMAC of the R-Car Gen3 cannot handle two or
more segments, the performance rate (especially, eMMC HS400 reading)
is not good. However, if IOMMU is enabled on the DMAC, since IOMMU will
map multiple scatter gather buffers as one contignous iova, the DMAC can
handle the iova as well and then the performance rate is possible to
improve. In fact, I have measured the performance by using bonnie++,
"Sequential Input - block" rate was improved on r8a7795.
To achieve this, this patch series modifies DMA MAPPING and IOMMU
subsystem at first. Since I'd like to get any feedback from each
subsystem whether this way is acceptable for upstream, I submit it
to treewide with RFC.
Changes from v4:
- [DMA MAPPING] Add a new device_dma_parameters for iova contiguous.
- [IOMMU] Add a new capable for "merging" segments.
- [IOMMU] Add a capable ops into the ipmmu-vmsa driver.
- [MMC] Sort headers in renesas_sdhi_core.c.
- [MMC] Remove the following codes that made on v3 that can be achieved by
DMA MAPPING and IOMMU subsystem:
-- Check if R-Car Gen3 IPMMU is used or not on patch 3.
-- Check if all multiple segment buffers are aligned to PAGE_SIZE on patch 3.
https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=125593
Changes from v3:
- Use a helper function device_iommu_mapped on patch 1 and 3.
- Check if R-Car Gen3 IPMMU is used or not on patch 3.
- Check if all multiple segment buffers are aligned to PAGE_SIZE on patch 3.
- Add Reviewed-by Wolfram-san on patch 1 and 2. Note that I also got his
Reviewed-by on patch 3, but I changed it from v2. So, I didn't add
his Reviewed-by at this time.
https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=120985
Changes from v2:
- Add some conditions in the init_card().
- Add a comment in the init_card().
- Add definitions for some "MAX_SEGS".
https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=116729
Changes from v1:
- Remove adding init_card ops into struct tmio_mmc_dma_ops and
tmio_mmc_host and just set init_card on renesas_sdhi_core.c.
- Revise typos on "mmc: tmio: No memory size limitation if runs on IOMMU".
- Add Simon-san's Reviewed-by on a tmio patch.
https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=110485
*** BLURB HERE ***
Yoshihiro Shimoda (8):
dma-mapping: add a device driver helper for iova contiguous
iommu/dma: move iommu_dma_unmap_sg() place
iommu: add a new capable IOMMU_CAP_MERGING
iommu/ipmmu-vmsa: add capable ops
mmc: tmio: No memory size limitation if runs on IOMMU
mmc: tmio: Add a definition for default max_segs
mmc: renesas_sdhi: sort headers
mmc: renesas_sdhi: use multiple segments if possible
drivers/iommu/dma-iommu.c | 74 +++++++++++++++++----------
drivers/iommu/ipmmu-vmsa.c | 13 +++++
drivers/mmc/host/renesas_sdhi_core.c | 43 +++++++++++++---
drivers/mmc/host/renesas_sdhi_internal_dmac.c | 4 ++
drivers/mmc/host/tmio_mmc.h | 1 +
drivers/mmc/host/tmio_mmc_core.c | 7 +--
include/linux/device.h | 1 +
include/linux/dma-mapping.h | 16 ++++++
include/linux/iommu.h | 1 +
9 files changed, 123 insertions(+), 37 deletions(-)
--
2.7.4
WARNING: multiple messages have this Message-ID (diff)
From: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
To: ulf.hansson@linaro.org, wsa+renesas@sang-engineering.com,
hch@lst.de, m.szyprowski@samsung.com, robin.murphy@arm.com,
joro@8bytes.org
Cc: linux-renesas-soc@vger.kernel.org,
iommu@lists.linux-foundation.org, linux-mmc@vger.kernel.org
Subject: [RFC PATCH v5 0/8] treewide: improve R-Car SDHI performance
Date: Wed, 5 Jun 2019 20:11:46 +0900 [thread overview]
Message-ID: <1559733114-4221-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> (raw)
This patch series is based on iommu.git / next branch.
Since SDHI host internal DMAC of the R-Car Gen3 cannot handle two or
more segments, the performance rate (especially, eMMC HS400 reading)
is not good. However, if IOMMU is enabled on the DMAC, since IOMMU will
map multiple scatter gather buffers as one contignous iova, the DMAC can
handle the iova as well and then the performance rate is possible to
improve. In fact, I have measured the performance by using bonnie++,
"Sequential Input - block" rate was improved on r8a7795.
To achieve this, this patch series modifies DMA MAPPING and IOMMU
subsystem at first. Since I'd like to get any feedback from each
subsystem whether this way is acceptable for upstream, I submit it
to treewide with RFC.
Changes from v4:
- [DMA MAPPING] Add a new device_dma_parameters for iova contiguous.
- [IOMMU] Add a new capable for "merging" segments.
- [IOMMU] Add a capable ops into the ipmmu-vmsa driver.
- [MMC] Sort headers in renesas_sdhi_core.c.
- [MMC] Remove the following codes that made on v3 that can be achieved by
DMA MAPPING and IOMMU subsystem:
-- Check if R-Car Gen3 IPMMU is used or not on patch 3.
-- Check if all multiple segment buffers are aligned to PAGE_SIZE on patch 3.
https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=125593
Changes from v3:
- Use a helper function device_iommu_mapped on patch 1 and 3.
- Check if R-Car Gen3 IPMMU is used or not on patch 3.
- Check if all multiple segment buffers are aligned to PAGE_SIZE on patch 3.
- Add Reviewed-by Wolfram-san on patch 1 and 2. Note that I also got his
Reviewed-by on patch 3, but I changed it from v2. So, I didn't add
his Reviewed-by at this time.
https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=120985
Changes from v2:
- Add some conditions in the init_card().
- Add a comment in the init_card().
- Add definitions for some "MAX_SEGS".
https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=116729
Changes from v1:
- Remove adding init_card ops into struct tmio_mmc_dma_ops and
tmio_mmc_host and just set init_card on renesas_sdhi_core.c.
- Revise typos on "mmc: tmio: No memory size limitation if runs on IOMMU".
- Add Simon-san's Reviewed-by on a tmio patch.
https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=110485
*** BLURB HERE ***
Yoshihiro Shimoda (8):
dma-mapping: add a device driver helper for iova contiguous
iommu/dma: move iommu_dma_unmap_sg() place
iommu: add a new capable IOMMU_CAP_MERGING
iommu/ipmmu-vmsa: add capable ops
mmc: tmio: No memory size limitation if runs on IOMMU
mmc: tmio: Add a definition for default max_segs
mmc: renesas_sdhi: sort headers
mmc: renesas_sdhi: use multiple segments if possible
drivers/iommu/dma-iommu.c | 74 +++++++++++++++++----------
drivers/iommu/ipmmu-vmsa.c | 13 +++++
drivers/mmc/host/renesas_sdhi_core.c | 43 +++++++++++++---
drivers/mmc/host/renesas_sdhi_internal_dmac.c | 4 ++
drivers/mmc/host/tmio_mmc.h | 1 +
drivers/mmc/host/tmio_mmc_core.c | 7 +--
include/linux/device.h | 1 +
include/linux/dma-mapping.h | 16 ++++++
include/linux/iommu.h | 1 +
9 files changed, 123 insertions(+), 37 deletions(-)
--
2.7.4
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu
next reply other threads:[~2019-06-05 11:16 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-05 11:11 Yoshihiro Shimoda [this message]
2019-06-05 11:11 ` [RFC PATCH v5 0/8] treewide: improve R-Car SDHI performance Yoshihiro Shimoda
2019-06-05 11:11 ` Yoshihiro Shimoda
2019-06-05 11:11 ` [RFC PATCH v5 1/8] dma-mapping: add a device driver helper for iova contiguous Yoshihiro Shimoda
2019-06-05 11:11 ` Yoshihiro Shimoda
2019-06-05 11:11 ` Yoshihiro Shimoda
2019-06-05 11:11 ` [RFC PATCH v5 2/8] iommu/dma: move iommu_dma_unmap_sg() place Yoshihiro Shimoda
2019-06-05 11:11 ` Yoshihiro Shimoda
2019-06-05 11:11 ` Yoshihiro Shimoda
2019-06-05 11:11 ` [RFC PATCH v5 3/8] iommu: add a new capable IOMMU_CAP_MERGING Yoshihiro Shimoda
2019-06-05 11:11 ` Yoshihiro Shimoda
2019-06-05 11:11 ` Yoshihiro Shimoda
2019-06-05 12:21 ` Robin Murphy
2019-06-05 12:21 ` Robin Murphy
2019-06-05 12:21 ` Robin Murphy
2019-06-05 12:38 ` Christoph Hellwig
2019-06-05 12:38 ` Christoph Hellwig
2019-06-05 12:38 ` Christoph Hellwig
2019-06-06 6:28 ` Yoshihiro Shimoda
2019-06-06 6:28 ` Yoshihiro Shimoda
2019-06-06 6:28 ` Yoshihiro Shimoda
2019-06-06 7:00 ` Christoph Hellwig
2019-06-06 7:00 ` Christoph Hellwig
2019-06-06 7:00 ` Christoph Hellwig
2019-06-07 5:41 ` Yoshihiro Shimoda
2019-06-07 5:41 ` Yoshihiro Shimoda
2019-06-07 5:41 ` Yoshihiro Shimoda
2019-06-07 5:49 ` Christoph Hellwig
2019-06-07 5:49 ` Christoph Hellwig
2019-06-07 5:49 ` Christoph Hellwig
2019-06-07 6:01 ` Yoshihiro Shimoda
2019-06-07 6:01 ` Yoshihiro Shimoda
2019-06-07 6:01 ` Yoshihiro Shimoda
2019-06-06 5:53 ` Yoshihiro Shimoda
2019-06-06 5:53 ` Yoshihiro Shimoda
2019-06-06 5:53 ` Yoshihiro Shimoda
2019-06-05 16:17 ` Sergei Shtylyov
2019-06-05 16:17 ` Sergei Shtylyov
2019-06-05 16:17 ` Sergei Shtylyov
2019-06-05 11:11 ` [RFC PATCH v5 4/8] iommu/ipmmu-vmsa: add capable ops Yoshihiro Shimoda
2019-06-05 11:11 ` Yoshihiro Shimoda
2019-06-05 11:11 ` Yoshihiro Shimoda
2019-06-05 11:11 ` [RFC PATCH v5 5/8] mmc: tmio: No memory size limitation if runs on IOMMU Yoshihiro Shimoda
2019-06-05 11:11 ` Yoshihiro Shimoda
2019-06-05 11:11 ` Yoshihiro Shimoda
2019-06-05 11:11 ` [RFC PATCH v5 6/8] mmc: tmio: Add a definition for default max_segs Yoshihiro Shimoda
2019-06-05 11:11 ` Yoshihiro Shimoda
2019-06-05 11:11 ` Yoshihiro Shimoda
2019-06-05 11:11 ` [RFC PATCH v5 7/8] mmc: renesas_sdhi: sort headers Yoshihiro Shimoda
2019-06-05 11:11 ` Yoshihiro Shimoda
2019-06-05 11:11 ` Yoshihiro Shimoda
2019-06-05 11:11 ` [RFC PATCH v5 8/8] mmc: renesas_sdhi: use multiple segments if possible Yoshihiro Shimoda
2019-06-05 11:11 ` Yoshihiro Shimoda
2019-06-05 11:11 ` Yoshihiro Shimoda
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=1559733114-4221-1-git-send-email-yoshihiro.shimoda.uh@renesas.com \
--to=yoshihiro.shimoda.uh@renesas.com \
--cc=hch@lst.de \
--cc=iommu@lists.linux-foundation.org \
--cc=joro@8bytes.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=robin.murphy@arm.com \
--cc=ulf.hansson@linaro.org \
--cc=wsa+renesas@sang-engineering.com \
/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.