[PATCH] iommu/ipmmu-vmsa: Fix compatible for rcar-gen4

2022-06-16 Thread Yoshihiro Shimoda
Fix compatible string for R-Car Gen4. Fixes: ae684caf465b ("iommu/ipmmu-vmsa: Add support for R-Car Gen4") Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ip

RE: [PATCH v2] dt-bindings: iommu: renesas,ipmmu-vmsa: R-Car V3U is R-Car Gen4

2022-06-12 Thread Yoshihiro Shimoda
: Krzysztof Kozlowski > Acked-by: Joerg Roedel > Reviewed-by: Wolfram Sang Thank you for the patch! Reviewed-by: Yoshihiro Shimoda Best regards, Yoshihiro Shimoda ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu

[PATCH v3 2/2] iommu/ipmmu-vmsa: Add support for R-Car Gen4

2022-02-07 Thread Yoshihiro Shimoda
Add support for R-Car Gen4 like r8a779f0 (R-Car S4-8). The IPMMU hardware design of r8a779f0 is the same as r8a779a0. So, rename "r8a779a0" to "rcar_gen4". Signed-off-by: Yoshihiro Shimoda Reviewed-by: Geert Uytterhoeven --- drivers/iommu/ipmmu-vmsa.c | 10 +++--

[PATCH v3 0/2] iommu/ipmmu-vmsa: Add support for R-Car Gen4

2022-02-07 Thread Yoshihiro Shimoda
all/20220204125653.1194249-1-yoshihiro.shimoda...@renesas.com/ Changes from v1: - Add Reviewed-by tag in patch 1. (Geert-san, thanks!) - Revise a comment in patch 2. https://lore.kernel.org/all/20220125125602.4144793-1-yoshihiro.shimoda...@renesas.com/ Y Yoshihiro Shimoda (2): dt-bindings: iommu: rene

[PATCH v3 1/2] dt-bindings: iommu: renesas, ipmmu-vmsa: add r8a779f0 support

2022-02-07 Thread Yoshihiro Shimoda
Document the compatible values for the IPMMU-VMSA blocks in the Renesas R-Car S4-8 (R8A779F0) SoC and R-Car Gen4. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Geert Uytterhoeven --- .../devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml | 4 1 file changed, 4 insertions(+) diff

RE: [PATCH v2 1/2] dt-bindings: iommu: renesas,ipmmu-vmsa: add r8a779f0 support

2022-02-07 Thread Yoshihiro Shimoda
Hi Geert-san, > From: Geert Uytterhoeven, Sent: Monday, February 7, 2022 11:26 PM > > On Fri, Feb 4, 2022 at 2:54 PM Yoshihiro Shimoda > wrote: > > Document the compatible values for the IPMMU-VMSA blocks in > > the Renesas R-Car S4-8 (R8A779F0) SoC and R-Car

[PATCH v2 1/2] dt-bindings: iommu: renesas, ipmmu-vmsa: add r8a779f0 support

2022-02-04 Thread Yoshihiro Shimoda
Document the compatible values for the IPMMU-VMSA blocks in the Renesas R-Car S4-8 (R8A779F0) SoC and R-Car Gen4. Signed-off-by: Yoshihiro Shimoda 3fbefb9570325500dbf3faff80ded6d0d46f48b2 --- .../devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml | 4 1 file changed, 4 insertions

[PATCH v2 2/2] iommu/ipmmu-vmsa: Add support for R-Car Gen4

2022-02-04 Thread Yoshihiro Shimoda
Add support for R-Car Gen4 like r8a779f0 (R-Car S4-8). The IPMMU hardware design of r8a779f0 is the same as r8a779a0. So, rename "r8a779a0" to "rcar_gen4". Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 10 +++--- 1 file changed, 7 insertions(+),

[PATCH v2 0/2] iommu/ipmmu-vmsa: Add support for R-Car Gen4

2022-02-04 Thread Yoshihiro Shimoda
3-1-yoshihiro.shimoda...@renesas.com/ Yoshihiro Shimoda (2): dt-bindings: iommu: renesas,ipmmu-vmsa: add r8a779f0 support iommu/ipmmu-vmsa: Add support for R-Car Gen4 .../devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml | 4 drivers/iommu/ipmmu-vmsa.c |

RE: [PATCH 2/2] iommu/ipmmu-vmsa: Add support for R-Car Gen4

2022-02-02 Thread Yoshihiro Shimoda
Hi Geert-san, > From: Geert Uytterhoeven, Sent: Wednesday, February 2, 2022 8:07 PM > > Hi Shimoda-san, > > On Wed, Feb 2, 2022 at 11:48 AM Yoshihiro Shimoda > wrote: > > > From: Geert Uytterhoeven, Sent: Wednesday, February 2, 2022 6:24 PM > > > On Tu

RE: [PATCH 2/2] iommu/ipmmu-vmsa: Add support for R-Car Gen4

2022-02-02 Thread Yoshihiro Shimoda
Hi Geert-san, Thank you for your review! > From: Geert Uytterhoeven, Sent: Wednesday, February 2, 2022 6:24 PM > > Hi Shimoda-san, > > On Tue, Jan 25, 2022 at 6:36 PM Yoshihiro Shimoda > wrote: > > Add support for R-Car Gen4 like r8a779f0 (R-Car S4-8). The I

RE: [PATCH 1/2] dt-bindings: iommu: renesas, ipmmu-vmsa: add r8a779f0 support

