[PATCH v3 2/3] ARM: dts: AM33XX: Add AES data and documentation

2013-10-05 Thread Joel Fernandes
From: Mark A. Greer mgr...@animalcreek.com Add the generic AM33XX AES module's device tree data and enable it for the am335x-evm, am335x-evmsk, and am335x-bone platforms. Also add Documentation file describing the data for the AES module. [jo...@ti.com: Dropped interrupt-parent propert,

[PATCH v3 1/3] ARM: dts: AM33XX: Add SHAM data and documentation

2013-10-05 Thread Joel Fernandes
From: Mark A. Greer mgr...@animalcreek.com Add the generic AM33XX SHAM module's device tree data and enable it for the am335x-evm, am335x-evmsk, and am335x-bone platforms. Also add Documentation file describing the data for the SHAM module. [jo...@ti.com: Dropped interrupt-parrent property,

Re: [PATCH v2 0/9] ARM: dts: DT data for OMAP platforms for v3.13

2013-10-04 Thread Joel Fernandes
On 10/04/2013 09:10 AM, Benoit Cousson wrote: On 04/10/2013 04:00, Joel Fernandes wrote: On 10/03/2013 08:25 AM, Benoit Cousson wrote: + DT list and DT maintainers. Hi Joel, Thanks for the update. It looks good to me. For the new bindings added below; .../devicetree/bindings/crypto

Re: [PATCH v2 0/9] ARM: dts: DT data for OMAP platforms for v3.13

2013-10-03 Thread Joel Fernandes
On 10/03/2013 08:25 AM, Benoit Cousson wrote: + DT list and DT maintainers. Hi Joel, Thanks for the update. It looks good to me. For the new bindings added below; .../devicetree/bindings/crypto/omap-aes.txt| 34 ++ .../devicetree/bindings/crypto/omap-sham.txt

[PATCH v2 5/9] am33xx: dts: Fix AES interrupt number

2013-09-30 Thread Joel Fernandes
Signed-off-by: Joel Fernandes jo...@ti.com --- arch/arm/boot/dts/am33xx.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index 0daa1b2..d7be90a 100644 --- a/arch/arm/boot/dts/am33xx.dtsi +++ b/arch/arm/boot/dts

[PATCH v2 1/9] omap4: dts: Add node for AES

2013-09-30 Thread Joel Fernandes
OMAP4 has an AES module that uses the omap-aes crypto driver. Add DT entries for the same. Signed-off-by: Joel Fernandes jo...@ti.com --- arch/arm/boot/dts/omap4.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi index

[PATCH v2 2/9] omap4: dts: Add node for DES3DES module

2013-09-30 Thread Joel Fernandes
OMAP4 has an DES3DES module that uses the omap-des crypto driver. Add DT entries for the same. Signed-off-by: Joel Fernandes jo...@ti.com --- arch/arm/boot/dts/omap4.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi

[PATCH v2 0/9] ARM: dts: DT data for OMAP platforms for v3.13

2013-09-30 Thread Joel Fernandes
...@github.com:joelagnel/linux-kernel.git (branch for-benoit) v2 changes: - Fixed hex capitalization - Dropped interrupt-parent property and use macros Benoit Parrot (1): ARM: dts: AM33XX: Add LCDC info into am335x-evm Darren Etheridge (1): dts: boneblack: add pinmux and hdmi node to enable display Joel

[PATCH v2 8/9] ARM: dts: AM33XX: Add LCDC info into am335x-evm

2013-09-30 Thread Joel Fernandes
-by: Joel Fernandes jo...@ti.com --- arch/arm/boot/dts/am335x-evm.dts | 71 arch/arm/boot/dts/am33xx.dtsi| 9 + 2 files changed, 80 insertions(+) diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts index 86463fa..b73f41f 100644

[PATCH v2 9/9] dts: boneblack: add pinmux and hdmi node to enable display

2013-09-30 Thread Joel Fernandes
From: Darren Etheridge detheri...@ti.com Enable the hdmi output and the LCD Controller on BeagleBone Black. Also configure the correct pinmux for output of video data from the SoC to the HDMI encoder. Signed-off-by: Darren Etheridge detheri...@ti.com Signed-off-by: Joel Fernandes jo...@ti.com

[PATCH v2 7/9] ARM: am437x: dts: Add DES node for am437x

2013-09-30 Thread Joel Fernandes
AM437x SoC has a DES3DES module similar to the one on OMAP4. Add DT node for the same. Signed-off-by: Joel Fernandes jo...@ti.com --- arch/arm/boot/dts/am4372.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi index

[PATCH v2 3/9] ARM: dts: Add SHAM data and documentation for AM33XX

2013-09-30 Thread Joel Fernandes
From: Mark A. Greer mgr...@animalcreek.com Add the generic AM33XX SHAM module's device tree data and enable it for the am335x-evm, am335x-evmsk, and am335x-bone platforms. Also add Documentation file describing the data for the SHAM module. [jo...@ti.com: Dropped interrupt-parrent property] CC:

[PATCH v2 4/9] ARM: dts: Add AES data and documentation for AM33XX

