Re: [PATCH 5/6] arm64: dts: Add ipq6018 SoC and CP01 board support

2019-06-10 Thread Sricharan R
Hi Bjorn, On 6/8/2019 9:18 AM, Bjorn Andersson wrote: > On Wed 05 Jun 10:16 PDT 2019, Sricharan R wrote: > >> Add initial device tree support for the Qualcomm IPQ6018 SoC and >> CP01 evaluation board. >> >> Signed-off-by: Sricharan R >> Signed-off-by: Abhi

Re: [PATCH 5/6] arm64: dts: Add ipq6018 SoC and CP01 board support

2019-06-07 Thread Sricharan R
Hi Marc, On 6/5/2019 10:56 PM, Marc Zyngier wrote: > On 05/06/2019 18:16, Sricharan R wrote: >> Add initial device tree support for the Qualcomm IPQ6018 SoC and >> CP01 evaluation board. >> >> Signed-off-by: Sricharan R >> Signed-off-by: Abhishek Sahu &g

Re: [PATCH 5/6] arm64: dts: Add ipq6018 SoC and CP01 board support

2019-06-07 Thread Sricharan R
Hi Sudeep, On 6/5/2019 11:04 PM, Sudeep Holla wrote: > On Wed, Jun 05, 2019 at 10:58:57PM +0530, Sricharan R wrote: >> Add initial device tree support for the Qualcomm IPQ6018 SoC and >> CP01 evaluation board. >> >> Signed-off-by: Sricharan R >> Signed-off-b

[PATCH] dmaengine: qcom: bam_dma: Fix completed descriptors count

2019-06-28 Thread Sricharan R
Srinivas Kandagatla Signed-off-by: Sricharan R --- drivers/dma/qcom/bam_dma.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/qcom/bam_dma.c b/drivers/dma/qcom/bam_dma.c index 4b43844..8e90a40 100644 --- a/drivers/dma/qcom/bam_dma.c +++ b/drivers/dma/qcom/bam_dma.c @@ -799,6

Re: [PATCH V12 00/14] Krait clocks + Krait CPUfreq

2018-09-07 Thread Sricharan R
n, QSB and the top PLL are always a fixed rate and thus >> only support one frequency each. These sources provide the lowest >> frequencies for the CPUs. The HFPLLs are where we can make the CPU go >> faster (GHz range). Sometimes we need to run the HFPLL twice as >> fast

Re: [PATCH V12 00/14] Krait clocks + Krait CPUfreq

2018-09-20 Thread Sricharan R
gt;> >> >> On 7 September 2018 10:57:34 BST, Sricharan R >> wrote: >>> Hi Craig, >>> >>> >>>>> [v12] >>>>> * Added my signed-off that was missing in some patches. >>>>> * Added Bjorn's acked that i

Re: [PATCH V12 00/14] Krait clocks + Krait CPUfreq

2018-09-20 Thread Sricharan R
>> >> >> On 7 September 2018 10:57:34 BST, Sricharan R >> wrote: >>> Hi Craig, >>> >>> >>>>> [v12] >>>>> * Added my signed-off that was missing in some patches. >>>>> * Added Bjorn's acked

[PATCH V2] remoteproc: qcom: Introduce Hexagon V5 based WCSS driver

2018-06-07 Thread Sricharan R
) Signed-off-by: Sricharan R [bjorn: Rewrote as a separate driver, intead of extending q6v5_pil.c] Signed-off-by: Bjorn Andersson --- [v2] Fixed Kconfig to remove SMD dependency and addressed Vinod's comments. .../devicetree/bindings/remoteproc/qcom,q6v5.txt | 7 +- drivers/remot

Re: [PATCH v5 03/13] ARM: dts: ipq4019: Add a few peripheral nodes

2018-04-01 Thread Sricharan R
Hi Bjorn, Thanks a lot for all the reviews. On 3/27/2018 10:20 PM, Bjorn Andersson wrote: > On Fri 23 Mar 03:18 PDT 2018, Sricharan R wrote: >> @@ -172,6 +180,22 @@ >> clock-names = "core", "iface"; >> #address-c

Re: [PATCH v5 05/13] ARM: dts: ipq4019: Add ipq4019-ap.dk04.dtsi