2022-01-27 Thread Yoshihiro Shimoda
Hi Geert-san, Thank you for your review! > From: Geert Uytterhoeven, Sent: Thursday, January 27, 2022 8:06 PM > > Hi Shimoda-san, > > CC Laurent, Magnus. > > On Tue, Jan 25, 2022 at 6:33 PM Yoshihiro Shimoda > wrote: > > Document the compatible va

[PATCH 2/2] iommu/ipmmu-vmsa: Add support for R-Car Gen4

2022-01-25 Thread Yoshihiro Shimoda
Add support for R-Car Gen4 like r8a779f0 (R-Car S4-8). The IPMMU hardware design of r8a779f0 is the same as r8a779a0. So, rename "r8a779a0" to "rcar_gen4". Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 10 +++--- 1 file changed, 7 insertions(+),

[PATCH 0/2] iommu/ipmmu-vmsa: Add support for R-Car Gen4

2022-01-25 Thread Yoshihiro Shimoda
mw eed41500 0xc000 [1] https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git/tag/?h=renesas-drivers-2022-01-11-v5.16 Yoshihiro Shimoda (2): dt-bindings: iommu: renesas,ipmmu-vmsa: add r8a779f0 support iommu/ipmmu-vmsa: Add support for R-Car Gen4 .../devicetree/bindi

[PATCH 1/2] dt-bindings: iommu: renesas, ipmmu-vmsa: add r8a779f0 support

2022-01-25 Thread Yoshihiro Shimoda
Document the compatible values for the IPMMU-VMSA blocks in the Renesas R-Car S4-8 (R8A779F0) SoC and R-Car Gen4. Signed-off-by: Yoshihiro Shimoda --- .../devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree

RE: [PATCH v2 0/2] iommu/ipmmu-vmsa: Add support for r8a779a0

2021-09-20 Thread Yoshihiro Shimoda
Hi Joerg, Will, > From: Yoshihiro Shimoda, Sent: Tuesday, September 7, 2021 5:30 PM > > This patch series adds support for r8a779a0 (R-Car V3U). Would you review this patch series? Best regards, Yoshihiro Shimoda ___ iommu mailing l

[PATCH v2 2/2] iommu/ipmmu-vmsa: Add support for r8a779a0

2021-09-07 Thread Yoshihiro Shimoda
Add support for r8a779a0 (R-Car V3U). The IPMMU hardware design of this SoC differs than others. So, add a new ipmmu_features for it. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Geert Uytterhoeven --- drivers/iommu/ipmmu-vmsa.c | 29 + 1 file changed, 25

[PATCH v2 0/2] iommu/ipmmu-vmsa: Add support for r8a779a0

2021-09-07 Thread Yoshihiro Shimoda
This patch series adds support for r8a779a0 (R-Car V3U). Changes from v1: - Add {Ack,Review}ed-by in the patch 1. - Add support 16 contexts in the patch 2. - Add Reviewed-by in the patch 2. https://lore.kernel.org/all/20210901102705.556093-1-yoshihiro.shimoda...@renesas.com/ Yoshihiro

[PATCH v2 1/2] dt-bindings: iommu: renesas, ipmmu-vmsa: add r8a779a0 support

2021-09-07 Thread Yoshihiro Shimoda
Add support for r8a779a0 (R-Car V3U). Signed-off-by: Yoshihiro Shimoda Acked-by: Rob Herring Reviewed-by: Geert Uytterhoeven --- Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iommu/renesas

RE: [PATCH 2/2] iommu/ipmmu-vmsa: Add support for r8a779a0

2021-09-07 Thread Yoshihiro Shimoda
Hi Geert-san, > From: Geert Uytterhoeven, Sent: Tuesday, September 7, 2021 3:34 PM > > Hi Shimoda-san, > > On Tue, Sep 7, 2021 at 2:02 AM Yoshihiro Shimoda > wrote: > > > From: Geert Uytterhoeven, Sent: Tuesday, September 7, 2021 12:34 AM > > > On Wed, Sep 1

RE: [PATCH 2/2] iommu/ipmmu-vmsa: Add support for r8a779a0

2021-09-06 Thread Yoshihiro Shimoda
Hi Geert-san, > From: Geert Uytterhoeven, Sent: Tuesday, September 7, 2021 12:34 AM > > Hi Shimoda-san, > > On Wed, Sep 1, 2021 at 12:27 PM Yoshihiro Shimoda > wrote: > > Add support for r8a779a0 (R-Car V3U). The IPMMU hardware design > > of this SoC diff

[PATCH 2/2] iommu/ipmmu-vmsa: Add support for r8a779a0

2021-09-01 Thread Yoshihiro Shimoda
Add support for r8a779a0 (R-Car V3U). The IPMMU hardware design of this SoC differs than others. So, add a new ipmmu_features for it. Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers

[PATCH 1/2] dt-bindings: iommu: renesas, ipmmu-vmsa: add r8a779a0 support

2021-09-01 Thread Yoshihiro Shimoda
Add support for r8a779a0 (R-Car V3U). Signed-off-by: Yoshihiro Shimoda --- Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml b/Documentation/devicetree/bindings

[PATCH 0/2] iommu/ipmmu-vmsa: Add support for r8a779a0