2013-09-30 Thread Joel Fernandes
From: Mark A. Greer mgr...@animalcreek.com Add the generic AM33XX AES module's device tree data and enable it for the am335x-evm, am335x-evmsk, and am335x-bone platforms. Also add Documentation file describing the data for the AES module. [jo...@ti.com: Dropped interrupt-parent propert] CC:

[PATCH v2 6/9] ARM: am437x: dts: Add AES node for am437x

2013-09-30 Thread Joel Fernandes
AM437x SoC has AES module similar to the one on OMAP4. Add DT node for the same. Signed-off-by: Joel Fernandes jo...@ti.com --- arch/arm/boot/dts/am4372.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi index 0fe393a

Re: [PATCH v3] ARM: EDMA: Fix clearing of unused list for DT DMA resources

2013-09-27 Thread Joel Fernandes
On 09/27/2013 02:49 AM, Sekhar Nori wrote: On 9/27/2013 5:58 AM, Joel Fernandes wrote: On 09/26/2013 06:13 PM, Olof Johansson wrote: On Thu, Sep 26, 2013 at 2:55 PM, Joel Fernandes jo...@ti.com wrote: HWMOD removal for MMC is breaking edma_start as the events are being manually triggered

Re: [PATCH v3] ARM: EDMA: Fix clearing of unused list for DT DMA resources

2013-09-27 Thread Joel Fernandes
On 09/27/2013 04:04 AM, Sekhar Nori wrote: On 9/27/2013 5:58 AM, Joel Fernandes wrote: On 09/26/2013 06:13 PM, Olof Johansson wrote: On Thu, Sep 26, 2013 at 2:55 PM, Joel Fernandes jo...@ti.com wrote: HWMOD removal for MMC is breaking edma_start as the events are being manually triggered

[PATCH v3] ARM: EDMA: Fix clearing of unused list for DT DMA resources

2013-09-26 Thread Joel Fernandes
Lindgren t...@atomide.com Cc: Olof Johansson o...@lixom.net Cc: Nishanth Menon n...@ti.com Cc: Pantel Antoniou pa...@antoniou-consulting.com Cc: Jason Kridner jkrid...@beagleboard.org Cc: Koen Kooi k...@dominion.thruhere.net Signed-off-by: Joel Fernandes jo...@ti.com --- Just resending this patch

Re: [PATCH v3] ARM: EDMA: Fix clearing of unused list for DT DMA resources

2013-09-26 Thread Joel Fernandes
On 09/26/2013 06:13 PM, Olof Johansson wrote: On Thu, Sep 26, 2013 at 2:55 PM, Joel Fernandes jo...@ti.com wrote: HWMOD removal for MMC is breaking edma_start as the events are being manually triggered due to unused channel list not being clear. The above issue is fixed by reading the dmas

[PATCH 2/9] omap4: dts: Add node for DES3DES module

2013-09-25 Thread Joel Fernandes
OMAP4 has an DES3DES module that uses the omap-des crypto driver. Add DT entries for the same. Signed-off-by: Joel Fernandes jo...@ti.com --- arch/arm/boot/dts/omap4.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/omap4.dtsi b/arch/arm/boot/dts/omap4.dtsi

[PATCH 3/9] ARM: dts: Add SHAM data and documentation for AM33XX

2013-09-25 Thread Joel Fernandes
From: Mark A. Greer mgr...@animalcreek.com Add the generic AM33XX SHAM module's device tree data and enable it for the am335x-evm, am335x-evmsk, and am335x-bone platforms. Also add Documentation file describing the data for the SHAM module. CC: Paul Walmsley p...@pwsan.com Signed-off-by: Mark

[PATCH 5/9] am33xx: dts: Fix AES interrupt number

2013-09-25 Thread Joel Fernandes
Signed-off-by: Joel Fernandes jo...@ti.com --- arch/arm/boot/dts/am33xx.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index 96c4b44..1a5575d 100644 --- a/arch/arm/boot/dts/am33xx.dtsi +++ b/arch/arm/boot/dts

[PATCH 8/9] ARM: dts: AM33XX: Add LCDC info into am335x-evm

2013-09-25 Thread Joel Fernandes
-by: Joel Fernandes jo...@ti.com --- arch/arm/boot/dts/am335x-evm.dts | 71 arch/arm/boot/dts/am33xx.dtsi| 9 + 2 files changed, 80 insertions(+) diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts index 86463fa..b73f41f 100644

[PATCH 0/9] ARM: dts: DT data for OMAP platforms for v3.13

2013-09-25 Thread Joel Fernandes
...@github.com:joelagnel/linux-kernel.git (branch for-benoit) Benoit Parrot (1): ARM: dts: AM33XX: Add LCDC info into am335x-evm Darren Etheridge (1): dts: boneblack: add pinmux and hdmi node to enable display Joel Fernandes (5): omap4: dts: Add node for AES omap4: dts: Add node for DES3DES module

[PATCH 9/9] dts: boneblack: add pinmux and hdmi node to enable display

2013-09-25 Thread Joel Fernandes
From: Darren Etheridge detheri...@ti.com Enable the hdmi output and the LCD Controller on BeagleBone Black. Also configure the correct pinmux for output of video data from the SoC to the HDMI encoder. Signed-off-by: Darren Etheridge detheri...@ti.com Signed-off-by: Joel Fernandes jo...@ti.com

