Re: [PATCH v8 11/14] iommu/rockchip: Use OF_IOMMU to attach devices automatically

2018-03-25 Thread Daniel Kurtz
u_ops = { > .add_device = rk_iommu_add_device, > .remove_device = rk_iommu_remove_device, > .iova_to_phys = rk_iommu_iova_to_phys, > + .device_group = generic_device_group, > .pgsize_bitmap = RK_IOMMU_PGSIZE_BITMAP, > + .of_xlate

Re: [PATCH] iommu/dma: Map scatterlists more parsimoniously

2016-02-01 Thread Daniel Kurtz
On Thu, Dec 10, 2015 at 8:49 PM, Daniel Kurtz wrote: > On Thu, Nov 12, 2015 at 1:47 PM, Yong Wu wrote: >> On Wed, 2015-11-11 at 14:54 +, Robin Murphy wrote: >>> Whilst blindly assuming the worst case for segment boundaries and >>> aligning every segment individuall

Re: [PATCH v8 5/5] dts: mt8173: Add iommu/smi nodes for mt8173

2016-01-28 Thread Daniel Kurtz via iommu
On Tue, Jan 26, 2016 at 12:12 PM, Yong Wu wrote: > This patch add the iommu/larbs nodes for mt8173 > > Signed-off-by: Yong Wu Reviewed-by: Daniel Kurtz ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.or

Re: [PATCH v8 3/5] memory: mediatek: Add SMI driver

2016-01-28 Thread Daniel Kurtz via iommu
abel Reviewed-by: Daniel Kurtz Tested-by: Daniel Kurtz Thanks! ___ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu

Re: [PATCH v6 3/5] memory: mediatek: Add SMI driver

2015-12-14 Thread Daniel Kurtz
Hi Yong, On Tue, Dec 15, 2015 at 10:38 AM, Yong Wu wrote: > On Mon, 2015-12-14 at 19:18 +0100, Matthias Brugger wrote: >> On Tuesday 08 Dec 2015 17:49:11 Yong Wu wrote: >> > This patch add SMI(Smart Multimedia Interface) driver. This driver >> > is responsible to enable/disable iommu and control

Re: [PATCH] iommu/dma: Map scatterlists more parsimoniously

2015-12-10 Thread Daniel Kurtz
head-start on >> checking whether it also helps the media folks with the v4l portability >> issues they're up against (I'm confident it should). If all goes well I >> figure I'll repost next week based on rc1 instead of some random local >> developmen

Re: [PATCH v6 1/3] iommu: Implement common IOMMU ops for DMA mapping

2015-11-02 Thread Daniel Kurtz
+Tomasz, so he can reply to the thread +Marek and Russell as recommended by Tomasz On Oct 30, 2015 22:27, "Robin Murphy" wrote: > > Hi Dan, > > On 30/10/15 01:17, Daniel Kurtz wrote: >> >> +linux-media & VIDEOBUF2 FRAMEWORK maintainers since this is about

Re: [PATCH v6 1/3] iommu: Implement common IOMMU ops for DMA mapping

2015-10-29 Thread Daniel Kurtz
+linux-media & VIDEOBUF2 FRAMEWORK maintainers since this is about the v4l2-contig's usage of the DMA API. Hi Robin, On Tue, Oct 27, 2015 at 12:55 AM, Robin Murphy wrote: > On 26/10/15 13:44, Yong Wu wrote: >> >> On Thu, 2015-10-01 at 20:13 +0100, Robin Murphy wrote: >> [...] >>> >>> +/* >>> + *

Re: [PATCH v5 2/3] arm64: Add IOMMU dma_ops

2015-09-22 Thread Daniel Kurtz via iommu
Hi Robin, On Sat, Aug 1, 2015 at 1:18 AM, Robin Murphy wrote: > Taking some inspiration from the arch/arm code, implement the > arch-specific side of the DMA mapping ops using the new IOMMU-DMA layer. > > Unfortunately the device setup code has to start out as a big ugly mess > in order to work u

Re: [PATCH v2] CHROMIUM: iommu: rockchip: Make sure that page table state is coherent

2015-04-23 Thread Daniel Kurtz
e possibly running at the same time and > triggering IOMMU look-ups, which could bring back the page tables back > to the cache. > > To fix both issues, this patch makes the mapping code zap first and last > (if they are different) IOVAs of new mapping after the page table is > updated. &g