2018-04-01 Thread Sricharan R
On 3/27/2018 10:34 PM, Bjorn Andersson wrote: > On Fri 23 Mar 03:18 PDT 2018, Sricharan R wrote: >> +soc { >> +pinctrl@100 { >> +serial_0_pins: serial0_pinmux { > > Please, no underscores in the node name. ok. > >&

Re: [PATCH v5 06/13] ARM: dts: ipq4019: Add ipq4019-ap.dk04.1-c1 board file

2018-04-01 Thread Sricharan R
Hi Bjorn, On 3/27/2018 10:42 PM, Bjorn Andersson wrote: > On Fri 23 Mar 03:18 PDT 2018, Sricharan R wrote: >> +#include "qcom-ipq4019-ap.dk04.1.dtsi" >> + >> +/ { >> +model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK04.1-C1"; >> + > &

Re: [PATCH v5 07/13] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk04.1-c3 board file

2018-04-01 Thread Sricharan R
On 3/27/2018 10:44 PM, Bjorn Andersson wrote: > On Fri 23 Mar 03:18 PDT 2018, Sricharan R wrote: >> +#include "qcom-ipq4019-ap.dk04.1.dtsi" >> + >> +/ { >> +model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK04.1-C3"; > > Add a compat

Re: [PATCH v5 08/13] ARM: dts: ipq4019: Add ipq4019-ap.dk07.1 common data

2018-04-01 Thread Sricharan R
On 3/27/2018 10:50 PM, Bjorn Andersson wrote: > On Fri 23 Mar 03:18 PDT 2018, Sricharan R wrote: >> +#include "qcom-ipq4019.dtsi" >> +#include >> +#include >> + >> +/ { >> +model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK07.1";

Re: [PATCH v5 09/13] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c1 board file

2018-04-01 Thread Sricharan R
On 3/27/2018 10:52 PM, Bjorn Andersson wrote: > On Fri 23 Mar 03:18 PDT 2018, Sricharan R wrote: >> +#include "qcom-ipq4019-ap.dk07.1.dtsi" >> + >> +/ { >> +model = "Qualcomm Technologies, Inc. IPQ4019/AP-DK07.1-C1"; > > Add co

Re: [PATCH v5 10/13] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c2 board file

2018-04-01 Thread Sricharan R
Hi Bjorn, On 3/27/2018 10:59 PM, Bjorn Andersson wrote: > On Fri 23 Mar 03:18 PDT 2018, Sricharan R wrote: > >> Reviewed-by: Abhishek Sahu >> Signed-off-by: Sricharan R >> --- >> arch/arm/boot/dts/Makefile | 1 + >> arch/arm/boot/dt

Re: [PATCH v5 11/13] ARM: dts: ipq8074: Add peripheral nodes

2018-04-01 Thread Sricharan R
On 3/27/2018 11:15 PM, Bjorn Andersson wrote: > On Fri 23 Mar 03:18 PDT 2018, Sricharan R wrote: >> +serial_blsp0: serial@78af000 { > > Please try to have a single scheme for how you name your labels; this is > serial0 or blsp1_uart1. > > [..] >> +

Re: [PATCH v5 12/13] ARM: dts: ipq8074: Add pcie nodes

2018-04-01 Thread Sricharan R
On 3/27/2018 11:16 PM, Bjorn Andersson wrote: > On Fri 23 Mar 03:18 PDT 2018, Sricharan R wrote: > >> The driver/phy support for ipq8074 is available now. >> So enabling the nodes in DT. >> > > Acked-by: Bjorn Andersson > Thanks. Regards, Sricharan >

Re: [PATCH v5 13/13] ARM: dts: ipq8074: Enable few peripherals for hk01 board

2018-04-01 Thread Sricharan R
Hi Bjorn, On 3/27/2018 11:19 PM, Bjorn Andersson wrote: > On Fri 23 Mar 03:18 PDT 2018, Sricharan R wrote: > >> Reviewed-by: Abhishek Sahu >> Signed-off-by: Sricharan R >> --- >> arch/arm64/boot/dts/qcom/ipq8074-hk01.dts | 103 >> ++

Re: [PATCH v4 12/14] cpufreq: Add Kryo CPU scaling driver

2018-04-02 Thread Sricharan R
Hi Ilia, > diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm > index 7f56fe5..71350e2 100644 > --- a/drivers/cpufreq/Kconfig.arm > +++ b/drivers/cpufreq/Kconfig.arm > @@ -134,6 +134,17 @@ config ARM_OMAP2PLUS_CPUFREQ > depends on ARCH_OMAP2PLUS > default ARCH_OMAP2

Re: [PATCH v4 13/14] dt-bindings: cpufreq: Document operating-points-v2-kryo-cpu

2018-04-02 Thread Sricharan R
Hi Viresh, On 4/2/2018 3:00 PM, Viresh Kumar wrote: > +Sricharan, > > On 30-03-18, 00:26, Ilia Lin wrote: >> In Certain Qualcomm Technologies, Inc. SoCs like apq8096 and msm8996 >> that have KRYO processors, the CPU ferequencies subset and voltage value >> of each OPP varies based on the silicon

Re: [PATCH v4 13/14] dt-bindings: cpufreq: Document operating-points-v2-kryo-cpu

2018-04-02 Thread Sricharan R
Hi Viresh, On 4/2/2018 8:37 PM, Sricharan R wrote: > Hi Viresh, > > On 4/2/2018 3:00 PM, Viresh Kumar wrote: >> +Sricharan, >> >> On 30-03-18, 00:26, Ilia Lin wrote: >>> In Certain Qualcomm Technologies, Inc. SoCs like apq8096 and msm8996 >>> th

Re: [PATCH v8 00/15] Krait clocks + Krait CPUfreq

2018-03-02 Thread Sricharan R
ck-8x60.c?at=moretz&fileviewer=file-view-default > On Tue, Feb 27, 2018 at 3:06 PM, Sricharan R wrote: > >> * Dropped the DT update from the series. Will send separatelyssbi > > Are these available somewhere so I can test the sum total on > the Nexus 7 and see if

Re: [PATCH v2 05/13] i2c: qup: schedule EOT and FLUSH tags at the end of transfer

2018-03-14 Thread Sricharan R
t; BAM will generate the completion interrupt. > > Signed-off-by: Abhishek Sahu > --- > Reviewed-by: Sricharan R Regards, Sricharan > * Changes from v1: > > 1. Modified commit message with more details > > drivers/i2c/busses/i2c-qup.c | 39

[PATCH v2 00/13] ARM: dts: ipq: updates to enable a few peripherals

2018-03-16 Thread Sricharan R
[v2] * Addressed all comments from Abhishek * Removed dk01-c2 and dk04-c5 spinand based boards as support for spinand is not complete * Based all patches on top of Andy's for-next branch [V1] * https://www.spinics.net/lists/arm-kernel/msg631318.html Sricharan

[PATCH v2 01/13] firmware: qcom: scm: Add ipq4019 soc compatible

2018-03-16 Thread Sricharan R
Add the compatible for ipq4019. This does not need clocks to do scm calls. Reviewed-by: Rob Herring Signed-off-by: Sricharan R --- Documentation/devicetree/bindings/firmware/qcom,scm.txt | 3 ++- drivers/firmware/qcom_scm.c | 3 +++ 2 files changed, 5 insertions

[PATCH v2 02/13] ARM: dts: ipq4019: Add a few peripheral nodes

2018-03-16 Thread Sricharan R
Now with the driver updates for some peripherals being there, add i2c, spi, pcie, bam, qpic-nand, scm nodes to enhance the available peripheral support. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019.dtsi | 134 1 file changed, 134 insertions

[PATCH v2 04/13] ARM: dts: ipq4019: Update ipq4019-dk01.1 board data

2018-03-16 Thread Sricharan R
Adds missing memory, reserved-memory nodes. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi | 28 +++ 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1.dtsi b/arch/arm/boot/dts/qcom-ipq4019-ap.dk01.1

[PATCH v2 06/13] ARM: dts: ipq4019: Add ipq4019-ap.dk04.1-c1 board file

2018-03-16 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c1.dts | 20 2 files changed, 21 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c1.dts diff --git a/arch/arm/boot/dts

[PATCH v2 07/13] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk04.1-c3 board file

2018-03-16 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c3.dts | 8 2 files changed, 9 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1-c3.dts diff --git a/arch/arm/boot/dts/Makefile b/arch

[PATCH v2 09/13] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c1 board file

2018-03-16 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts | 65 + 2 files changed, 66 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts diff --git a/arch/arm/boot

[PATCH v2 11/13] ARM: dts: ipq8074: Add peripheral nodes

2018-03-16 Thread Sricharan R
Add serial, i2c, bam, spi, qpic peripheral nodes. Signed-off-by: Sricharan R --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 105 ++ 1 file changed, 105 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi b/arch/arm64/boot/dts/qcom/ipq8074.dtsi index

[PATCH v2 12/13] ARM: dts: ipq8074: Add pcie nodes

2018-03-16 Thread Sricharan R
The driver/phy support for ipq8074 is available now. So enabling the nodes in DT. Signed-off-by: Sricharan R --- arch/arm64/boot/dts/qcom/ipq8074.dtsi | 157 +- 1 file changed, 156 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/ipq8074.dtsi

[PATCH v2 13/13] ARM: dts: ipq8074: Enable few peripherals for hk01 board

2018-03-16 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm64/boot/dts/qcom/ipq8074-hk01.dts | 103 ++ 1 file changed, 103 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq8074-hk01.dts b/arch/arm64/boot/dts/qcom/ipq8074-hk01.dts index 6a838b5..81dff867 100644 --- a/arch/arm64

[PATCH v2 10/13] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c2 board file

2018-03-16 Thread Sricharan R
Signed-off-by: Sricharan R --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c2.dts | 26 + 2 files changed, 27 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c2.dts diff --git a/arch/arm/boot

[PATCH v2 08/13] ARM: dts: ipq4019: Add ipq4019-ap.dk07.1 common data

2018-03-16 Thread Sricharan R
Add the common data for all dk07 based boards. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsi | 83 +++ 1 file changed, 83 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1.dtsi diff --git a/arch/arm/boot/dts/qcom

[PATCH v2 05/13] ARM: dts: ipq4019: Add ipq4019-ap.dk04.dtsi

2018-03-16 Thread Sricharan R
Add the common parts for the dk04 boards. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi | 129 ++ 1 file changed, 129 insertions(+) create mode 100644 arch/arm/boot/dts/qcom-ipq4019-ap.dk04.1.dtsi diff --git a/arch/arm/boot/dts/qcom

[PATCH v2 03/13] ARM: dts: ipq4019: Change the max opp frequency

2018-03-16 Thread Sricharan R
The max opp frequency is 716MHZ. So update that. Signed-off-by: Sricharan R --- arch/arm/boot/dts/qcom-ipq4019.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/qcom-ipq4019.dtsi b/arch/arm/boot/dts/qcom-ipq4019.dtsi index e38fffa..2ee71c2 100644 --- a

Re: [PATCH v2 02/13] ARM: dts: ipq4019: Add a few peripheral nodes

2018-03-16 Thread Sricharan R
Hi Marc, On 3/16/2018 5:47 PM, Marc Zyngier wrote: > On 16/03/18 09:38, Sricharan R wrote: >> Now with the driver updates for some peripherals being there, >> add i2c, spi, pcie, bam, qpic-nand, scm nodes to enhance the available >> peripheral support. >> &g

Re: [PATCH v2 12/13] ARM: dts: ipq8074: Add pcie nodes

2018-03-16 Thread Sricharan R
Hi Abhishek, On 3/16/2018 4:50 PM, Abhishek Sahu wrote: > On 2018-03-16 15:08, Sricharan R wrote: >> The driver/phy support for ipq8074 is available now. >> So enabling the nodes in DT. >> >> Signed-off-by: Sricharan R >> --- >>  arch

Re: [PATCH v2 13/13] ARM: dts: ipq8074: Enable few peripherals for hk01 board

2018-03-16 Thread Sricharan R
Hi Abhishek, On 3/16/2018 4:27 PM, Abhishek Sahu wrote: > On 2018-03-16 15:08, Sricharan R wrote: >> Signed-off-by: Sricharan R >> --- >>  arch/arm64/boot/dts/qcom/ipq8074-hk01.dts | 103 >> ++ >>  1 file changed, 103 insertions(+) &

Re: [PATCH v2 11/13] ARM: dts: ipq8074: Add peripheral nodes

2018-03-16 Thread Sricharan R
On 3/16/2018 4:17 PM, Abhishek Sahu wrote: > On 2018-03-16 15:08, Sricharan R wrote: >> Add serial, i2c, bam, spi, qpic peripheral nodes. >> >> Signed-off-by: Sricharan R >> --- >>  arch/arm64/boot/dts/qcom/ipq8074.dtsi | 105 >> +++

Re: [PATCH v2 09/13] ARM: dts: ipq4019: Add qcom-ipq4019-ap.dk07.1-c1 board file

2018-03-16 Thread Sricharan R
On 3/16/2018 3:55 PM, Abhishek Sahu wrote: > On 2018-03-16 15:08, Sricharan R wrote: >> Signed-off-by: Sricharan R >> --- >>  arch/arm/boot/dts/Makefile  |  1 + >>  arch/arm/boot/dts/qcom-ipq4019-ap.dk07.1-c1.dts | 65 >>

Re: [v5,08/13] ARM: dts: ipq4019: Add ipq4019-ap.dk07.1 common data

2018-04-18 Thread Sricharan R
Hi Sven, On 4/18/2018 12:29 PM, Sven Eckelmann wrote: > On Freitag, 23. März 2018 15:48:51 CEST Sricharan R wrote: >> Add the common data for all dk07 based boards. >> >> Reviewed-by: Abhishek Sahu >> Signed-off-by: Sricharan R >> --- >> arch/arm/bo

Re: [v5,05/13] ARM: dts: ipq4019: Add ipq4019-ap.dk04.dtsi

2018-04-18 Thread Sricharan R
Hi Sven, On 4/18/2018 12:37 PM, Sven Eckelmann wrote: > On Mittwoch, 18. April 2018 08:59:46 CEST Sven Eckelmann wrote: > [...] >> I would not know how to disable QSEE on these boards and thus would assume >> that it should be part of this dtsi. > > > Just did some reviews of the reserved-memor

Re: [v5,05/13] ARM: dts: ipq4019: Add ipq4019-ap.dk04.dtsi

2018-04-18 Thread Sricharan R
Hi Sven, On 4/18/2018 1:08 PM, Sven Eckelmann wrote: > Hi, > > On Mittwoch, 18. April 2018 12:45:20 CEST Sricharan R wrote: >> Right, will add the above change to soc.dtsi in V6. Does that sound ok for >> you ? > > I have submitted a patch for this now [1] beca

[PATCH V9 6/9] arm/dma-mapping: Implement DMA_ATTR_PRIVILEGED

2017-01-06 Thread Sricharan R
The newly added DMA_ATTR_PRIVILEGED is useful for creating mappings that are only accessible to privileged DMA engines. Adding it to the arm dma-mapping.c so that the ARM32 DMA IOMMU mapper can make use of it. Signed-off-by: Sricharan R Reviewed-by: Will Deacon --- arch/arm/mm/dma-mapping.c

[PATCH V9 8/9] iommu/arm-smmu: Set privileged attribute to 'default' instead of 'unprivileged'

2017-01-06 Thread Sricharan R
it be controlled by the pagetable settings. Acked-by: Will Deacon Signed-off-by: Sricharan R --- drivers/iommu/arm-smmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index a60cded..73a0a25 100644 --- a/drivers/iommu/arm-s

[PATCH V9 5/9] arm64/dma-mapping: Implement DMA_ATTR_PRIVILEGED

2017-01-06 Thread Sricharan R
From: Mitchel Humpherys The newly added DMA_ATTR_PRIVILEGED is useful for creating mappings that are only accessible to privileged DMA engines. Implement it in dma-iommu.c so that the ARM64 DMA IOMMU mapper can make use of it. Reviewed-by: Robin Murphy Tested-by: Robin Murphy Acked-by: Will D

[PATCH V9 9/9] Revert "iommu/arm-smmu: Set PRIVCFG in stage 1 STEs"

2017-01-06 Thread Sricharan R
From: Robin Murphy This reverts commit df5e1a0f2a2d779ad467a691203bcbc74d75690e. Now that proper privileged mappings can be requested via IOMMU_PRIV, unconditionally overriding the incoming PRIVCFG becomes the wrong thing to do, so stop it. Signed-off-by: Robin Murphy --- drivers/iommu/arm-sm

[PATCH V9 7/9] dmaengine: pl330: Make sure microcode is privileged

2017-01-06 Thread Sricharan R
From: Mitchel Humpherys The PL330 is hard-wired such that instruction fetches on both the manager and channel threads go out onto the bus with the "privileged" bit set. This can become troublesome once there is an IOMMU or other form of memory protection downstream, since those will typically be

[PATCH V9 1/9] iommu: add IOMMU_PRIV attribute

2017-01-06 Thread Sricharan R
From: Mitchel Humpherys Add the IOMMU_PRIV attribute, which is used to indicate privileged mappings. Reviewed-by: Robin Murphy Tested-by: Robin Murphy Signed-off-by: Mitchel Humpherys Acked-by: Will Deacon --- include/linux/iommu.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/

[PATCH V9 2/9] iommu/io-pgtable-arm: add support for the IOMMU_PRIV flag

2017-01-06 Thread Sricharan R
From: Jeremy Gebben Allow the creation of privileged mode mappings, for stage 1 only. Reviewed-by: Robin Murphy Tested-by: Robin Murphy Acked-by: Will Deacon Signed-off-by: Jeremy Gebben --- drivers/iommu/io-pgtable-arm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH V9 3/9] iommu/io-pgtable-arm-v7s: Add support for the IOMMU_PRIV flag

2017-01-06 Thread Sricharan R
From: Robin Murphy The short-descriptor format also allows privileged-only mappings, so let's wire it up. Signed-off-by: Robin Murphy Tested-by: Sricharan R --- drivers/iommu/io-pgtable-arm-v7s.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/iom

[PATCH V9 0/9] Add support for privileged mappings

2017-01-06 Thread Sricharan R
ing: add DMA_ATTR_PRIVILEGED attribute arm64/dma-mapping: Implement DMA_ATTR_PRIVILEGED dmaengine: pl330: Make sure microcode is privileged Robin Murphy (2): iommu/io-pgtable-arm-v7s: Add support for the IOMMU_PRIV flag Revert "iommu/arm-smmu: Set PRIVCFG in stage 1 STEs" Srichar

[PATCH V9 4/9] common: DMA-mapping: add DMA_ATTR_PRIVILEGED attribute

2017-01-06 Thread Sricharan R
From: Mitchel Humpherys This patch adds the DMA_ATTR_PRIVILEGED attribute to the DMA-mapping subsystem. Some advanced peripherals such as remote processors and GPUs perform accesses to DMA buffers in both privileged "supervisor" and unprivileged "user" modes. This attribute is used to indicate

[PATCH V4 3/3] i2c: qup: Fix error handling

2016-06-10 Thread Sricharan R
that would never happen when there is already an error condition on the bus. Also the error handling procedure should be the same for both NACK and other bus errors in case of dma mode. So correct that as well. Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-

[PATCH V4 1/3] i2c: qup: Fix broken dma when CONFIG_DEBUG_SG is enabled

2016-06-10 Thread Sricharan R
which can be carveouts, hence the check fails. Change allocation of sg buffers from dma_coherent memory to kzalloc to fix the issue. Note that now dma_map/unmap is used to make the kzalloc'ed buffers coherent before passing it to the dmaengine. Signed-off-by: Sricharan R Reviewed-by: Andy

[PATCH V4 2/3] i2c: qup: Fix wrong value of index variable

2016-06-10 Thread Sricharan R
index gets incremented during check to determine if the messages can be transferred with dma. But not reset after that, resulting in wrong start value in subsequent loop, causing failure. Fix it. Signed-off-by: Sricharan R --- drivers/i2c/busses/i2c-qup.c | 2 ++ 1 file changed, 2 insertions

[PATCH V4 0/3] i2c: qup: Some misc fixes

2016-06-10 Thread Sricharan R
tag for patch#1, as there was no code change. Depends on patch[1] for the error handling to be complete. [1] https://lkml.org/lkml/2016/5/9/447 Sricharan R (3): i2c: qup: Fix broken dma when CONFIG_DEBUG_SG is enabled i2c: qup: Fix wrong value of index variable i2c: qup: Fix error handling

[PATCH 1/2] clk: qcom: gdsc: Add support for gdscs with HW control

2016-11-18 Thread Sricharan R
to be powered off by software. Signed-off-by: Rajendra Nayak Signed-off-by: Sricharan R --- [V2] Fixed to take care of the return value of gdsc_hwctrl drivers/clk/qcom/gdsc.c | 19 +++ drivers/clk/qcom/gdsc.h | 1 + 2 files changed, 20 insertions(+) diff --git a/drivers/clk

[PATCH 0/2] clk: qcom: Add support for hw controlled gdscs/clocks

2016-11-18 Thread Sricharan R
eturn value for gdsc_hwctrl [1] https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1270922.html Rajendra Nayak (1): clk: qcom: gdsc: Add support for gdscs with HW control Sricharan R (1): clk: qcom: Put venus core0/1 gdscs to hw control mode drivers/clk/qcom/gdsc.c | 19 +

[PATCH 2/2] clk: qcom: Put venus core0/1 gdscs to hw control mode

2016-11-18 Thread Sricharan R
The venus video ip's internal core blocks are under the control of the firmware and their powerdomains needs to be 'ON' only when used by the firmware. So putting it into hw controlled mode lets this to happen, otherwise the firmware hangs checking for this. Signed-off-

[PATCH V2 1/2] clk: qcom: gdsc: Add support for gdscs with HW control

2016-11-18 Thread Sricharan R
to be powered off by software. Signed-off-by: Rajendra Nayak Signed-off-by: Sricharan R --- [V2] Fixed to take care of the return value of gdsc_hwctrl drivers/clk/qcom/gdsc.c | 19 +++ drivers/clk/qcom/gdsc.h | 1 + 2 files changed, 20 insertions(+) diff --git a/drivers/clk

[PATCH V2 2/2] clk: qcom: Put venus core0/1 gdscs to hw control mode

2016-11-18 Thread Sricharan R
The venus video ip's internal core blocks are under the control of the firmware and their powerdomains needs to be 'ON' only when used by the firmware. So putting it into hw controlled mode lets this to happen, otherwise the firmware hangs checking for this. Signed-off-

[PATCH V2 0/2] clk: qcom: gdsc: Add support for gdscs with HW control

2016-11-18 Thread Sricharan R
eturn value for gdsc_hwctrl [1] https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1270922.html Rajendra Nayak (1): clk: qcom: gdsc: Add support for gdscs with HW control Sricharan R (1): clk: qcom: Put venus core0/1 gdscs to hw control mode drivers/clk/qcom/gdsc.c | 19 +

[PATCH 0/3] clk: qcom: Add support for hw controlled gdscs/clocks

2016-10-24 Thread Sricharan R
sc: Add support for gdscs with HW control Sricharan R (2): clk: qcom: Put venus core0/1 gdscs to hw control mode clk: qcom: Set BRANCH_HALT_DELAY flags for venus core0/1 clks drivers/clk/qcom/gdsc.c | 15 +++ drivers/clk/qcom/gdsc.h | 1 + drivers/clk/qcom/mmcc

[PATCH 3/3] clk: qcom: Set BRANCH_HALT_DELAY flags for venus core0/1 clks

2016-10-24 Thread Sricharan R
enabling/disabling those clocks. Signed-off-by: Sricharan R --- drivers/clk/qcom/mmcc-msm8996.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clk/qcom/mmcc-msm8996.c b/drivers/clk/qcom/mmcc-msm8996.c index 41aabe3..8f3f480 100644 --- a/drivers/clk/qcom/mmcc-msm8996.c +++ b/drivers

[PATCH 1/3] clk: qcom: gdsc: Add support for gdscs with HW control

2016-10-24 Thread Sricharan R
to be powered off by software. Signed-off-by: Rajendra Nayak Signed-off-by: Sricharan R --- drivers/clk/qcom/gdsc.c | 15 +++ drivers/clk/qcom/gdsc.h | 1 + 2 files changed, 16 insertions(+) diff --git a/drivers/clk/qcom/gdsc.c b/drivers/clk/qcom/gdsc.c index f12d7b2..a5e1c8c

[PATCH 2/3] clk: qcom: Put venus core0/1 gdscs to hw control mode

2016-10-24 Thread Sricharan R
The venus video ip's internal core blocks are under the control of the firmware and their powerdomains needs to be 'ON' only when used by the firmware. So putting it into hw controlled mode lets this to happen, otherwise the firmware hangs checking for this. Signed-off-

[PATCH V8 2/9] iommu/io-pgtable-arm: add support for the IOMMU_PRIV flag

2017-01-02 Thread Sricharan R
From: Jeremy Gebben Allow the creation of privileged mode mappings, for stage 1 only. Reviewed-by: Robin Murphy Tested-by: Robin Murphy Acked-by: Will Deacon Signed-off-by: Jeremy Gebben --- drivers/iommu/io-pgtable-arm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH V8 0/9] Add support for privileged mappings

2017-01-02 Thread Sricharan R
_ATTR_PRIVILEGED dmaengine: pl330: Make sure microcode is privileged Robin Murphy (2): iommu/io-pgtable-arm-v7s: Add support for the IOMMU_PRIV flag Revert "iommu/arm-smmu: Set PRIVCFG in stage 1 STEs" Sricharan R (2): arm/dma-mapping: Implement DMA_ATTR_PRIVILEGED iommu/arm-smmu

[PATCH V8 5/9] arm64/dma-mapping: Implement DMA_ATTR_PRIVILEGED

2017-01-02 Thread Sricharan R
From: Mitchel Humpherys The newly added DMA_ATTR_PRIVILEGED is useful for creating mappings that are only accessible to privileged DMA engines. Implement it in dma-iommu.c so that the ARM64 DMA IOMMU mapper can make use of it. Reviewed-by: Robin Murphy Tested-by: Robin Murphy Acked-by: Will D

[PATCH V8 7/9] dmaengine: pl330: Make sure microcode is privileged

2017-01-02 Thread Sricharan R
From: Mitchel Humpherys The PL330 is hard-wired such that instruction fetches on both the manager and channel threads go out onto the bus with the "privileged" bit set. This can become troublesome once there is an IOMMU or other form of memory protection downstream, since those will typically be

[PATCH V8 6/9] arm/dma-mapping: Implement DMA_ATTR_PRIVILEGED

2017-01-02 Thread Sricharan R
The newly added DMA_ATTR_PRIVILEGED is useful for creating mappings that are only accessible to privileged DMA engines. Adding it to the arm dma-mapping.c so that the ARM32 DMA IOMMU mapper can make use of it. Signed-off-by: Sricharan R --- arch/arm/mm/dma-mapping.c | 60

[PATCH V8 1/9] iommu: add IOMMU_PRIV attribute

2017-01-02 Thread Sricharan R
From: Mitchel Humpherys Add the IOMMU_PRIV attribute, which is used to indicate privileged mappings. Reviewed-by: Robin Murphy Tested-by: Robin Murphy Signed-off-by: Mitchel Humpherys Acked-by: Will Deacon --- include/linux/iommu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include

[PATCH V8 8/9] iommu/arm-smmu: Set privileged attribute to 'default' instead of 'unprivileged'

2017-01-02 Thread Sricharan R
it be controlled by the pagetable settings. Acked-by: Will Deacon Signed-off-by: Sricharan R --- drivers/iommu/arm-smmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index a60cded..73a0a25 100644 --- a/drivers/iommu/arm-s

[PATCH V8 9/9] Revert "iommu/arm-smmu: Set PRIVCFG in stage 1 STEs"

2017-01-02 Thread Sricharan R
From: Robin Murphy This reverts commit df5e1a0f2a2d779ad467a691203bcbc74d75690e. Now that proper privileged mappings can be requested via IOMMU_PRIV, unconditionally overriding the incoming PRIVCFG becomes the wrong thing to do, so stop it. Signed-off-by: Robin Murphy --- drivers/iommu/arm-sm

[PATCH V8 4/9] common: DMA-mapping: add DMA_ATTR_PRIVILEGED attribute

2017-01-02 Thread Sricharan R
From: Mitchel Humpherys This patch adds the DMA_ATTR_PRIVILEGED attribute to the DMA-mapping subsystem. Some advanced peripherals such as remote processors and GPUs perform accesses to DMA buffers in both privileged "supervisor" and unprivileged "user" modes. This attribute is used to indicate

[PATCH V8 3/9] iommu/io-pgtable-arm-v7s: Add support for the IOMMU_PRIV flag

2017-01-02 Thread Sricharan R
From: Robin Murphy The short-descriptor format also allows privileged-only mappings, so let's wire it up. Signed-off-by: Robin Murphy Tested-by: Sricharan R --- drivers/iommu/io-pgtable-arm-v7s.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/iom

[PATCH V7 0/8] Add support for privileged mappings

2016-12-12 Thread Sricharan R
MA_ATTR_PRIVILEGED attribute arm64/dma-mapping: Implement DMA_ATTR_PRIVILEGED dmaengine: pl330: Make sure microcode is privileged Robin Murphy (2): iommu/io-pgtable-arm-v7s: Add support for the IOMMU_PRIV flag iommu/arm-smmu: Revert "iommu/arm-smmu: Set PRIVCFG in stage 1 STEs"

[PATCH V7 1/8] iommu: add IOMMU_PRIV attribute

2016-12-12 Thread Sricharan R
From: Mitchel Humpherys Add the IOMMU_PRIV attribute, which is used to indicate privileged mappings. Reviewed-by: Robin Murphy Tested-by: Robin Murphy Signed-off-by: Mitchel Humpherys Acked-by: Will Deacon --- include/linux/iommu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include

[PATCH V7 5/8] arm64/dma-mapping: Implement DMA_ATTR_PRIVILEGED

2016-12-12 Thread Sricharan R
From: Mitchel Humpherys The newly added DMA_ATTR_PRIVILEGED is useful for creating mappings that are only accessible to privileged DMA engines. Implement it in dma-iommu.c so that the ARM64 DMA IOMMU mapper can make use of it. Reviewed-by: Robin Murphy Tested-by: Robin Murphy Acked-by: Will D

[PATCH V7 4/8] common: DMA-mapping: add DMA_ATTR_PRIVILEGED attribute

2016-12-12 Thread Sricharan R
From: Mitchel Humpherys This patch adds the DMA_ATTR_PRIVILEGED attribute to the DMA-mapping subsystem. Some advanced peripherals such as remote processors and GPUs perform accesses to DMA buffers in both privileged "supervisor" and unprivileged "user" modes. This attribute is used to indicate

[PATCH V7 2/8] iommu/io-pgtable-arm: add support for the IOMMU_PRIV flag

2016-12-12 Thread Sricharan R
From: Jeremy Gebben Allow the creation of privileged mode mappings, for stage 1 only. Reviewed-by: Robin Murphy Tested-by: Robin Murphy Acked-by: Will Deacon Signed-off-by: Jeremy Gebben --- drivers/iommu/io-pgtable-arm.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH V7 6/8] dmaengine: pl330: Make sure microcode is privileged

2016-12-12 Thread Sricharan R
From: Mitchel Humpherys The PL330 is hard-wired such that instruction fetches on both the manager and channel threads go out onto the bus with the "privileged" bit set. This can become troublesome once there is an IOMMU or other form of memory protection downstream, since those will typically be

[PATCH V7 8/8] iommu/arm-smmu: Revert "iommu/arm-smmu: Set PRIVCFG in stage 1 STEs"

2016-12-12 Thread Sricharan R
From: Robin Murphy Now that proper privileged mappings can be requested via IOMMU_PRIV, unconditionally overriding the incoming PRIVCFG becomes the wrong thing to do, so stop it. This reverts commit df5e1a0f2a2d779ad467a691203bcbc74d75690e. Signed-off-by: Robin Murphy --- drivers/iommu/arm-sm

[PATCH V7 7/8] iommu/arm-smmu: Set privileged attribute to 'default' instead of 'unprivileged'

2016-12-12 Thread Sricharan R
it be controlled by the pagetable settings. Acked-by: Will Deacon Signed-off-by: Sricharan R --- drivers/iommu/arm-smmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c index eaa8f44..8bb0eea 100644 --- a/drivers/iommu/arm-s

[PATCH V7 3/8] iommu/io-pgtable-arm-v7s: Add support for the IOMMU_PRIV flag

2016-12-12 Thread Sricharan R
From: Robin Murphy The short-descriptor format also allows privileged-only mappings, so let's wire it up. Signed-off-by: Robin Murphy Tested-by: Sricharan R --- drivers/iommu/io-pgtable-arm-v7s.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/iom

[RESEND PATCH V6 1/6] iommu: add IOMMU_PRIV attribute

2016-12-02 Thread Sricharan R
From: Mitchel Humpherys Add the IOMMU_PRIV attribute, which is used to indicate privileged mappings. Reviewed-by: Robin Murphy Tested-by: Robin Murphy Acked-by: Will Deacon Signed-off-by: Mitchel Humpherys --- [V6] No change include/linux/iommu.h | 1 + 1 file changed, 1 insertion(+) dif

[RESEND PATCH V6 2/6] iommu/io-pgtable-arm: add support for the IOMMU_PRIV flag

2016-12-02 Thread Sricharan R
From: Jeremy Gebben Allow the creation of privileged mode mappings, for stage 1 only. Reviewed-by: Robin Murphy Tested-by: Robin Murphy Acked-by: Will Deacon Signed-off-by: Jeremy Gebben --- [V6] No change drivers/iommu/io-pgtable-arm.c | 5 - 1 file changed, 4 insertions(+), 1 deleti

[RESEND PATCH V6 4/6] arm64/dma-mapping: Implement DMA_ATTR_PRIVILEGED

2016-12-02 Thread Sricharan R
From: Mitchel Humpherys The newly added DMA_ATTR_PRIVILEGED is useful for creating mappings that are only accessible to privileged DMA engines. Implement it in dma-iommu.c so that the ARM64 DMA IOMMU mapper can make use of it. Reviewed-by: Robin Murphy Tested-by: Robin Murphy Acked-by: Will D

[RESEND PATCH V6 0/6] Add support for privileged mappings

2016-12-02 Thread Sricharan R
sure microcode is privileged Sricharan R (1): iommu/arm-smmu: Set privileged attribute to 'default' instead of 'unprivileged' Documentation/DMA-attributes.txt | 10 ++ arch/arm64/mm/dma-mapping.c | 6 +++--- drivers/dma/pl330.c | 6 -- drivers/iom

[RESEND PATCH V6 3/6] common: DMA-mapping: add DMA_ATTR_PRIVILEGED attribute

2016-12-02 Thread Sricharan R
From: Mitchel Humpherys This patch adds the DMA_ATTR_PRIVILEGED attribute to the DMA-mapping subsystem. Some advanced peripherals such as remote processors and GPUs perform accesses to DMA buffers in both privileged "supervisor" and unprivileged "user" modes. This attribute is used to indicate

[PATCH V6 6/6] iommu/arm-smmu: Set privileged attribute to 'default' instead of 'unprivileged'

2016-12-02 Thread Sricharan R
it be controlled by the pagetable settings. Signed-off-by: Sricharan R --- [V6] V5 was doing this with a 'revert'[1] patch, which no more applies on this code base. So changed the same like this. [1] https://patchwork.kernel.org/patch/9250493/ drivers/iommu/arm-smmu.c | 2 +-

[RESEND PATCH V6 5/6] dmaengine: pl330: Make sure microcode is privileged

2016-12-02 Thread Sricharan R
From: Mitchel Humpherys The PL330 performs privileged instruction fetches. This can result in SMMU permission faults on SMMUs that implement the ARMv8 VMSA, which specifies that mappings that are writeable at one execution level shall not be executable at any higher-privileged level. Fix this b

[RESEND PATCH V7 4/6] i2c: qup: Add bam dma capabilities

2016-02-22 Thread Sricharan R
transfer more than 256 bytes, without a 'stop' which is not possible otherwise. Signed-off-by: Sricharan R Reviewed-by: Andy Gross Tested-by: Archit Taneja Tested-by: Telkar Nagender --- Fixed Sparse/Static warnings. drivers/i2c/busses/i2c-q

[PATCH 0/6] Add minimal boot support for IPQ6018

2019-06-05 Thread Sricharan R
The IPQ6018 is Qualcomm’s 802.11ax SoC for Routers, Gateways and Access Points. This series adds minimal board boot support for ipq6018-cp01 board. Sricharan R (6): pinctrl: qcom: Add ipq6018 pinctrl driver dt-bindings: qcom: Add ipq6018 bindings clk: qcom: Add DT bindings for ipq6018 gcc

[PATCH 3/6] clk: qcom: Add DT bindings for ipq6018 gcc clock controller

2019-06-05 Thread Sricharan R
Add the compatible strings and the include file for ipq6018 gcc clock controller. Signed-off-by: Sricharan R Signed-off-by: anusha Signed-off-by: Abhishek Sahu --- .../devicetree/bindings/clock/qcom,gcc.txt | 1 + include/dt-bindings/clock/qcom,gcc-ipq6018.h | 405

[PATCH 2/6] dt-bindings: qcom: Add ipq6018 bindings

2019-06-05 Thread Sricharan R
Signed-off-by: Sricharan R Signed-off-by: speriaka --- Documentation/devicetree/bindings/arm/qcom.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index f6316ab..7b19028 100644 --- a

[PATCH 1/6] pinctrl: qcom: Add ipq6018 pinctrl driver

2019-06-05 Thread Sricharan R
Add initial pinctrl driver to support pin configuration with pinctrl framework for ipq6018. Signed-off-by: Sricharan R Signed-off-by: Rajkumar Ayyasamy Signed-off-by: speriaka --- .../bindings/pinctrl/qcom,ipq6018-pinctrl.txt | 186 +++ drivers/pinctrl/qcom/Kconfig

<    1   2   3   4   5   6   7   8   9   >