[PATCH 3/3] dma: edma: Increase maximum SG limit to 20

2013-09-23 Thread Joel Fernandes
a comment clarifying this. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/dma/edma.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 9b63e1e..407b496 100644 --- a/drivers/dma/edma.c +++ b/drivers/dma/edma.c @@ -46,8

[PATCH 1/3] dma: edma: Split out PaRAM set calculations into its own function

2013-09-23 Thread Joel Fernandes
to all DMA types must be set separately such as setting of interrupts. This function takes care of the most-common attributes. Also added comments clarifying A-sync case calculations. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/dma/edma.c | 198

[PATCH 0/3] dma: edma: Add cyclic DMA support

2013-09-23 Thread Joel Fernandes
dma/cyclic) Joel Fernandes (3): dma: edma: Split out PaRAM set calculations into its own function dma: edma: Add support for Cyclic DMA dma: edma: Increase maximum SG limit to 20 drivers/dma/edma.c | 350 + 1 file changed, 273 insertions

[PATCH 2/3] dma: edma: Add support for Cyclic DMA

2013-09-23 Thread Joel Fernandes
the driver can allocate for a particular descriptor and error out on such cases. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/dma/edma.c | 159 ++--- 1 file changed, 151 insertions(+), 8 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma

Re: [PATCH v3] ARM: EDMA: Fix clearing of unused list for DT DMA resources

2013-09-17 Thread Joel Fernandes
binding updates. Following this suggestion, I've update the patch to the below: ---8--- From: Joel Fernandes jo...@ti.com Subject: [PATCH v6] ARM: EDMA: Fix clearing of unused list for DT DMA resources HWMOD removal for MMC is breaking edma_start as the events are being manually triggered due

Re: [PATCH v3] ARM: EDMA: Fix clearing of unused list for DT DMA resources

2013-09-16 Thread Joel Fernandes
On 09/16/2013 06:48 AM, Sekhar Nori wrote: Hi Joel, On Saturday 14 September 2013 06:27 AM, Joel Fernandes wrote: From: Joel Fernandes jo...@ti.com Subject: [PATCH v4] ARM: EDMA: Fix clearing of unused list for DT DMA resources HWMOD removal for MMC is breaking edma_start as the events

Re: [PATCH v3] ARM: EDMA: Fix clearing of unused list for DT DMA resources

2013-09-16 Thread Joel Fernandes
On 09/17/2013 12:08 AM, Sekhar Nori wrote: [..] I still cannot find any users of edma in the device tree sources either in linux-next or linus/master. Why cannot this wait until v3.13? I understand this affects only DT users of EDMA. But I get so many private reports of breakage due to this

Re: [PATCH v3] ARM: EDMA: Fix clearing of unused list for DT DMA resources

2013-09-13 Thread Joel Fernandes
On 09/12/2013 04:58 AM, Sekhar Nori wrote: On Wednesday 11 September 2013 12:22 AM, Joel Fernandes wrote: HWMOD removal for MMC is breaking edma_start as the events are being manually triggered due to unused channel list not being clear. [..] It is better to send one version with all comments

Re: [PATCH 0/3] ARM: dts: Enable EDMA, MMC and SPI on AM33XX for v3.13

2013-09-11 Thread Joel Fernandes
On 09/11/2013 12:18 AM, Koen Kooi wrote: Op 10 sep. 2013, om 22:14 heeft Joel Fernandes jo...@ti.com het volgende geschreven: On 09/10/2013 02:39 PM, Koen Kooi wrote: Op 10 sep. 2013, om 21:24 heeft Joel Fernandes jo...@ti.com het volgende geschreven: Here are last few patches

Re: [PATCH] RFC: interrupt consistency check for OF GPIO IRQs

2013-09-10 Thread Joel Fernandes
On 07/31/2013 03:35 AM, Javier Martinez Canillas wrote: On 07/31/2013 01:44 AM, Linus Walleij wrote: On Tue, Jul 30, 2013 at 6:30 AM, Grant Likely grant.lik...@linaro.org wrote: On Mon, Jul 29, 2013 at 6:36 AM, Linus Walleij linus.wall...@linaro.org wrote: To solve this dilemma, perform an

Re: [PATCH] RFC: interrupt consistency check for OF GPIO IRQs

2013-09-10 Thread Joel Fernandes
On 09/10/2013 08:17 AM, Javier Martinez Canillas wrote: On 09/10/2013 09:00 AM, Joel Fernandes wrote: On 07/31/2013 03:35 AM, Javier Martinez Canillas wrote: On 07/31/2013 01:44 AM, Linus Walleij wrote: On Tue, Jul 30, 2013 at 6:30 AM, Grant Likely grant.lik...@linaro.org wrote: On Mon, Jul

Re: [PATCH 1/3] crypto: omap-des: Add omap-des driver for OMAP4/AM43xx

2013-09-10 Thread Joel Fernandes
); + +MODULE_DESCRIPTION(OMAP DES hw acceleration support.); +MODULE_LICENSE(GPL v2); +MODULE_AUTHOR(Joel Fernandes jo...@ti.com); -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo

Re: [PATCH] RFC: interrupt consistency check for OF GPIO IRQs