Re: [PATCH 1/5] soc: mediatek: Add SMI driver

2015-03-09 Thread Daniel Kurtz
Hi Yong, On Fri, Mar 6, 2015 at 6:37 PM, wrote: > From: Yong Wu > > This patch add SMI(Smart Multimedia Interface) driver. This driver > is responsible to enable/disable iommu and control the clocks of each > local arbiter. High-level: Is there more to the smi (or smi-larb) driver, or is i

Re: [PATCH 1/2] iommu: move pgsize_bitmap from struct iommu_ops to struct iommu_domain

2015-03-07 Thread Daniel Kurtz
e field from iommu_ops into the iommu_domain and > updates all users accordingly. > > Signed-off-by: Will Deacon > For the rockchip iommu part: Acked-by: Daniel Kurtz > --- > drivers/iommu/amd_iommu.c | 2 +- > drivers/iommu/arm-smmu.c| 12

Re: [PATCH 5/5] dts: mt8173: Add iommu/smi nodes for mt8173

2015-03-07 Thread Daniel Kurtz
Hi Yong, On Fri, Mar 6, 2015 at 6:48 PM, wrote: > From: Yong Wu > > This patch add the iommu/larbs nodes for mt8173 > > Signed-off-by: Yong Wu > --- > arch/arm64/boot/dts/mediatek/mt8173.dtsi | 60 > include/dt-bindings/iommu/mt8173-iommu-port.h | 127 > +++

[PATCH v7 1/3] iommu/rockchip: rk3288 iommu driver

2014-11-02 Thread Daniel Kurtz
ice device tree nodes for "iommus" property - store platform device pointer as group iommudata - Check for existence of iommu group instead of relying on a dev_get_drvdata() to return NULL for a NULL device. v7: - fixup some strings. - In rk_iommu_disable_paging() #

Re: [PATCH v6 1/3] iommu/rockchip: rk3288 iommu driver

2014-10-28 Thread Daniel Kurtz
Heiko, Does this version work for you on 3.18-rc1? On Oct 27, 2014 8:44 PM, "Daniel Kurtz" wrote: > The rk3288 has several iommus. Each iommu belongs to a single master > device. There is one device (ISP) that has two slave iommus, but that > case is not yet supported by

[PATCH v6 1/3] iommu/rockchip: rk3288 iommu driver

2014-10-27 Thread Daniel Kurtz
platform_device device tree nodes for "iommus" property - store platform device pointer as group iommudata - Check for existence of iommu group instead of relying on a dev_get_drvdata() to return NULL for a NULL device. Signed-off-by: Daniel Kurtz Signed-off-by: Simon

Re: [PATCH v5 1/3] iommu/rockchip: rk3288 iommu driver

2014-10-27 Thread Daniel Kurtz
On Mon, Oct 27, 2014 at 4:32 AM, Heiko Stübner wrote: > Hi Daniel, > > Am Freitag, 24. Oktober 2014, 15:33:47 schrieb Daniel Kurtz: > > [...] > >> +static int rk_iommu_attach_device(struct iommu_domain *domain, >> + struct device *dev)

[PATCH v5 1/3] iommu/rockchip: rk3288 iommu driver

2014-10-24 Thread Daniel Kurtz
domain and therefore point to the same page table. Thus, the iommu domain maintains a list of iommu devices which are attached. This driver relies on the iommu core to ensure that all devices have detached before destroying a domain. Signed-off-by: Daniel Kurtz Signed-off-by: Simon Xue Revie

Re: [PATCH 0/3] Rockchip IOMMU driver and devicetree bindings

2014-10-23 Thread Daniel Kurtz
On Wed, Oct 22, 2014 at 11:20 PM, Joerg Roedel wrote: > On Wed, Oct 01, 2014 at 06:20:40PM +0800, Daniel Kurtz wrote: >> Add a driver and devicetree bindings for the IOMMU found in Rockchip RK3288 >> SoCs. >> >> Daniel Kurtz (3): >> iommu/rockchip: rk3288 iom

Re: [PATCH 0/3] Rockchip IOMMU driver and devicetree bindings