2021-09-01 Thread Yoshihiro Shimoda
This patch series adds support for r8a779a0 (R-Car V3U). Yoshihiro Shimoda (2): dt-bindings: iommu: renesas,ipmmu-vmsa: add r8a779a0 support iommu/ipmmu-vmsa: Add support for r8a779a0 .../bindings/iommu/renesas,ipmmu-vmsa.yaml| 1 + drivers/iommu/ipmmu-vmsa.c| 19

RE: [PATCH v3 06/25] iommu/ipmmu-vmsa: Drop IOVA cookie management

2021-08-05 Thread Yoshihiro Shimoda
Hi Robin, > From: Robin Murphy, Sent: Thursday, August 5, 2021 2:16 AM > > The core code bakes its own cookies now. > > CC: Yoshihiro Shimoda > CC: Geert Uytterhoeven > Signed-off-by: Robin Murphy Thank you for the patch! I tested on my environment (r8a77951-salva

RE: [PATCH v3 01/25] iommu: Pull IOVA cookie management into the core

2021-08-05 Thread Yoshihiro Shimoda
e code. > > CC: Marek Szyprowski > CC: Yoshihiro Shimoda > CC: Geert Uytterhoeven > CC: Yong Wu > CC: Heiko Stuebner > CC: Chunyan Zhang > CC: Maxime Ripard > Reviewed-by: Jean-Philippe Brucker > Reviewed-by: Lu Baolu > Signed-off-by: Robin Murphy Tha

RE: next/master bisection: baseline.login on r8a77960-ulcb

2021-02-26 Thread Yoshihiro Shimoda
gt; > well. Thanks for the pointer! > > I also can confirm that changing that to unsigned long fixes the issue. Thank you for the information! I also confirmed that changing the type of max_slots fixed the issue on my environment (r8a77951-salvator-xs.dts with defconfig). Best regards, Yoshihiro Shimoda ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu

RE: [PATCH 2/3] dt-bindings: iommu: renesas,ipmmu-vmsa: Make 'power-domains' conditionally required

2021-02-03 Thread Yoshihiro Shimoda
roperty > > Based on the dts files, a 'power-domains' property only exists on Gen 3 > which can be conditioned on !renesas,ipmmu-vmsa. > > Cc: Joerg Roedel > Cc: Will Deacon > Cc: Yoshihiro Shimoda > Cc: iommu@lists.linux-foundation.org > Signed-off-by: Rob

RE: [PATCH 1/3] dt-bindings: Fix undocumented compatible strings in examples

2021-02-03 Thread Yoshihiro Shimoda
ffery > Cc: Joel Stanley > Cc: Wim Van Sebroeck > Cc: Guenter Roeck > Cc: Yoshihiro Shimoda > Cc: Vincent Cheng > Cc: linux-...@vger.kernel.org > Cc: linux-cry...@vger.kernel.org > Cc: linux-g...@vger.kernel.org > Cc: linux-...@vger.kernel.org > Cc: iommu@lists.l

[PATCH 1/2] iommu/ipmmu-vmsa: refactor ipmmu_of_xlate()

2021-01-28 Thread Yoshihiro Shimoda
Refactor ipmmu_of_xlate() to improve readability/scalability. Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 49 +- 1 file changed, 18 insertions(+), 31 deletions(-) diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu

[PATCH 2/2] iommu/ipmmu-vmsa: Allow SDHI devices

2021-01-28 Thread Yoshihiro Shimoda
Add SDHI devices into devices_allowlist. Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c index 0bdf354..5715fbe 100644 --- a/drivers/iommu/ipmmu-vmsa.c +++ b/drivers

[PATCH 0/2] iommu/ipmmu-vmsa: refactoring and allow SDHI devices

2021-01-28 Thread Yoshihiro Shimoda
I intend to add new SoC support in near the future, but before that, I would like to refactor the ipmmu_of_xlate() to improve readability/scalability. Also, adds SDHI devices into the allow list. Yoshihiro Shimoda (2): iommu/ipmmu-vmsa: refactor ipmmu_of_xlate() iommu/ipmmu-vmsa: Allow SDHI

RE: [PATCH 1/2] dt-bindings: iommu: renesas,ipmmu-vmsa: Add r8a7742 support

2020-08-27 Thread Yoshihiro Shimoda
-by: Chris Paterson > --- Thank you for the patch! Reviewed-by: Yoshihiro Shimoda Best regards, Yoshihiro Shimoda ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu

RE: [PATCH 2/9] iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code

2020-07-15 Thread Yoshihiro Shimoda
Hi Geert-san, > From: Geert Uytterhoeven, Sent: Tuesday, July 14, 2020 9:40 PM > > Hi Shimoda-san, > > On Tue, Jul 14, 2020 at 1:42 PM Yoshihiro Shimoda > wrote: > > > From: Geert Uytterhoeven, Sent: Tuesday, July 14, 2020 5:42 PM > > > On Tue, Jul

RE: [PATCH 2/9] iommu/ipmmu-vmsa: Hook up R8A774E1 DT matching code

2020-07-14 Thread Yoshihiro Shimoda
lso the recent patch to add > > "r8a77961" just adds to soc_rcar_gen3_whitelist. > > Oops, commit 17fe16181639801b ("iommu/renesas: Add support for r8a77961") > did it wrong, too. Thank you for the point it out. We should add r8a77961 to the soc_rcar_gen3[]. However, I don't know why I could not realize this issue... So, I investigated this a little and then, IIUC, glob_match() which soc_device_match() uses seems to return true, if *pat = "r8a7796" and *str = "r8a77961". Best regards, Yoshihiro Shimoda ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu

[PATCH 0/2] iommu/renesas: Add support for r8a77961

2020-06-11 Thread Yoshihiro Shimoda
This patch series is based on next-20200611. Yoshihiro Shimoda (2): dt-bindings: iommu: renesas,ipmmu-vmsa: add r8a77961 support iommu/renesas: Add support for r8a77961 Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml | 1 + drivers/iommu/ipmmu-vmsa.c

[PATCH 1/2] dt-bindings: iommu: renesas, ipmmu-vmsa: add r8a77961 support

2020-06-11 Thread Yoshihiro Shimoda
Add support for r8a77961 (R-Car M3-W+). Signed-off-by: Yoshihiro Shimoda --- Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.yaml b/Documentation/devicetree/bindings

[PATCH 2/2] iommu/renesas: Add support for r8a77961

2020-06-11 Thread Yoshihiro Shimoda
Add support for r8a77961 (R-Car M3-W+). Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c index 4c2972f..b57b1f2 100644 --- a/drivers/iommu/ipmmu-vmsa.c

[PATCH v5] dt-bindings: iommu: renesas, ipmmu-vmsa: convert to json-schema

2020-04-20 Thread Yoshihiro Shimoda
-by: Yoshihiro Shimoda --- Changes from v4: - Fix description about cell counts on #iommu-cells and renesas,ipmmu-main. - Fix node name on the example. https://patchwork.kernel.org/patch/11494231/ Changes from v3: - Fix renesas,ipmmu-r8a7795's section https://patchwork.kernel.org/patch/11494079

RE: [PATCH] dt-bndings: iommu: renesas,ipmmu-vmsa: convert to json-schema

2020-04-20 Thread Yoshihiro Shimoda
Hi Rob, Thank you for the review! > From: Rob Herring, Sent: Tuesday, April 21, 2020 4:27 AM > > On Mon, Apr 13, 2020 at 07:25:33PM +0900, Yoshihiro Shimoda wrote: > > Convert Renesas VMSA-Compatible IOMMU bindings documentation > > to json-schema. > > > >

[PATCH v4] dt-bindings: iommu: renesas, ipmmu-vmsa: convert to json-schema

2020-04-17 Thread Yoshihiro Shimoda
-by: Yoshihiro Shimoda --- Changes from v3: - Fix renesas,ipmmu-r8a7795's section https://patchwork.kernel.org/patch/11494079/ Changes from v2: - Add a description for R-Mobile APE6 on the commit log. - Change renesas,ipmmu-r8a73a4 section on the compatible. - Add items on the interrupts. - Add

RE: [PATCH v3] dt-bindings: iommu: renesas,ipmmu-vmsa: convert to json-schema

2020-04-17 Thread Yoshihiro Shimoda
Hi all, > From: Yoshihiro Shimoda, Sent: Friday, April 17, 2020 1:35 PM > +properties: > + compatible: > +oneOf: > + - items: > + - enum: > + - renesas,ipmmu-r8a73a4 # R-Mobile APE6 > + - renesas,ipmmu-r8a7743 # RZ/G1M &g

[PATCH v3] dt-bindings: iommu: renesas, ipmmu-vmsa: convert to json-schema

2020-04-16 Thread Yoshihiro Shimoda
-by: Yoshihiro Shimoda --- Changes from v2: - Add a description for R-Mobile APE6 on the commit log. - Change renesas,ipmmu-r8a73a4 section on the compatible. - Add items on the interrupts. - Add power-domains to required. - Add oneOf for interrupts and renesas,ipmmu-main https

RE: [PATCH] dt-bndings: iommu: renesas,ipmmu-vmsa: convert to json-schema

2020-04-16 Thread Yoshihiro Shimoda
t. > So they are mutually exclusive: > > oneOf: > - required: > - interrupts > - required: > - renesas,ipmmu-main Thank you! Now I understood it and such the schema is better than mine. I'll fix it. > > Especially, I could find missing renes

RE: [PATCH] dt-bndings: iommu: renesas,ipmmu-vmsa: convert to json-schema

2020-04-16 Thread Yoshihiro Shimoda
Hi Geert-san, Thank you for your review! > From: Geert Uytterhoeven, Sent: Wednesday, April 15, 2020 11:21 PM > > Hi Shimoda-san, > > On Tue, Apr 14, 2020 at 2:26 AM Yoshihiro Shimoda > wrote: > > Convert Renesas VMSA-Compatible IOMMU bindings documentation > >

[PATCH v2] dt-bindings: iommu: renesas, ipmmu-vmsa: convert to json-schema

2020-04-15 Thread Yoshihiro Shimoda
Convert Renesas VMSA-Compatible IOMMU bindings documentation to json-schema. Signed-off-by: Yoshihiro Shimoda --- Changes from v1: - Fix typo in the subject. - Add a description on #iommu-cells. https://patchwork.kernel.org/patch/11485415/ .../bindings/iommu/renesas,ipmmu-vmsa.txt

RE: [PATCH] dt-bndings: iommu: renesas, ipmmu-vmsa: convert to json-schema

2020-04-14 Thread Yoshihiro Shimoda
Hi Robin, > From: Robin Murphy, Sent: Wednesday, April 15, 2020 2:16 AM > > On 2020-04-13 11:25 am, Yoshihiro Shimoda wrote: > [...] > > -Each bus master connected to an IPMMU must reference the IPMMU in its > > device > > -node with the following property: >

[PATCH] dt-bndings: iommu: renesas, ipmmu-vmsa: convert to json-schema

2020-04-13 Thread Yoshihiro Shimoda
Convert Renesas VMSA-Compatible IOMMU bindings documentation to json-schema. Signed-off-by: Yoshihiro Shimoda --- .../bindings/iommu/renesas,ipmmu-vmsa.txt | 73 -- .../bindings/iommu/renesas,ipmmu-vmsa.yaml | 90 ++ 2 files changed, 90

RE: How to fix WARN from drivers/base/dd.c in next-20200401 if CONFIG_MODULES=y?

2020-04-06 Thread Yoshihiro Shimoda
_probe_timeout > 0) > + flush_work(_probe_timeout_work); I'm sorry. This code caused build error because the deferred_probe_timeout_work is struct delayed_work. Also, I don't think using flush_delayed_work() is my expectation (wait until the timeout of deferred)... Best re

