Re: [PATCH 4/5] sh: split arch/sh/mm/consistent.c

2018-07-23 Thread jacopo mondi
Hi Christoph, I have a single comment on something I noticed which might be an implementation bug. On the overall patch architecture, it's very hard for me to provide a valuable opinion as it's all relatively new for me here :) On Thu, Jul 19, 2018 at 06:05:15AM -0700, Christoph Hellwig wrote: >

[RESEND 6/6] iommu/ipmmu-vmsa: Document R-Car V3H and E3 IPMMU DT bindings

2018-06-14 Thread Jacopo Mondi
From: Magnus Damm Update the IPMMU DT binding documentation to include the compat strings for the IPMMU devices included in the R-Car V3H and E3 SoCs. Signed-off-by: Magnus Damm Reviewed-by: Simon Horman Acked-by: Rob Herring Reviewed-by: Geert Uytterhoeven --- Documentation/devicetree/bind

[RESEND 4/6] dt-bindings: iommu/ipmmu-vmsa: Add R-Car M3-N (R8A77965)

2018-06-14 Thread Jacopo Mondi
Add Renesas R-Car M3-N (R8A77965) compat string to IPMMU DT bindings documentation. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.txt | 1 + 1 file changed, 1 insertion(+) diff --git a

[RESEND 3/6] iommu/ipmmu-vmsa: Hook up r8a779(70|95) DT matching code

2018-06-14 Thread Jacopo Mondi
-by: Jacopo Mondi Signed-off-by: Simon Horman Reviewed-by: Geert Uytterhoeven --- drivers/iommu/ipmmu-vmsa.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c index 04c8015..933a3da 100644 --- a/drivers/iommu/ipmmu-vmsa.c +++ b

[RESEND 2/6] iommu/ipmmu-vmsa: Hook up r8a7796 DT matching code

2018-06-14 Thread Jacopo Mondi
From: Magnus Damm Support the r8a7796 IPMMU by sharing feature flags between r8a7795 and r8a7796. Also update IOMMU_OF_DECLARE to hook up the updated compat string. [rebased on v4.17] Signed-off-by: Jacopo Mondi Signed-off-by: Magnus Damm Reviewed-by: Geert Uytterhoeven --- drivers/iommu

[RESEND 0/6] iommu: ipmmu-vmsa: Add more Gen3 SoCs support

2018-06-14 Thread Jacopo Mondi
/reviewed by, if nothing big happens they should be ready to be collected. Thanks j Jacopo Mondi (2): dt-bindings: iommu/ipmmu-vmsa: Add R-Car M3-N (R8A77965) iommu/ipmmu-vmsa: Hook up R8A77965 DT matching code Magnus Damm (3): iommu/ipmmu-vmsa: Increase maximum micro-TLBS to 48 iommu

[RESEND 5/6] iommu/ipmmu-vmsa: Hook up R8A77965 DT matching code

2018-06-14 Thread Jacopo Mondi
Add support for R-Car M3-N (R8A77965) SoC IPMMUs. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven --- drivers/iommu/ipmmu-vmsa.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c index 933a3da..6a0e714 100644 --- a

[RESEND 1/6] iommu/ipmmu-vmsa: Increase maximum micro-TLBS to 48

2018-06-14 Thread Jacopo Mondi
From: Magnus Damm Bump up the maximum numbers of micro-TLBS to 48. Each IPMMU device instance get micro-TLB assignment via the "iommus" property in DT. Older SoCs tend to use a maximum number of 32 micro-TLBs per IPMMU instance however newer SoCs such as r8a7796 make use of up to 48 micro-TLBs.

[PATCH v2] base: dma-mapping: Postpone cpu addr translation on mmap()

2018-04-13 Thread Jacopo Mondi
model, assuming a struct page is always assigned to a memory address lead to unexpected hangs during the virtual to page address translation. This patch fixes that specific issue but applies in the general case too. Suggested-by: Laurent Pinchart Signed-off-by: Jacopo Mondi --- It has now been clar

Re: [PATCH] base: dma-mapping: Postpone cpu addr translation on mmap()

2018-04-13 Thread jacopo mondi
Hello again, On Tue, Apr 10, 2018 at 09:57:52AM +0200, jacopo mondi wrote: > Hi Christoph, > > On Mon, Apr 09, 2018 at 10:52:51AM -0700, Christoph Hellwig wrote: > > On Mon, Apr 09, 2018 at 06:59:08PM +0200, Jacopo Mondi wrote: > > > I'm still a b

Re: [PATCH] base: dma-mapping: Postpone cpu addr translation on mmap()

2018-04-10 Thread jacopo mondi
Hi Christoph, On Mon, Apr 09, 2018 at 10:52:51AM -0700, Christoph Hellwig wrote: > On Mon, Apr 09, 2018 at 06:59:08PM +0200, Jacopo Mondi wrote: > > I'm still a bit puzzled on what happens if dma_mmap_from_dev_coherent() > > fails. > > Does a dma_mmap_from_dev_coherent(

[PATCH] base: dma-mapping: Postpone cpu addr translation on mmap()

2018-04-09 Thread Jacopo Mondi
not backed by the page infrastructure. It does apply to the general case though, as an early translation is anyhow incorrect and shall be postponed after trying to map memory from the device coherent memory pool first. Suggested-by: Laurent Pinchart Signed-off-by: Jacopo Mondi --- Compared to

Re: [RFC v2 2/2] base: dma-mapping: Postpone page_to_pfn() on mmap()

2018-04-09 Thread jacopo mondi
Hi Robin, Laurent, a long time passed, sorry about this. On Wed, Nov 15, 2017 at 01:38:23PM +, Robin Murphy wrote: > On 14/11/17 17:08, Jacopo Mondi wrote: > >On SH4 architecture, with SPARSEMEM memory model, translating page to > >pfn hangs the CPU. Post-pone translati

