[PATCH v4 6/6] arm64: dts: ls208xa: comply with the iommu map binding for fsl_mc

2018-04-29 Thread Nipun Gupta
fsl-mc bus support the new iommu-map property. Comply to this binding for fsl_mc bus. Signed-off-by: Nipun Gupta --- arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi b/arch/arm6

[PATCH v4 5/6] bus: fsl-mc: supoprt dma configure for devices on fsl-mc bus

2018-04-29 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- drivers/bus/fsl-mc/fsl-mc-bus.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/bus/fsl-mc/fsl-mc-bus.c b/drivers/bus/fsl-mc/fsl-mc-bus.c index 5d8266c..624828b 100644 --- a/drivers/bus/fsl-mc/fsl-mc-bus.c +++ b/drivers/

[PATCH v4 4/6] iommu: arm-smmu: Add support for the fsl-mc bus

2018-04-29 Thread Nipun Gupta
Implement bus specific support for the fsl-mc bus including registering arm_smmu_ops and bus specific device add operations. Signed-off-by: Nipun Gupta --- drivers/iommu/arm-smmu.c | 7 +++ drivers/iommu/iommu.c| 21 + include/linux/fsl/mc.h | 8 include/

[PATCH v4 3/6] iommu: support iommu configuration for fsl-mc devices

2018-04-29 Thread Nipun Gupta
Signed-off-by: Nipun Gupta --- drivers/iommu/of_iommu.c | 20 1 file changed, 20 insertions(+) diff --git a/drivers/iommu/of_iommu.c b/drivers/iommu/of_iommu.c index 811e160..284474d 100644 --- a/drivers/iommu/of_iommu.c +++ b/drivers/iommu/of_iommu.c @@ -24,6 +24,7 @@ #inc

[PATCH v4 2/6] iommu: of: make of_pci_map_rid() available for other devices too

2018-04-29 Thread Nipun Gupta
iommu-map property is also used by devices with fsl-mc. This patch moves the of_pci_map_rid to generic location, so that it can be used by other busses too. 'of_pci_map_rid' is renamed here to 'of_map_rid' and there is no functional change done in the API. Signed-off-by: Nipun Gupta --- drivers

[PATCH v4 1/6] Docs: dt: add fsl-mc iommu-map device-tree binding

2018-04-29 Thread Nipun Gupta
The existing IOMMU bindings cannot be used to specify the relationship between fsl-mc devices and IOMMUs. This patch adds a generic binding for mapping fsl-mc devices to IOMMUs, using iommu-map property. Signed-off-by: Nipun Gupta Reviewed-by: Rob Herring --- .../devicetree/bindings/misc/fsl,qo

[PATCH v4 0/6] Support for fsl-mc bus and its devices in SMMU

2018-04-29 Thread Nipun Gupta
This patchset defines IOMMU DT binding for fsl-mc bus and adds support in SMMU for fsl-mc bus. This patch series is dependent on patset: https://patchwork.kernel.org/patch/10317337/ These patches - Define property 'iommu-map' for fsl-mc bus (patch 1) - Integrates the fsl-mc bus with the SMMU

Re: [PATCH] powerpc/8xx: Build fix with Hugetlbfs enabled

2018-04-29 Thread Aneesh Kumar K.V
Michael Ellerman writes: > "Aneesh Kumar K.V" writes: > >> 8xx use slice code when hugetlbfs is enabled. We missed a header include on >> 8xx which resulted in the below build failure. >> >> config: mpc885_ads_defconfig + CONFIG_HUGETLBFS >> >>CC arch/powerpc/mm/slice.o >> arch/powerpc/

[PATCH] powerpc: Make it clearer that systbl check errors are errors

2018-04-29 Thread Michael Ellerman
If the systbl_chk.sh checks fail we print a message, but with no indication that it's an error. That makes it hard to find in build logs with eg. grep. So prefix any output with "Error:". Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/systbl_chk.sh | 4 ++-- 1 file changed, 2 insertion

RE: [PATCH 2/6 v3] iommu: of: make of_pci_map_rid() available for other devices too

2018-04-29 Thread Nipun Gupta
> -Original Message- > From: Rob Herring [mailto:r...@kernel.org] > Sent: Friday, April 27, 2018 10:46 PM > To: Nipun Gupta > Cc: robin.mur...@arm.com; will.dea...@arm.com; mark.rutl...@arm.com; > catalin.mari...@arm.com; h...@lst.de; gre...@linuxfoundation.org; > j...@8bytes.org; m.szyp

[RFC PATCH 2/2] powerpc/kbuild: move -mprofile-kernel check to Kconfig

2018-04-29 Thread Nicholas Piggin
This eliminates the workaround that requires disabling -mprofile-kernel by default in Kconfig. --- arch/powerpc/Kconfig| 16 +--- arch/powerpc/Makefile | 14 ++ arch/powerpc/tools/gcc-check-mprofile-kernel.sh | 4 ++--

[RFC PATCH 1/2] powerpc/kbuild: Use flags variables rather than overriding LD/CC/AS

2018-04-29 Thread Nicholas Piggin
The powerpc toolchain can compile combinations of 32/64 bit and big/little endian, so it's convenient to consider, e.g., CC -m64 -mbig-endian To be the C compiler for the purpose of invoking it to build target artifacts. Rather than override, use kbuild defined variables to pass these flags ar

[RFC PATCH 0/2] powerpc patches for new Kconfig language

2018-04-29 Thread Nicholas Piggin
I was taking a look at this nice new Kconfig feature here: https://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git/log/?h=kconfig-shell-v3 And came up with some patches for it for powerpc. Hopefully after some review, these patches could be acked by powerpc maintainers and go i