RE: How to fix WARN from drivers/base/dd.c in next-20200401 if CONFIG_MODULES=y?

2020-04-06 Thread Yoshihiro Shimoda
Hi John, Geert, > From: John Stultz, Sent: Saturday, April 4, 2020 1:19 PM > > On Fri, Apr 3, 2020 at 4:47 AM Geert Uytterhoeven > wrote: > > On Thu, Apr 2, 2020 at 7:27 PM John Stultz wrote: > > > On Thu, Apr 2, 2020 at 3:17 AM Yoshihiro Shimoda > > > wro

How to fix WARN from drivers/base/dd.c in next-20200401 if CONFIG_MODULES=y?

2020-04-02 Thread Yoshihiro Shimoda
guess the patches will be merged into v5.7-rc1 because the patches are contained from next-20200316, I'd like to fix the issue in v5.7-rcN cycle somehow. [1] - R-Car H3 (r8a77951). - Using defconfig of arch/arm64. -- So, the IOMMU hardware of the environment is not enabled. Best regards, Yoshihiro

[PATCH v3 3/6] iommu/ipmmu-vmsa: Add helper functions for MMU "context" registers

2019-11-05 Thread Yoshihiro Shimoda
Since we will have changed memory mapping of the IPMMU in the future, This patch adds helper functions ipmmu_ctx_{reg,read,write}() for MMU "context" registers. No behavior change. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Geert Uytterhoeven --- drivers/iommu/ipmmu-v