2013-09-10 Thread Joel Fernandes
On 09/10/2013 10:48 AM, Javier Martinez Canillas wrote: On 09/10/2013 05:00 PM, Joel Fernandes wrote: On 09/10/2013 08:17 AM, Javier Martinez Canillas wrote: On 09/10/2013 09:00 AM, Joel Fernandes wrote: On 07/31/2013 03:35 AM, Javier Martinez Canillas wrote: On 07/31/2013 01:44 AM, Linus

[PATCH v3] ARM: EDMA: Fix clearing of unused list for DT DMA resources

2013-09-10 Thread Joel Fernandes
the of_* helpers to parse the arguments in the dmas phandle list. Reviewed-by: Sekhar Nori nsek...@ti.com Reported-by: Balaji T K balaj...@ti.com Cc: Pantel Antoniou pa...@antoniou-consulting.com Signed-off-by: Joel Fernandes jo...@ti.com --- This patch is a repost of v2 with minor change of return

[PATCH 3/3] ARM: dts: add AM33XX MMC support and documentation

2013-09-10 Thread Joel Fernandes
-hs-handling added Signed-off-by: Matt Porter mpor...@ti.com Acked-by: Tony Lindgren t...@atomide.com Signed-off-by: Joel Fernandes jo...@ti.com --- .../devicetree/bindings/mmc/ti-omap-hsmmc.txt | 26 ++- arch/arm/boot/dts/am335x-bone.dts | 11 +++ arch/arm/boot

[PATCH 0/3] ARM: dts: Enable EDMA, MMC and SPI on AM33XX for v3.13

2013-09-10 Thread Joel Fernandes
Here are last few patches required to add EDMA and MMC/SPI support for AM33xx. Now that all dependent DMA patches and fixes are in linux next or mainline, except for [1] which should go in for 3.12 -rc cycle, it is safe to enable MMC and SPI support and this patch series enables it. These are

[PATCH 2/3] ARM: dts: add AM33XX SPI DMA support

2013-09-10 Thread Joel Fernandes
From: Matt Porter mpor...@ti.com Adds DMA resources to the AM33XX SPI nodes. Signed-off-by: Matt Porter mpor...@ti.com Signed-off-by: Joel A Fernandes joelag...@ti.com --- arch/arm/boot/dts/am33xx.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi

[PATCH 1/3] ARM: dts: add AM33XX EDMA support

2013-09-10 Thread Joel Fernandes
From: Matt Porter m...@ti.com Adds AM33XX EDMA support to the am33xx.dtsi as documented in Documentation/devicetree/bindings/dma/ti-edma.txt [Joel Fernandes jo...@ti.com] Drop DT entries that are non-hardware-description as discussed in [1] [1] https://patchwork.kernel.org/patch/2226761

Re: [PATCH 0/3] ARM: dts: Enable EDMA, MMC and SPI on AM33XX for v3.13

2013-09-10 Thread Joel Fernandes
On 09/10/2013 02:39 PM, Koen Kooi wrote: Op 10 sep. 2013, om 21:24 heeft Joel Fernandes jo...@ti.com het volgende geschreven: Here are last few patches required to add EDMA and MMC/SPI support for AM33xx. Now that all dependent DMA patches and fixes are in linux next or mainline

Re: [PATCH] ARM: OMAP2+: am335x-bone*: add DT for BeagleBone Black

2013-09-09 Thread Joel Fernandes
On 09/09/2013 01:43 PM, Koen Kooi wrote: Op 9 sep. 2013, om 20:27 heeft Joel Fernandes jo...@ti.com het volgende geschreven: On 09/09/2013 10:51 AM, Koen Kooi wrote: Op 9 sep. 2013, om 17:23 heeft Kevin Hilman khil...@linaro.org het volgende geschreven: Koen Kooi k

Re: [PATCH] ARM: OMAP2+: am335x-bone*: add DT for BeagleBone Black

2013-09-09 Thread Joel Fernandes
On 09/09/2013 10:51 AM, Koen Kooi wrote: Op 9 sep. 2013, om 17:23 heeft Kevin Hilman khil...@linaro.org het volgende geschreven: Koen Kooi k...@dominion.thruhere.net writes: The BeagleBone Black is basically a regular BeagleBone with eMMC and HDMI added, so create a common dtsi both

Re: [PATCH] ARM: OMAP2+: am335x-bone*: add DT for BeagleBone Black

2013-09-09 Thread Joel Fernandes
On 09/09/2013 01:51 PM, Joel Fernandes wrote: On 09/09/2013 01:43 PM, Koen Kooi wrote: Op 9 sep. 2013, om 20:27 heeft Joel Fernandes jo...@ti.com het volgende geschreven: On 09/09/2013 10:51 AM, Koen Kooi wrote: Op 9 sep. 2013, om 17:23 heeft Kevin Hilman khil...@linaro.org het volgende

Re: [PATCH] ARM: OMAP2+: am335x-bone*: add DT for BeagleBone Black

2013-09-09 Thread Joel Fernandes
On 09/09/2013 03:00 PM, Koen Kooi wrote: Op 9 sep. 2013, om 21:50 heeft Joel Fernandes jo...@ti.com het volgende geschreven: On 09/09/2013 01:51 PM, Joel Fernandes wrote: On 09/09/2013 01:43 PM, Koen Kooi wrote: Op 9 sep. 2013, om 20:27 heeft Joel Fernandes jo...@ti.com het volgende