2014-10-23 Thread Daniel Kurtz
On Wed, Oct 22, 2014 at 11:20 PM, Joerg Roedel wrote: > On Wed, Oct 01, 2014 at 06:20:40PM +0800, Daniel Kurtz wrote: > > Add a driver and devicetree bindings for the IOMMU found in Rockchip > RK3288 > > SoCs. > > > > Daniel Kurtz (3): > > iommu/rockchip: r

Re: [PATCH v5 1/3] iommu/rockchip: rk3288 iommu driver

2014-10-16 Thread Daniel Kurtz
On Tue, Oct 14, 2014 at 4:02 PM, Daniel Kurtz wrote: > The rk3288 has several iommus. Each iommu belongs to a single master > device. There is one device (ISP) that has two slave iommus, but that > case is not yet supported by this driver. > > At subsys init, the iommu driver r

[PATCH v5 1/3] iommu/rockchip: rk3288 iommu driver

2014-10-14 Thread Daniel Kurtz
domain and therefore point to the same page table. Thus, the iommu domain maintains a list of iommu devices which are attached. This driver relies on the iommu core to ensure that all devices have detached before destroying a domain. Signed-off-by: Daniel Kurtz Signed-off-by: Simon Xue Revie

[PATCH v4 1/3] iommu/rockchip: rk3288 iommu driver

2014-10-14 Thread Daniel Kurtz
domain and therefore point to the same page table. Thus, the iommu domain maintains a list of iommu devices which are attached. This driver relies on the iommu core to ensure that all devices have detached before destroying a domain. Signed-off-by: Daniel Kurtz Signed-off-by: Simon Xue Revie

[PATCH v3 1/3] iommu/rockchip: rk3288 iommu driver

2014-10-10 Thread Daniel Kurtz
structs to put spinlocks together - Reword comment in map/unmap about > 4MB mappings Changes in v3: - select ARM_DMA_USE_IOMMU Signed-off-by: Daniel Kurtz Signed-off-by: Simon Xue Reviewed-by: Grant Grundler Reviewed-by: Stéphane Marchesin --- drivers/iommu/Kconfig | 12 + driv

[PATCH v2 1/3] iommu/rockchip: rk3288 iommu driver

2014-10-07 Thread Daniel Kurtz
structs to put spinlocks together - Reword comment in map/unmap about > 4MB mappings Signed-off-by: Daniel Kurtz Signed-off-by: Simon Xue Reviewed-by: Grant Grundler Reviewed-by: Stéphane Marchesin --- drivers/iommu/Kconfig | 11 + drivers/iommu/Make

[PATCH 1/3] iommu/rockchip: rk3288 iommu driver

2014-10-02 Thread Daniel Kurtz
domain and therefore point to the same page table. Thus, the iommu domain maintains a list of iommu devices which are attached. This driver relies on the iommu core to ensure that all devices have detached before destroying a domain. Signed-off-by: Daniel Kurtz Signed-off-by: Simon Xue ---

[PATCH 2/3] dt-bindings: iommu: Add documentation for rockchip iommu

2014-10-02 Thread Daniel Kurtz
Add binding documentation for Rockchip IOMMU. Signed-off-by: Daniel Kurtz Signed-off-by: Simon Xue --- .../devicetree/bindings/iommu/rockchip,iommu.txt | 26 ++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/iommu/rockchip,iommu.txt

[PATCH 3/3] ARM: dts: rk3288: add VOP iommu nodes

2014-10-02 Thread Daniel Kurtz
Add device nodes for the VOP iommus. Device nodes for other iommus will be added in later patches. The iommu nodes use the #iommu-cells property as described in: Documentation/devicetree/bindings/iommu/iommu.txt Signed-off-by: Daniel Kurtz Signed-off-by: Simon Xue --- arch/arm/boot/dts

[PATCH 0/3] Rockchip IOMMU driver and devicetree bindings

2014-10-02 Thread Daniel Kurtz
Add a driver and devicetree bindings for the IOMMU found in Rockchip RK3288 SoCs. Daniel Kurtz (3): iommu/rockchip: rk3288 iommu driver dt-bindings: iommu: Add documentation for rockchip iommu ARM: dts: rk3288: add VOP iommu nodes .../devicetree/bindings/iommu/rockchip,iommu.txt | 26