[PATCH v3 4/6] iommu/ipmmu-vmsa: Calculate context registers' offset instead of a macro

2019-11-05 Thread Yoshihiro Shimoda
Since we will have changed memory mapping of the IPMMU in the future, this patch uses ipmmu_features values instead of a macro to calculate context registers offset. No behavior change. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Geert Uytterhoeven --- drivers/iommu/ipmmu-vmsa.c | 11

[PATCH v3 2/6] iommu/ipmmu-vmsa: tidyup register definitions

2019-11-05 Thread Yoshihiro Shimoda
Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 58 -- 1 file changed, 30 insertions(+), 28 deletions(-) diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c index c4ec166..79975e1 100644 --- a/drivers/iommu/ipmmu-vmsa.c +++

[PATCH v3 6/6] iommu/ipmmu-vmsa: Add utlb_offset_base

2019-11-05 Thread Yoshihiro Shimoda
Since we will have changed memory mapping of the IPMMU in the future, this patch adds a utlb_offset_base into struct ipmmu_features for IMUCTR and IMUASID registers. No behavior change. Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 5 - 1 file changed, 4 insertions(+), 1

[PATCH v3 5/6] iommu/ipmmu-vmsa: Add helper functions for "uTLB" registers

2019-11-05 Thread Yoshihiro Shimoda
Since we will have changed memory mapping of the IPMMU in the future, This patch adds helper functions ipmmu_utlb_reg() and ipmmu_imu{asid,ctr}_write() for "uTLB" registers. No behavior change. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Geert Uytterhoeven --- drivers/iommu/ipmmu-v

[PATCH v3 0/6] iommu/ipmmu-vmsa: minor updates

2019-11-05 Thread Yoshihiro Shimoda
/project/linux-renesas-soc/list/?series=184741 Yoshihiro Shimoda (6): iommu/ipmmu-vmsa: Remove all unused register definitions iommu/ipmmu-vmsa: tidyup register definitions iommu/ipmmu-vmsa: Add helper functions for MMU "context" registers iommu/ipmmu-vmsa: Calculate context registe

[PATCH v3 1/6] iommu/ipmmu-vmsa: Remove all unused register definitions

2019-11-05 Thread Yoshihiro Shimoda
To support different registers memory mapping hardware easily in the future, this patch removes all unused register definitions. Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 76 -- 1 file changed, 76 deletions(-) diff --git

[PATCH v2 1/6] iommu/ipmmu-vmsa: Remove all unused register definitions

2019-10-15 Thread Yoshihiro Shimoda
To support different registers memory mapping hardware easily in the future, this patch removes all unused register definitions. Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 76 -- 1 file changed, 76 deletions(-) diff --git

[PATCH v2 5/6] iommu/ipmmu-vmsa: Add helper functions for "uTLB" registers

2019-10-15 Thread Yoshihiro Shimoda
Since we will have changed memory mapping of the IPMMU in the future, This patch adds helper functions ipmmu_utlb_reg() and ipmmu_imu{asid,ctr}_write() for "uTLB" registers. No behavior change. Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 26 +++