Re: [PATCH] ARM: OMAP2+: am335x-bone*: add DT for BeagleBone Black

2013-09-09 Thread Joel Fernandes
On 09/09/2013 03:12 PM, Joel Fernandes wrote: On 09/09/2013 03:00 PM, Koen Kooi wrote: Op 9 sep. 2013, om 21:50 heeft Joel Fernandes jo...@ti.com het volgende geschreven: On 09/09/2013 01:51 PM, Joel Fernandes wrote: On 09/09/2013 01:43 PM, Koen Kooi wrote: Op 9 sep. 2013, om 20:27 heeft

Re: [PATCH] arm: dts: am33xx: Add mmc nodes for am33xx platform

2013-09-06 Thread Joel Fernandes
Hi George, On 09/06/2013 03:21 AM, George Cherian wrote: Add mmc nodes for am33xx platforms Signed-off-by: George Cherian george.cher...@ti.com --- Verified after applying [1] and [2] [1] - [PATCH v4 0/6] dma: edma: Support scatter-lists of any length -

Re: [PATCH v2] ARM: EDMA: Fix clearing of unused list for DT DMA resources

2013-09-06 Thread Joel Fernandes
On 09/06/2013 02:15 PM, Mark Jackson wrote: On 06/09/13 20:13, Mark Jackson wrote: On 23/08/13 20:53, Joel Fernandes wrote: HWMOD removal for MMC and Crypto is breaking edma_start as the events are being manually triggered due to unused channel list not being clear. Atleast breakage has been

Re: [PATCH v2] ARM: dts: add AM33XX EDMA support

