RE: [PATCH 2/4] soc: fsl: add GUTS driver for QorIQ platforms

2016-07-07 Thread Yangbo Lu
Hi Arnd, > -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: Thursday, July 07, 2016 4:30 PM > To: Yangbo Lu > Cc: Scott Wood; linuxppc-...@lists.ozlabs.org; Mark Rutland; Ulf Hansson; > linux-ker...@vger.kernel.org; linux-...@vger.kernel.org; linux- > c...@vger.kern

Re: [PATCH v5 6/8] drm/rockchip: Do not use DMA mapping API if attached to IOMMU domain

2016-07-07 Thread Mark yao
On 2016年06月24日 10:13, Shunqian Zheng wrote: From: Tomasz Figa The API is not suitable for subsystems consisting of multiple devices and requires severe hacks to use it. To mitigate this, this patch implements allocation and address space management locally by using helpers provided by DRM frame

Re: [PATCH v5 7/8] drm/rockchip: Use common IOMMU API to attach devices

2016-07-07 Thread Mark yao
On 2016年06月24日 10:13, Shunqian Zheng wrote: Rockchip DRM used the arm special API, arm_iommu_*(), to attach iommu for ARM32 SoCs. This patch convert to common iommu API so it would support ARM64 like RK3399. Since previous patch added support for direct IOMMU address space management, there is n

Re: iommu/rockchip: Fix bugs and enable on ARM64

2016-07-07 Thread Mark yao
On 2016年06月27日 20:57, Joerg Roedel wrote: On Fri, Jun 24, 2016 at 10:13:25AM +0800, Shunqian Zheng wrote: drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 100 +++-- drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 3 + drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 221 ++

Re: [PATCH 0/3] Add support for privileged mappings

2016-07-07 Thread Jordan Crouse
On Thu, Jul 07, 2016 at 06:00:26PM +0100, Will Deacon wrote: > On Wed, Jul 06, 2016 at 04:51:33PM -0700, Mitchel Humpherys wrote: > > The following patch to the ARM SMMU driver: > > > > commit d346180e70b91b3d5a1ae7e5603e65593d4622bc > > Author: Robin Murphy > > Date: Tue Jan 26 18:

Re: [PATCH 2/4] soc: fsl: add GUTS driver for QorIQ platforms

2016-07-07 Thread Scott Wood
On Thu, 2016-07-07 at 10:30 +0200, Arnd Bergmann wrote: > On Thursday, July 7, 2016 2:35:33 AM CEST Yangbo Lu wrote: > > > > Hi Arnd, > > > > Could you reply when you see the email? > > If your method doesn’t resolve the problem, we still want to use our old > > patchset. > > > > This guts drive

Re: [PATCH 0/3] Add support for privileged mappings

2016-07-07 Thread Will Deacon
On Wed, Jul 06, 2016 at 04:51:33PM -0700, Mitchel Humpherys wrote: > The following patch to the ARM SMMU driver: > > commit d346180e70b91b3d5a1ae7e5603e65593d4622bc > Author: Robin Murphy > Date: Tue Jan 26 18:06:34 2016 + > > iommu/arm-smmu: Treat all device transa

Re: [PATCH v4 5/8] iommu/of: Introduce iommu_fwspec

2016-07-07 Thread Lorenzo Pieralisi
On Fri, Jul 01, 2016 at 05:50:14PM +0100, Robin Murphy wrote: [...] > +int iommu_fwspec_add_ids(struct device *dev, u32 *ids, int num_ids) > +{ > + struct iommu_fwspec *fwspec = dev->archdata.iommu; > + size_t size; > + > + if (!fwspec) > + return -EINVAL; > + > + size

Re: [PATCH v4 3/8] of/irq: Break out msi-map lookup (again)

2016-07-07 Thread Will Deacon
On Fri, Jul 01, 2016 at 05:50:12PM +0100, Robin Murphy wrote: > The PCI msi-map code is already doing double-duty translating IDs and > retrieving MSI parents, which unsurprisingly is the same functionality > we need for the identically-formatted PCI iommu-map property. Drag the > core parsing rout

Re: [PATCH v3 6/9] iommu/of: Introduce iommu_fwspec

2016-07-07 Thread Lorenzo Pieralisi
On Fri, Jul 01, 2016 at 01:04:46PM +0100, Robin Murphy wrote: > On 01/07/16 11:55, Will Deacon wrote: > > On Tue, Jun 28, 2016 at 04:48:25PM +0100, Robin Murphy wrote: > >> Introduce a common structure to hold the per-device firmware data that > >> non-architectural IOMMU drivers generally need to

Re: [PATCH -next v2] iommu/exynos: Fix return value check in exynos_iommu_of_setup()

2016-07-07 Thread Wei Yongjun
On 07/07/2016 05:43 PM, Krzysztof Kozlowski wrote: On 07/07/2016 04:59 AM, weiyj...@163.com wrote: From: Wei Yongjun In case of error, the function of_platform_device_create() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Si

[PATCH -next v3] iommu/exynos: Fix return value check in exynos_iommu_of_setup()

2016-07-07 Thread weiyj_lk
From: Wei Yongjun In case of error, the function of_platform_device_create() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Fixes: 8ed55c812fa8 ("iommu/exynos: Init from dt-specific callback instead of initcall") Cc: sta...@vger

Re: [PATCH -next v2] iommu/exynos: Fix return value check in exynos_iommu_of_setup()

2016-07-07 Thread Krzysztof Kozlowski
On 07/07/2016 04:59 AM, weiyj...@163.com wrote: > From: Wei Yongjun > > In case of error, the function of_platform_device_create() returns > NULL pointer not ERR_PTR(). The IS_ERR() test in the return value > check should be replaced with NULL test. > > Signed-off-by: Wei Yongjun > --- > v1 ->

Re: [PATCH 2/4] soc: fsl: add GUTS driver for QorIQ platforms

2016-07-07 Thread Arnd Bergmann
On Thursday, July 7, 2016 2:35:33 AM CEST Yangbo Lu wrote: > Hi Arnd, > > Could you reply when you see the email? > If your method doesn’t resolve the problem, we still want to use our old > patchset. > > This guts driver had been discussed about one year and blocked many > workaround upstream.