[PATCH v2 3/6] iommu/ipmmu-vmsa: Add helper functions for MMU "context" registers

2019-10-15 Thread Yoshihiro Shimoda
Since we will have changed memory mapping of the IPMMU in the future, This patch adds helper functions ipmmu_ctx_{reg,read,write}() for MMU "context" registers. No behavior change. Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 32 +++---

[PATCH v2 6/6] iommu/ipmmu-vmsa: Add utlb_offset_base

2019-10-15 Thread Yoshihiro Shimoda
Since we will have changed memory mapping of the IPMMU in the future, this patch adds a utlb_offset_base into struct ipmmu_features for IMUCTR and IMUASID registers. No behavior change. Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 5 - 1 file changed, 4 insertions(+), 1

[PATCH v2 4/6] iommu/ipmmu-vmsa: Calculate context registers' offset instead of a macro

2019-10-15 Thread Yoshihiro Shimoda
Since we will have changed memory mapping of the IPMMU in the future, this patch uses ipmmu_features values instead of a macro to calculate context registers offset. No behavior change. Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 11 --- 1 file changed, 8

[PATCH v2 0/6] iommu/ipmmu-vmsa: minor updates

2019-10-15 Thread Yoshihiro Shimoda
, add comments to the register definitions and add some helper functions. https://patchwork.kernel.org/project/linux-renesas-soc/list/?series=184741 Yoshihiro Shimoda (6): iommu/ipmmu-vmsa: Remove all unused register definitions iommu/ipmmu-vmsa: tidyup register definitions iommu/ipmmu-vmsa

[PATCH v2 2/6] iommu/ipmmu-vmsa: tidyup register definitions

2019-10-15 Thread Yoshihiro Shimoda
Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 58 -- 1 file changed, 30 insertions(+), 28 deletions(-) diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c index 89d2a5f..35aae24 100644 --- a/drivers/iommu/ipmmu-vmsa.c +++

RE: [PATCH 3/3] iommu/ipmmu-vmsa: Add utlb_offset_base

2019-10-14 Thread Yoshihiro Shimoda
Hi Geert-san, > From: Geert Uytterhoeven, Sent: Friday, October 11, 2019 9:32 PM > > Hi Shimoda-san, > > On Wed, Oct 9, 2019 at 10:27 AM Yoshihiro Shimoda > wrote: > > Since we will have changed memory mapping of the IPMMU in the future, > > this patch adds

RE: [PATCH 2/3] iommu/ipmmu-vmsa: Calculate context registers' offset instead of a macro

2019-10-14 Thread Yoshihiro Shimoda
Hi Geert-san, > From: Geert Uytterhoeven, Sent: Friday, October 11, 2019 9:29 PM > > Hi Shimoda-san, > > On Wed, Oct 9, 2019 at 10:27 AM Yoshihiro Shimoda > wrote: > > Since we will have changed memory mapping of the IPMMU in the future, > > this patch uses

RE: [PATCH 1/3] iommu/ipmmu-vmsa: Remove some unused register declarations

2019-10-14 Thread Yoshihiro Shimoda
Hi Geert-san, > From: Geert Uytterhoeven, Sent: Friday, October 11, 2019 9:11 PM > > Hi Shimoda-san, > > Thanks for your patch! > > On Wed, Oct 9, 2019 at 10:27 AM Yoshihiro Shimoda > wrote: > > To support different registers memory mapping hardware easily

[PATCH 2/3] iommu/ipmmu-vmsa: Calculate context registers' offset instead of a macro

2019-10-09 Thread Yoshihiro Shimoda
Since we will have changed memory mapping of the IPMMU in the future, this patch uses ipmmu_features values instead of a macro to calculate context registers offset. No behavior change. Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 27 +++ 1 file

[PATCH 1/3] iommu/ipmmu-vmsa: Remove some unused register declarations

2019-10-09 Thread Yoshihiro Shimoda
To support different registers memory mapping hardware easily in the future, this patch removes some unused register declarations. Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers

[PATCH 3/3] iommu/ipmmu-vmsa: Add utlb_offset_base

2019-10-09 Thread Yoshihiro Shimoda
Since we will have changed memory mapping of the IPMMU in the future, this patch adds a utlb_offset_base into struct ipmmu_features for IMUCTR and IMUASID registers. No behavior change. Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/ipmmu-vmsa.c | 14 +++--- 1 file changed, 11

[PATCH 0/3] iommu/ipmmu-vmsa: minor updates

2019-10-09 Thread Yoshihiro Shimoda
This patch series is based on the latest iommu.git / next branch to modify the driver in the future's new hardware. Yoshihiro Shimoda (3): iommu/ipmmu-vmsa: Remove some unused register declarations iommu/ipmmu-vmsa: Calculate context registers' offset instead of a macro iommu/ipmmu-vmsa

RE: [PATCH] iommu/ipmmu-vmsa: Only call platform_get_irq() when interrupt is mandatory

2019-10-01 Thread Yoshihiro Shimoda
s is a fix for v5.4-rc1. > --- Thank you for the patch! Reviewed-by: Yoshihiro Shimoda And, I tested this patch on R-Car H3. So, Tested-by: Yoshihiro Shimoda Best regards, Yoshihiro Shimoda ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu

RE: [PATCH v10 3/4] block: add a helper function to merge the segments

2019-09-03 Thread Yoshihiro Shimoda
ied it to the dma-mapping tree for 5.4 now, thanks a lot! Thank you very much for your support! Best regards, Yoshihiro Shimoda ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu

RE: [PATCH v10 3/4] block: add a helper function to merge the segments

2019-09-02 Thread Yoshihiro Shimoda
AM > > On 8/28/19 6:35 AM, Yoshihiro Shimoda wrote: > > This patch adds a helper function whether a queue can merge > > the segments by the DMA MAP layer (e.g. via IOMMU). > > Reviewed-by: Jens Axboe Jens, thank you for your review! Best regards, Yoshihiro Shimoda

[PATCH v10 4/4] mmc: queue: Use bigger segments if DMA MAP layer can merge the segments

2019-08-28 Thread Yoshihiro Shimoda
When the max_segs of a mmc host is smaller than 512, the mmc subsystem tries to use 512 segments if DMA MAP layer can merge the segments, and then the mmc subsystem exposes such information to the block layer by using blk_queue_can_use_dma_map_merging(). Signed-off-by: Yoshihiro Shimoda Reviewed

[PATCH v10 2/4] iommu/dma: Add a new dma_map_ops of get_merge_boundary()

2019-08-28 Thread Yoshihiro Shimoda
This patch adds a new dma_map_ops of get_merge_boundary() to expose the DMA merge boundary if the domain type is IOMMU_DOMAIN_DMA. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Simon Horman Acked-by: Joerg Roedel --- drivers/iommu/dma-iommu.c | 8 1 file changed, 8 insertions

[PATCH v10 1/4] dma: Introduce dma_get_merge_boundary()

2019-08-28 Thread Yoshihiro Shimoda
This patch adds a new DMA API "dma_get_merge_boundary". This function returns the DMA merge boundary if the DMA layer can merge the segments. This patch also adds the implementation for a new dma_map_ops pointer. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Christoph Hellwig Reviewed

[PATCH v10 3/4] block: add a helper function to merge the segments

2019-08-28 Thread Yoshihiro Shimoda
This patch adds a helper function whether a queue can merge the segments by the DMA MAP layer (e.g. via IOMMU). Signed-off-by: Yoshihiro Shimoda Reviewed-by: Christoph Hellwig Reviewed-by: Simon Horman #include #include +#include #include "blk.h" #include "blk-wbt.h&quo

[PATCH v10 0/4] treewide: improve R-Car SDHI performance

2019-08-28 Thread Yoshihiro Shimoda
hanges 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. Yoshihiro Shimoda (4): dma: Introduce dma_get_merge_boundary() iommu/dma: Add a new dma_map_ops of get_merge_boundary() block: add a helper function to merge the se

RE: [PATCH v9 3/5] block: sort headers on blk-setting.c

2019-08-19 Thread Yoshihiro Shimoda
Hi Jens, > From: Jens Axboe, Sent: Monday, August 19, 2019 11:54 PM > > On 8/16/19 1:50 PM, Wolfram Sang wrote: > > On Fri, Jul 26, 2019 at 05:31:14PM +0900, Yoshihiro Shimoda wrote: > >> This patch sorts the headers in alphabetic order to ease > >&

RE: [PATCH v9 2/5] iommu/dma: Add a new dma_map_ops of get_merge_boundary()

2019-08-19 Thread Yoshihiro Shimoda
Hi Robin, > From: Robin Murphy, Sent: Monday, August 19, 2019 9:55 PM > > On 26/07/2019 09:31, Yoshihiro Shimoda wrote: > > This patch adds a new dma_map_ops of get_merge_boundary() to > > expose the DMA merge boundary if the domain type is IOMMU_DOMAIN_DMA. > > &

[PATCH v9 3/5] block: sort headers on blk-setting.c

2019-07-26 Thread Yoshihiro Shimoda
This patch sorts the headers in alphabetic order to ease the maintenance for this part. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Wolfram Sang Reviewed-by: Simon Horman --- block/blk-settings.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/block/blk

[PATCH v9 4/5] block: add a helper function to merge the segments

2019-07-26 Thread Yoshihiro Shimoda
This patch adds a helper function whether a queue can merge the segments by the DMA MAP layer (e.g. via IOMMU). Signed-off-by: Yoshihiro Shimoda Reviewed-by: Christoph Hellwig Reviewed-by: Simon Horman --- block/blk-settings.c | 22 ++ include/linux/blkdev.h | 2 ++ 2

[PATCH v9 1/5] dma: Introduce dma_get_merge_boundary()

2019-07-26 Thread Yoshihiro Shimoda
This patch adds a new DMA API "dma_get_merge_boundary". This function returns the DMA merge boundary if the DMA layer can merge the segments. This patch also adds the implementation for a new dma_map_ops pointer. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Christoph Hellwig Reviewed

[PATCH v9 0/5] treewide: improve R-Car SDHI performance

2019-07-26 Thread Yoshihiro Shimoda
on patch 1 and 3. - Check if R-Car Gen3 IPMMU is used or not on patch 3. Yoshihiro Shimoda (5): dma: Introduce dma_get_merge_boundary() iommu/dma: Add a new dma_map_ops of get_merge_boundary() block: sort headers on blk-setting.c block: add a helper function to merge the segments mmc: queue:

[PATCH v9 5/5] mmc: queue: Use bigger segments if DMA MAP layer can merge the segments

2019-07-26 Thread Yoshihiro Shimoda
When the max_segs of a mmc host is smaller than 512, the mmc subsystem tries to use 512 segments if DMA MAP layer can merge the segments, and then the mmc subsystem exposes such information to the block layer by using blk_queue_can_use_dma_map_merging(). Signed-off-by: Yoshihiro Shimoda Reviewed