2013-09-04 Thread Joel Fernandes
On 09/04/2013 11:31 AM, Benoit Cousson wrote: Hi Joel, On 31/08/2013 03:19, Joel Fernandes wrote: Hi Benoit, On 08/26/2013 03:36 AM, Benoit Cousson wrote: - minus all the TI emails which are not working anymore :-( I've just sent my previous email too soon... Now the patch is different

Re: [PATCH v4 2/6] dma: edma: Write out and handle MAX_NR_SG at a given time

2013-09-03 Thread Joel Fernandes
On 09/02/2013 11:08 PM, Vinod Koul wrote: On Thu, Aug 29, 2013 at 06:05:41PM -0500, Joel Fernandes wrote: Process SG-elements in batches of MAX_NR_SG if they are greater than MAX_NR_SG. Due to this, at any given time only those many slots will be used in the given channel no matter how long

Re: [PATCH v2] ARM: dts: add AM33XX EDMA support

2013-08-30 Thread Joel Fernandes
From: Matt Porter mpor...@ti.com Subject: [PATCH] ARM: dts: add AM33XX EDMA support Adds AM33XX EDMA support to the am33xx.dtsi as documented in Documentation/devicetree/bindings/dma/ti-edma.txt v2 changes: Drop DT entries that are non-hardware-description Joel Fernandes jo...@ti.com Discussion

[PATCH v4 1/6] dma: edma: Setup parameters to DMA MAX_NR_SG at a time

2013-08-29 Thread Joel Fernandes
, still only 10 slots will be allocated to DMA the entire SG list of size 40. Also enable TC interrupts for slots that are a last in a current iteration, or that fall on a MAX_NR_SG boundary. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/dma/edma.c | 18 +++--- 1 file changed

[PATCH v4 3/6] ARM: edma: Add function to manually trigger an EDMA channel

2013-08-29 Thread Joel Fernandes
Manual trigger for events missed as a result of splitting a scatter gather list and DMA'ing it in batches. Add a helper function to trigger a channel incase any such events are missed. Signed-off-by: Joel Fernandes jo...@ti.com --- arch/arm/common/edma.c | 17

[PATCH v4 5/6] dma: edma: Leave linked to Null slot instead of DUMMY slot

2013-08-29 Thread Joel Fernandes
an error condition and detect the channel that missed it. Signed-off-by: Joel Fernandes jo...@ti.com dma: edma: Link to dummy slot only for last SG list split Consider the case where we have a scatter-list like: SG1-SG2-SG3-SG4-SG5-SG6-Null For ex, for a MAX_NR_SG of 2, earlier we were splitting

[PATCH v4 4/6] dma: edma: Find missed events and issue them

2013-08-29 Thread Joel Fernandes
and allow the manual triggerring to happen in edma_execute which will be eventually called. This fixes the above mentioned race conditions seen with the crypto drivers. [1] http://marc.info/?l=linux-omapm=137416733628831w=2 Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/dma/edma.c | 50

[PATCH v4 0/6] dma: edma: Support scatter-lists of any length

2013-08-29 Thread Joel Fernandes
-omapm=137416733628831w=2 Joel Fernandes (6): dma: edma: Setup parameters to DMA MAX_NR_SG at a time dma: edma: Write out and handle MAX_NR_SG at a given time ARM: edma: Add function to manually trigger an EDMA channel dma: edma: Find missed events and issue them dma: edma: Leave linked

[PATCH v4 6/6] dma: edma: Remove limits on number of slots

2013-08-29 Thread Joel Fernandes
With this series, this check is no longer required and we shouldn't need to reject drivers DMA'ing more than the MAX number of slots. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/dma/edma.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c

[PATCH v4 2/6] dma: edma: Write out and handle MAX_NR_SG at a given time

2013-08-29 Thread Joel Fernandes
-by: Joel Fernandes jo...@ti.com --- drivers/dma/edma.c | 79 -- 1 file changed, 53 insertions(+), 26 deletions(-) diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index e522ad5..732829b 100644 --- a/drivers/dma/edma.c +++ b/drivers/dma/edma.c

[PATCH 0/3] crypto: omap-des: Add driver for OMAP DES module

2013-08-29 Thread Joel Fernandes
OMAP4 and AM437x SoCs have a DES3DES module which is capable of performing DES encrypt/decrypt and 3DES ede encrypt/decrypt operations. Following patch series adds support for the same. Tests have been performed with crypto/testmgr and all tests are successful. Joel Fernandes (3): crypto: omap

[PATCH 1/3] crypto: omap-des: Add omap-des driver for OMAP4/AM43xx

2013-08-29 Thread Joel Fernandes
. Tests have been conducted with the CRYPTO test manager, and functionality is verified at different page length alignments. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/omap-des.c | 1192 + 1 file changed, 1192 insertions(+) create mode

[PATCH 2/3] crypto: omap-des: Add config and build options

2013-08-29 Thread Joel Fernandes
Add config and build options for the newly added omap-des driver. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/Kconfig | 11 +++ drivers/crypto/Makefile | 1 + 2 files changed, 12 insertions(+) diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index e289afa

Re: [PATCH 1/3] crypto: omap-des: Add omap-des driver for OMAP4/AM43xx

2013-08-29 Thread Joel Fernandes
On 08/29/2013 06:27 PM, Joel Fernandes wrote: Add omap-des driver with platform data for OMAP4. Support added for DES ECB and CBC modes. Where possible, code is reused from omap-aes driver with changes made for adjusting key size, block size, removing non-existent encryption modes

Re: [PATCH] ARM: dts: add AM33XX EDMA support

2013-08-26 Thread Joel Fernandes
Hi Benoit, On 08/26/2013 03:33 AM, Benoit Cousson wrote: Hi Sebastian, Is this patch different from that one: http://www.mail-archive.com/linux-omap@vger.kernel.org/msg92176.html Lokesh just pointed me this patch because it was missing for the SHAM/AES series from Mark Greer.

Re: [PATCH v2] ARM: EDMA: Fix clearing of unused list for DT DMA resources

2013-08-26 Thread Joel Fernandes
On 08/26/2013 05:46 AM, Sekhar Nori wrote: On Saturday 24 August 2013 01:23 AM, Joel Fernandes wrote: HWMOD removal for MMC and Crypto is breaking edma_start as the events are being manually triggered due to unused channel list not being clear. Atleast breakage has been seen

[PATCH] ARM: EDMA: Fix clearing of unused list for DT DMA resources

2013-08-26 Thread Joel Fernandes
the of_* helpers to parse the arguments in the dmas phandle list. Reviewed-by: Sekhar Nori nsek...@ti.com Reported-by: Balaji T K balaj...@ti.com Cc: Pantel Antoniou pa...@antoniou-consulting.com Signed-off-by: Joel Fernandes jo...@ti.com --- Changes since v1, in v2 and v3: - Reduced indentation of non

Re: [PATCH] ARM: dts: add AM33XX EDMA support

2013-08-24 Thread Joel Fernandes
Updating CC with Matt's current email address. On 08/24/2013 01:02 PM, Sergei Shtylyov wrote: Hello. On 08/23/2013 11:06 PM, Sebastian Andrzej Siewior wrote: From: Matt Porter m...@ti.com Adds AM33XX EDMA support to the am33xx.dtsi as documented in

Re: [PATCH v2 0/2] ARM: dts: Add SHAM and AES DT information

2013-08-23 Thread Joel Fernandes
On 08/22/2013 04:24 PM, Mark A. Greer wrote: On Thu, Aug 22, 2013 at 10:34:06AM +0200, Benoit Cousson wrote: Hi Lokesh, On 22/08/2013 05:50, Lokesh Vutla wrote: Hi Benoit, On Wednesday 21 August 2013 07:11 PM, Benoit Cousson wrote: Hi Mark, In fact I cannot even apply these patches since

[PATCH v2] ARM: EDMA: Fix clearing of unused list for DT DMA resources

2013-08-23 Thread Joel Fernandes
Antoniou pa...@antoniou-consulting.com Signed-off-by: Joel Fernandes jo...@ti.com --- Note: Patch should go in for -rc cycle as it fixes existing crypto drivers. arch/arm/common/edma.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/arch/arm/common/edma.c b

Re: [PATCH v2 04/14] crypto: omap-aes: Simplify DMA usage by using direct SGs

2013-08-20 Thread Joel Fernandes
On 08/20/2013 07:57 AM, Lokesh Vutla wrote: Hi Joel, On Sunday 18 August 2013 08:12 AM, Joel Fernandes wrote: In early version of this driver, assumptions were made such as DMA layer requires contiguous buffers etc. Due to this, new buffers were allocated, mapped and used for DMA

[PATCH v2 14/14] crypto: omap-aes: Kconfig: Add build support for AM437x

2013-08-17 Thread Joel Fernandes
For AM437x SoC, ARCH_OMAP2 and ARCH_OMAP3 is not enabled in the defconfig. We follow same thing as SHA driver, and add depends on ARCH_OMAP2PLUS so that the config is selectable for AES driver on AM437x SoC builds. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/Kconfig |2

[PATCH v2 01/14] crypto: scatterwalk: Add support for calculating number of SG elements

2013-08-17 Thread Joel Fernandes
Crypto layer only passes nbytes to encrypt but in omap-aes driver we need to know number of SG elements to pass to dmaengine slave API. We add function for the same to scatterwalk library. Signed-off-by: Joel Fernandes jo...@ti.com --- crypto/scatterwalk.c | 22

[PATCH v2 00/14] crypto: omap-aes: Improve DMA, add PIO mode and support for AM437x

2013-08-17 Thread Joel Fernandes
: omap-aes: Add useful debug macros will generate a checkpatch error, which cannot be fixed. Refer to patch for error message and reasons for why cannot be fixed, thanks. Joel Fernandes (14): crypto: scatterwalk: Add support for calculating number of SG elements crypto: omap-aes: Add

[PATCH v2 08/14] crypto: omap-aes: PIO mode: Add IRQ handler and walk SGs

2013-08-17 Thread Joel Fernandes
errors. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/omap-aes.c | 90 + 1 file changed, 90 insertions(+) diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index 9a964e8..889dc99 100644 --- a/drivers/crypto/omap-aes.c

[PATCH v2 06/14] crypto: omap-aes: Remove previously used intermediate buffers

2013-08-17 Thread Joel Fernandes
in omap_aes_device. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/omap-aes.c | 90 - 1 file changed, 90 deletions(-) diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index 5e034a1..bbdd1c3 100644 --- a/drivers/crypto/omap

[PATCH v2 12/14] crypto: omap-aes: Convert kzalloc to devm_kzalloc

2013-08-17 Thread Joel Fernandes
Use devm_kzalloc instead of kzalloc. With this change, there is no need to call kfree in error/exit paths. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/omap-aes.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto

[PATCH v2 02/14] crypto: omap-aes: Add useful debug macros

2013-08-17 Thread Joel Fernandes
that requires a do-while loop, but there is code that will break if a do-while loop is used in the macro so we ignore the checkpatch error in this case. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/omap-aes.c | 22 +- 1 file changed, 21 insertions(+), 1 deletion

[PATCH v2 07/14] crypto: omap-aes: Add IRQ info and helper macros

2013-08-17 Thread Joel Fernandes
Add IRQ information to pdata and helper macros. These are required for PIO-mode support. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/omap-aes.c |8 1 file changed, 8 insertions(+) diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index bbdd1c3

[PATCH v2 10/14] crypto: omap-aes: Switch to PIO mode during probe

2013-08-17 Thread Joel Fernandes
in this mode. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/omap-aes.c | 28 +++- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index 62b3260..d214dbf 100644 --- a/drivers/crypto/omap-aes.c +++ b

[PATCH v2 09/14] crypto: omap-aes: PIO mode: platform data for OMAP4/AM437x and trigger

2013-08-17 Thread Joel Fernandes
We initialize the scatter gather walk lists needed for PIO mode and avoid all DMA paths such as mapping/unmapping buffers by checking for the pio_only flag. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/omap-aes.c | 43 ++- 1 file changed

[PATCH v2 04/14] crypto: omap-aes: Simplify DMA usage by using direct SGs

2013-08-17 Thread Joel Fernandes
of atleast ~20% seen with encrypting a buffer size of 8K (1800 ops/sec vs 1400 ops/sec). Improvement will be higher for much larger blocks though such benchmarking is left as an exercise for the reader. Also DMA usage is much more simplified and coherent with rest of the code. Signed-off-by: Joel

[PATCH v2 05/14] crypto: omap-aes: Sync SG before DMA operation

2013-08-17 Thread Joel Fernandes
Earlier functions that did a similar sync are replaced by the dma_sync_sg_* which can operate on entire SG list. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/omap-aes.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap

[PATCH v2 13/14] crypto: omap-aes: Convert request_irq to devm_request_irq

2013-08-17 Thread Joel Fernandes
Keeps request_irq exit/error code paths simpler. Suggested-by: Lokesh Vutla lokeshvu...@ti.com Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/omap-aes.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap

[PATCH v2 03/14] crypto: omap-aes: Populate number of SG elements

2013-08-17 Thread Joel Fernandes
are used later. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/omap-aes.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index 26b802b..e369e6e 100644 --- a/drivers/crypto/omap-aes.c +++ b/drivers/crypto/omap-aes.c

[PATCH v2 11/14] crypto: omap-aes: Add support for cases of unaligned lengths

2013-08-17 Thread Joel Fernandes
then copy data into the buffer, and copy data out of it on completion. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/omap-aes.c | 86 +++-- 1 file changed, 83 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto

Re: [PATCH v2 02/14] crypto: omap-aes: Add useful debug macros

2013-08-17 Thread Joel Fernandes
On 08/17/2013 11:22 PM, Joe Perches wrote: On Sat, 2013-08-17 at 21:42 -0500, Joel Fernandes wrote: When DEBUG is enabled, these macros can be used to print variables in integer and hex format, and clearly display which registers, offsets and values are being read/written , including printing

Re: [PATCH 00/10] crypto: omap-aes: DMA and PIO mode improvements

2013-08-15 Thread Joel Fernandes
On 08/15/2013 12:58 AM, Dmitry Kasatkin wrote: On 15/08/13 02:30, Joel Fernandes wrote: On 08/14/2013 06:12 PM, Joel Fernandes wrote: This patch series is a rewrite of the DMA portion of omap-aes driver and also adds support for PIO mode. Both these modes, give better performance than before

Re: [PATCH 02/10] crypto: omap-aes: Add useful debug macros

2013-08-15 Thread Joel Fernandes
On 08/15/2013 01:23 AM, Dmitry Kasatkin wrote: On 15/08/13 06:12, Joel Fernandes wrote: On 08/14/2013 07:47 PM, Joe Perches wrote: On Wed, 2013-08-14 at 18:40 -0500, Joel Fernandes wrote: On 08/14/2013 06:29 PM, Joe Perches wrote: On Wed, 2013-08-14 at 18:12 -0500, Joel Fernandes wrote: When

dma_unmap causing issues with __get_free_pages

2013-08-15 Thread Joel Fernandes
Hi, I'm having some trouble with using the dma_map/unmap API. On unmapping a particular page using dma_unmap, it seems that the PG_dcache_clean flag is set in the page-flags. This is set by the following statement in __dma_page_dev_to_cpu function in arch/arm/mm/dma-mapping.c

Re: dma_unmap causing issues with __get_free_pages

2013-08-15 Thread Joel Fernandes
Hi Russell, On 08/15/2013 06:55 AM, Russell King - ARM Linux wrote: On Thu, Aug 15, 2013 at 02:35:59AM -0500, Joel Fernandes wrote: Hi, I'm having some trouble with using the dma_map/unmap API. On unmapping a particular page using dma_unmap, it seems that the PG_dcache_clean flag is set

Re: [PATCH v3 00/12] edma: Add support for SG lists of any length

2013-08-15 Thread Joel Fernandes
be detected as error conditions. This should architecturally be the final version of the patch series to add DMA support for SG lists of any length. Thanks, -Joel On 08/05/2013 11:14 AM, Joel Fernandes wrote: Here is a more improved approach for DMA support of SG lists of any length in the EDMA

[PATCH 06/10] crypto: omap-aes: Remove previously used intermediate buffers

2013-08-14 Thread Joel Fernandes
in omap_aes_device. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/omap-aes.c | 90 - 1 file changed, 90 deletions(-) diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index df2f867..71da52b 100644 --- a/drivers/crypto/omap-aes.c

[PATCH 01/10] crypto: scatterwalk: Add support for calculating number of SG elements

2013-08-14 Thread Joel Fernandes
Crypto layer only passes nbytes to encrypt but in omap-aes driver we need to know number of SG elements to pass to dmaengine slave API. We add function for the same to scatterwalk library. Signed-off-by: Joel Fernandes jo...@ti.com --- crypto/scatterwalk.c | 22

[PATCH 03/10] crypto: omap-aes: Populate number of SG elements

2013-08-14 Thread Joel Fernandes
are used later. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/omap-aes.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index 3838e0a..b7189a8 100644 --- a/drivers/crypto/omap-aes.c +++ b/drivers/crypto/omap-aes.c

[PATCH 05/10] crypto: omap-aes: Sync SG before DMA operation

2013-08-14 Thread Joel Fernandes
Earlier functions that did a similar sync are replaced by the dma_sync_sg_* which can operate on entire SG list. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/omap-aes.c |4 1 file changed, 4 insertions(+) diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap

[PATCH 00/10] crypto: omap-aes: DMA and PIO mode improvements

2013-08-14 Thread Joel Fernandes
(647168 bytes) Future work in this direction would be to dynamically change between PIO/DMA mode based on the block size. Joel Fernandes (10): crypto: scatterwalk: Add support for calculating number of SG elements crypto: omap-aes: Add useful debug macros crypto: omap-aes: Populate number

[PATCH 04/10] crypto: omap-aes: Simplify DMA usage by using direct SGs

2013-08-14 Thread Joel Fernandes
performance (atleast 35% seen with encrypting a buffer size of 8K (2800 ops/sec vs 1800 ops/sec). Also DMA usage is much more simplified and coherent with rest of the code. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/omap-aes.c | 147 - 1 file

[PATCH 10/10] crypto: omap-aes: Switch to PIO mode in probe function

2013-08-14 Thread Joel Fernandes
in this mode. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/omap-aes.c | 28 +++- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index 54f2729..34e3b77 100644 --- a/drivers/crypto/omap-aes.c +++ b

[PATCH 09/10] crypto: omap-aes: PIO mode: platform data for OMAP4 and trigger it

2013-08-14 Thread Joel Fernandes
We initialize the scatter gather walk lists needed for PIO mode and avoid all DMA paths such as mapping/unmapping buffers by checking for the pio_only flag. Signed-off-by: Joel Fernandes jo...@ti.com --- drivers/crypto/omap-aes.c | 43 ++- 1 file changed

<    1   2   3   4   >