Re: [PATCH 0/8] R-Car M3-N: Enable EtherAVB device node

2018-02-27 Thread jacopo mondi
Hi Geert, On Mon, Feb 26, 2018 at 07:28:47PM +0100, Geert Uytterhoeven wrote: > Hi Jacopo, > > On Mon, Feb 26, 2018 at 6:57 PM, Jacopo Mondi > wrote: > > as discussed with you Sergei and Geert, in order to enable EtherAVB for > > R8A77965 we first wanted to make the

[PATCH 3/8] arm64: dts: renesas: r8a7795: Set EtherAVB phy mode to "rgmii"

2018-02-26 Thread Jacopo Mondi
Set the "phy-mode" property of EtherAVB device to "rgmii" and let board files override it if the installed PHY layer provides delays for the RX/TX channels. Signed-off-by: Jacopo Mondi --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH 2/8] arm64: dts: renesas: r8a7796: Set EtherAVB phy mode to "rgmii"

2018-02-26 Thread Jacopo Mondi
Set the "phy-mode" property of EtherAVB device to "rgmii" and let board files override it if the installed PHY layer provides delays for the RX/TX channels. Signed-off-by: Jacopo Mondi --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH 1/8] arm64: dts: renesas: salvator-common: Override EtherAVB phy-mode

2018-02-26 Thread Jacopo Mondi
erride that. Signed-off-by: Jacopo Mondi --- arch/arm64/boot/dts/renesas/salvator-common.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/renesas/salvator-common.dtsi b/arch/arm64/boot/dts/renesas/salvator-common.dtsi index 8e8ec30..c725f9b 100644 --- a/arch/ar

[PATCH 6/8] iommu/ipmmu-vmsa: Hook up R8A77965 DT matching code

2018-02-26 Thread Jacopo Mondi
Add support for R-Car M3-N (R8A77965) SoC IPMMUs. Signed-off-by: Jacopo Mondi --- drivers/iommu/ipmmu-vmsa.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/iommu/ipmmu-vmsa.c b/drivers/iommu/ipmmu-vmsa.c index 933a3da..6a0e714 100644 --- a/drivers/iommu/ipmmu-vmsa.c +++ b

[PATCH 5/8] dt-bindings: iommu/ipmmu-vmsa: Add R-Car M3-N (R8A77965)

2018-02-26 Thread Jacopo Mondi
Add Renesas R-Car M3-N (R8A77965) compat string to IPMMU DT bindings documentation. Signed-off-by: Jacopo Mondi --- Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iommu/renesas,ipmmu-vmsa.txt

[PATCH 8/8] arm64: dts: renesas: r8a77965: Add EtherAVB device node

2018-02-26 Thread Jacopo Mondi
Populate the ethernet@e680 device node to enable Ethernet interface for R-Car M3-N (R8A77965) SoC. Signed-off-by: Jacopo Mondi Reviewed-by: Geert Uytterhoeven --- v1 -> v2: - Replace ALWAYS_ON power area identifier with numeric constant --- arch/arm64/boot/dts/renesas/r8a77965.dtsi |

[PATCH 7/8] arm64: dts: renesas: r8a77965: Add IPMMU mm and ds0 blocks

2018-02-26 Thread Jacopo Mondi
Add IPMMU device nodes for mm and ds0 domains. "ipmmu_ds0" is a dependency for EtherAVB enablement and it has "ipmmu_mm" as it main ipmmu. Signed-off-by: Jacopo Mondi --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 17 + 1 file changed, 17 insertions(+) dif

[PATCH 4/8] arm64: dts: renesas: r8a77995: Set EtherAVB phy mode to "rgmii"

2018-02-26 Thread Jacopo Mondi
Set the "phy-mode" property of EtherAVB device to "rgmii" and let board files override it if the installed PHY layer provides delays for the RX/TX channels. Signed-off-by: Jacopo Mondi --- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 2 +- 1 file changed, 1 insertion(+),

[PATCH 0/8] R-Car M3-N: Enable EtherAVB device node

2018-02-26 Thread Jacopo Mondi
itial support - EtherAVB + DTS fixes). A branch for testing is available at git://jmondi.org/linux m3-n/renesas-drivers-2018-02-13-v4.16-rc1/v2-simon Thanks j Jacopo Mondi (8): arm64: dts: renesas: salvator-common: Override EtherAVB phy-mode arm64: dts: renesas: r8a7796: Set EtherAVB ph

[PATCH v2 0/2] Migo-R: reserve memory block with memblock APIs

2017-11-14 Thread Jacopo Mondi
H4 architecture, but please do not consider that patch for inclusion for now. Thanks j Jacopo Mondi (2): sh: migor: Reserve memory block for CEU base: dma-mapping: Postpone page_to_pfn() on mmap() arch/sh/boards/mach-migor/setup.c | 29 +++-- drivers/base/dma-mappin

[PATCH v2 1/2] sh: migor: Reserve memory block for CEU

2017-11-14 Thread Jacopo Mondi
. This is similar to what happens on ARM architecture with 'arm_memblock_steal()' function. Suggested-by: Laurent Pinchart Signed-off-by: Jacopo Mondi --- arch/sh/boards/mach-migor/setup.c | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/arch/sh

[RFC v2 2/2] base: dma-mapping: Postpone page_to_pfn() on mmap()

2017-11-14 Thread Jacopo Mondi
mit a proper fix mainline. Not sending for inclusion at the moment. Suggested-by: Laurent Pinchart Signed-off-by: Jacopo Mondi --- drivers/base/dma-mapping.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/base/dma-mapping.c b/drivers/base/dma-mapping.c index e5