[PATCH v9 2/5] iommu/dma: Add a new dma_map_ops of get_merge_boundary()

2019-07-26 Thread Yoshihiro Shimoda
This patch adds a new dma_map_ops of get_merge_boundary() to expose the DMA merge boundary if the domain type is IOMMU_DOMAIN_DMA. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Simon Horman --- drivers/iommu/dma-iommu.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers

RE: [PATCH v8 2/5] iommu/dma: Add a new dma_map_ops of get_merge_boundary()

2019-07-26 Thread Yoshihiro Shimoda
Hello! > From: Sergei Shtylyov, Sent: Tuesday, July 23, 2019 5:17 PM > > Hello! > > On 23.07.2019 8:26, Yoshihiro Shimoda wrote: > > > This patch adds a new dma_map_ops of get_merge_boundary() to > > expose the DMA merge boundary if the domain type is IOMMU_

[PATCH v8 5/5] mmc: queue: Use bigger segments if DMA MAP layer can merge the segments

2019-07-22 Thread Yoshihiro Shimoda
When the max_segs of a mmc host is smaller than 512, the mmc subsystem tries to use 512 segments if DMA MAP layer can merge the segments, and then the mmc subsystem exposes such information to the block layer by using blk_queue_can_use_dma_map_merging(). Signed-off-by: Yoshihiro Shimoda Reviewed

[PATCH v8 3/5] block: sort headers on blk-setting.c

2019-07-22 Thread Yoshihiro Shimoda
This patch sorts the headers in alphabetic order to ease the maintenance for this part. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Wolfram Sang --- block/blk-settings.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/block/blk-settings.c b/block/blk

[PATCH v8 0/5] treewide: improve R-Car SDHI performance

2019-07-22 Thread Yoshihiro Shimoda
se a helper function device_iommu_mapped on patch 1 and 3. - Check if R-Car Gen3 IPMMU is used or not on patch 3. Yoshihiro Shimoda (5): dma: Introduce dma_get_merge_boundary() iommu/dma: Add a new dma_map_ops of get_merge_boundary() block: sort headers on blk-setting.c block: add a help

[PATCH v8 1/5] dma: Introduce dma_get_merge_boundary()

2019-07-22 Thread Yoshihiro Shimoda
This patch adds a new DMA API "dma_get_merge_boundary". This function returns the DMA merge boundary if the DMA layer can merge the segments. This patch also adds the implementation for a new dma_map_ops pointer. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Christoph Hellwig --- Doc

[PATCH v8 4/5] block: add a helper function to merge the segments

2019-07-22 Thread Yoshihiro Shimoda
This patch adds a helper function whether a queue can merge the segments by the DMA MAP layer (e.g. via IOMMU). Signed-off-by: Yoshihiro Shimoda Reviewed-by: Christoph Hellwig --- block/blk-settings.c | 22 ++ include/linux/blkdev.h | 2 ++ 2 files changed, 24 insertions

[PATCH v8 2/5] iommu/dma: Add a new dma_map_ops of get_merge_boundary()

2019-07-22 Thread Yoshihiro Shimoda
This patch adds a new dma_map_ops of get_merge_boundary() to expose the DMA merge boundary if the domain type is IOMMU_DOMAIN_DMA. Signed-off-by: Yoshihiro Shimoda --- drivers/iommu/dma-iommu.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/drivers/iommu/dma-iommu.c b/drivers

[RFC PATCH v7 4/5] block: add a helper function to merge the segments

2019-06-20 Thread Yoshihiro Shimoda
This patch adds a helper function whether a queue can merge the segments by the DMA MAP layer (e.g. via IOMMU). Signed-off-by: Yoshihiro Shimoda --- block/blk-settings.c | 22 ++ include/linux/blkdev.h | 2 ++ 2 files changed, 24 insertions(+) diff --git a/block/blk

[RFC PATCH v7 0/5] treewide: improve R-Car SDHI performance

2019-06-20 Thread Yoshihiro Shimoda
mc_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 Yoshihiro Shimoda (5): dma: Introduce dma_get

[RFC PATCH v7 1/5] dma: Introduce dma_get_merge_boundary()

2019-06-20 Thread Yoshihiro Shimoda
This patch adds a new DMA API "dma_get_merge_boundary". This function returns the DMA merge boundary if the DMA layer can merge the segments. This patch also adds the implementation for a new dma_map_ops pointer. Signed-off-by: Yoshihiro Shimoda --- Documentation/DMA-API.

[RFC PATCH v7 3/5] block: sort headers on blk-setting.c

2019-06-20 Thread Yoshihiro Shimoda
This patch sorts the headers in alphabetic order to ease the maintenance for this part. Signed-off-by: Yoshihiro Shimoda Reviewed-by: Wolfram Sang --- block/blk-settings.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/block/blk-settings.c b/block/blk

[RFC PATCH v7 5/5] mmc: queue: Use bigger segments if DMA MAP layer can merge the segments

2019-06-20 Thread Yoshihiro Shimoda
When the max_segs of a mmc host is smaller than 512, the mmc subsystem tries to use 512 segments if DMA MAP layer can merge the segments, and then the mmc subsystem exposes such information to the block layer by using blk_queue_can_use_dma_map_merging(). Signed-off-by: Yoshihiro Shimoda

  1   2   >