Re: [PATCH 0/4] Add Ethernet support on STM32F429

2016-02-12 Thread Alexandre Torgue
Hi David, I will fix it in next patch version. I just find a corruption issue in stmmac driver, I will also fix it in next version. Best regards Alex 2016-02-09 10:52 GMT+01:00 David Miller <da...@davemloft.net>: > From: Alexandre TORGUE <alexandre.tor...@gmail.com> > Date: W

[PATCH 3/4] net: ethernet: stmmac: add support of Synopsys 3.50a MAC IP

2016-02-03 Thread Alexandre TORGUE
Adds support of Synopsys 3.50a MAC IP in stmmac driver. Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index 6a52fa1..6cca626 100644 --- a/drive

[PATCH 0/4] Add Ethernet support on STM32F429

2016-02-03 Thread Alexandre TORGUE
is not yet avalaible. Regards Alexandre Alexandre TORGUE (4): net: ethernet: dwmac: add Ethernet glue logic for stm32 chip Documentation: Bindings: Add STM32 DWMAC glue net: ethernet: stmmac: add support of Synopsys 3.50a MAC IP ARM: STM32: Enable Ethernet in stm32_defconfig

[PATCH 2/4] Documentation: Bindings: Add STM32 DWMAC glue

2016-02-03 Thread Alexandre TORGUE
Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/Documentation/devicetree/bindings/net/stm32-dwmac.txt b/Documentation/devicetree/bindings/net/stm32-dwmac.txt new file mode 100644 index 000..18734b3 --- /dev/null +++ b/Documentation/devicetree/bindings/net

[PATCH 4/4] ARM: STM32: Enable Ethernet in stm32_defconfig

2016-02-03 Thread Alexandre TORGUE
Enable basic Ethernet support (IPV4) for stm32 defconfig. Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index ec52505..8b8abe0 100644 --- a/arch/arm/configs/stm32_defconfig +++ b/arch/arm/c

[PATCH 1/4] net: ethernet: dwmac: add Ethernet glue logic for stm32 chip

2016-02-03 Thread Alexandre TORGUE
stm324xx family chips support Synopsys MAC 3.510 IP. This patch adds settings for logical glue logic: -clocks -mode selection MII or RMII. Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/Kconfig b/drivers/net/ethernet/stmicro/

Re: [PATCH v2 2/4] Documentation: Bindings: Add STM32 DWMAC glue

2016-02-24 Thread Alexandre Torgue
2016-02-23 23:37 GMT+01:00 Joachim Eastwood <manab...@gmail.com>: > Hi Alexandre, > > You should copy 'devicet...@vger.kernel.org' on bindings doc. Adding cc here. > > On 23 February 2016 at 16:10, Alexandre TORGUE > <alexandre.tor...@gmail.com> wrote: >

Re: [PATCH v2 1/4] net: ethernet: dwmac: add Ethernet glue logic for stm32 chip

2016-02-24 Thread Alexandre Torgue
2016-02-23 23:16 GMT+01:00 Joachim Eastwood <manab...@gmail.com>: > Hi Alexandre, > > On 23 February 2016 at 16:10, Alexandre TORGUE > <alexandre.tor...@gmail.com> wrote: >> stm324xx family chips support Synopsys MAC 3.510 IP. >> This patch adds setting

Re: [PATCH 1/4] net: ethernet: dwmac: add Ethernet glue logic for stm32 chip

2016-02-23 Thread Alexandre Torgue
2016-02-22 22:52 GMT+01:00 Joachim Eastwood <manab...@gmail.com>: > On 22 February 2016 at 15:50, Alexandre Torgue > <alexandre.tor...@gmail.com> wrote: >> 2016-02-13 14:48 GMT+01:00 Joachim Eastwood <manab...@gmail.com>: >>> On 3 February 2016 at 15:

Re: [PATCH 1/4] net: ethernet: dwmac: add Ethernet glue logic for stm32 chip

2016-02-22 Thread Alexandre Torgue
2016-02-13 14:48 GMT+01:00 Joachim Eastwood <manab...@gmail.com>: > On 3 February 2016 at 15:54, Alexandre TORGUE > <alexandre.tor...@gmail.com> wrote: >> stm324xx family chips support Synopsys MAC 3.510 IP. >> This patch adds settings for logical glue logic: >

Re: [PATCH 1/4] net: ethernet: dwmac: add Ethernet glue logic for stm32 chip

2016-02-23 Thread Alexandre Torgue
2016-02-23 12:21 GMT+01:00 Joachim Eastwood <manab...@gmail.com>: > On 23 February 2016 at 10:59, Alexandre Torgue > <alexandre.tor...@gmail.com> wrote: >> 2016-02-22 22:52 GMT+01:00 Joachim Eastwood <manab...@gmail.com>: >>> On 22 February 2016 at 15:

Re: [PATCH v2 2/4] Documentation: Bindings: Add STM32 DWMAC glue

2016-02-25 Thread Alexandre Torgue
Hi Joachim, 2016-02-23 23:37 GMT+01:00 Joachim Eastwood <manab...@gmail.com>: > Hi Alexandre, > > You should copy 'devicet...@vger.kernel.org' on bindings doc. Adding cc here. > > On 23 February 2016 at 16:10, Alexandre TORGUE > <alexandre.tor...@gmail.com> wrot

[PATCH v3 01/17] stmmac: share reset function between dwmac100 and dwmac1000

2016-02-29 Thread Alexandre TORGUE
From: Giuseppe Cavallaro <peppe.cavall...@st.com> This patch is to share the same reset procedure between dwmac100 and dwmac1000 chips. This will also help on enhancing the driver and support new chips. Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com> Signed-off-by: Alex

[PATCH v3 03/17] stmmac: change descriptor layout

2016-02-29 Thread Alexandre TORGUE
From: Giuseppe Cavallaro <peppe.cavall...@st.com> This patch completely changes the descriptor layout to improve the whole performances due to the single read usage of the descriptors in critical paths. Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com> Signed-off-by: Alex

[PATCH v3 00/17] stmmac: enhance driver performances and update the version

2016-02-29 Thread Alexandre TORGUE
According to Giuseppe, I send the v3 series. This is a subset of patches to rework the driver in order to improve its performances and make it more robust under stress conditions. All patches have been ported on STi mainstream kernel branch and tested on ARM STiH4xx platforms and newer ones.

[PATCH v3 05/17] stmmac: add length field to dma data

2016-02-29 Thread Alexandre TORGUE
rectly into a data structure which will hit the cache. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/cha

[PATCH v3 02/17] stmmac: rework DMA bus setting and introduce new platform AXI structure

2016-02-29 Thread Alexandre TORGUE
align a configuration so not for fixing some known problem. No issue raised after this patch. It is safe to use the default burst length instead of tuning it to the maximum value Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.c

[PATCH v3 07/17] stmmac: add is_jumbo field to dma data

2016-02-29 Thread Alexandre TORGUE
ithout reading it. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/chain_mode.c b/drivers/net/ethernet/stm

[PATCH v3 09/17] stmmac: optimize tx desc management

2016-02-29 Thread Alexandre TORGUE
rice.gasn...@st.com> Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/chain_mode.c b/drivers/net/ethernet/stmicro/stmmac/chain_mode.c index dacb654..b3e669a 100644 --

[PATCH v3 08/17] stmmac: merge get_rx_owner into rx_status routine.

2016-02-29 Thread Alexandre TORGUE
rice.gasn...@st.com> Acked-by: Giuseppe Cavallaro <peppe.cavall...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h index 09291af..3ba268e 100644 --- a/drivers/net

[PATCH v3 04/17] stmmac: review RX/TX ring management

2016-02-29 Thread Alexandre TORGUE
is an expensive operation. The formula [(entry + 1) & (size - 1)] is now adopted on a ring that is power-of-2 in size. Then, the number of elements cannot be set by command line but it is fixed. Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com> Signed-off-by: Alexandre TORGUE <a

[PATCH v3 10/17] stmmac: optimize tx clean function

2016-02-29 Thread Alexandre TORGUE
inside TX clean loop for enhanced descriptors but not for normal ones because the des1 must be read in any case. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> Acked-by: Giuseppe Cavallaro <peppe.cavall...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com>

[PATCH v3 12/17] stmmac: first frame prep at the end of xmit routine

2016-02-29 Thread Alexandre TORGUE
fact, this kind of test is impacted if no coalesce is done. Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmma

[PATCH v3 15/17] stmmac: do not perform zero-copy for rx frames

2016-02-29 Thread Alexandre TORGUE
; Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac.h b/drivers/net/ethernet/stmicro/stmmac/stmmac.h index 0d01f3e..221f5cd 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac.h +++ b/drivers/net/ethernet/stmicro/stmmac/stmma

[PATCH v3 13/17] stmmac: do not poll phy handler when attach a switch

2016-02-29 Thread Alexandre TORGUE
less time because the link cannot actually change. Note that the stmmac_adjust_link will be called just one time and this guarantees that the ST glue logic will be setup according to the mode and speed fixed. Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com> Signed-off-by: Alexandre TORGUE

[PATCH v3 17/17] stmmac: update version to Oct_2015

2016-02-29 Thread Alexandre TORGUE
From: Giuseppe Cavallaro <peppe.cavall...@st.com> This patch just updates the driver to the version fully tested on STi platforms. This version is Oct_2015. Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> di

[PATCH v3 11/17] stmmac: set dirty index out of the loop

2016-02-29 Thread Alexandre TORGUE
..@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index d31179f..2e4c10a 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/ne

[PATCH v3 16/17] stmmac: tune rx copy via threshold.

2016-02-29 Thread Alexandre TORGUE
Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac.h b/drivers/net/ethernet/stmicro/stmmac/stmmac.h index 221f5cd..d6c244f 100644 --- a/drivers/net/ethernet/stmic

[PATCH v3 14/17] stmmac: fix phy init when attached to a phy

2016-02-29 Thread Alexandre TORGUE
er <fabrice.gasn...@st.com> Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index eab7ac0..3cc13

[PATCH v3 06/17] stmmac: add last_segment field to dma data

2016-02-29 Thread Alexandre TORGUE
Signed-off-by: Fabrice Gasnier <fabrice.gasn...@st.com> Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/chain_mode.c b/drivers/net/ethernet/stmicro/stmmac/cha

[PATCH 1/3] ARM: dts: stm32f429: Add system config bank node

2016-02-29 Thread Alexandre TORGUE
Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index 598362e..bb7a736 100644 --- a/arch/arm/boot/dts/stm32f429.dtsi +++ b/arch/arm/boot/dts/stm32f429.dtsi @@ -171,6 +

[PATCH 0/3] Enable Ethernet on STM32F429 EVAL board

2016-02-29 Thread Alexandre TORGUE
, this series follow the series which adds glue and update stmmac driver: https://lkml.org/lkml/2016/2/26/329 Best regards. Alex Alexandre TORGUE (3): ARM: dts: stm32f429: Add system config bank node ARM: dts: stm32f429: Add Ethernet support ARM: dts: stm32f429: Enable Ethernet on Eval board

[PATCH 2/3] ARM: dts: stm32f429: Add Ethernet support

2016-02-29 Thread Alexandre TORGUE
Add Ethernet support (Synopsys MAC IP 3.50a) on stm32f429 SOC. Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index bb7a736..af0367c 100644 --- a/arch/arm/boot/dts/stm32f429.dtsi +++ b/arch/ar

[PATCH 3/3] ARM: dts: stm32f429: Enable Ethernet on Eval board

2016-02-29 Thread Alexandre TORGUE
MAC is connected to a PHY in MII mode. Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts index 1ae57fa..e345459 100644 --- a/arch/arm/boot/dts/stm32429i-eval.dts +++ b/arch/arm/boot/dts/stm

[PATCH v3 2/4] Documentation: Bindings: Add STM32 DWMAC glue

2016-02-26 Thread Alexandre TORGUE
Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/Documentation/devicetree/bindings/net/stm32-dwmac.txt b/Documentation/devicetree/bindings/net/stm32-dwmac.txt new file mode 100644 index 000..67fceda --- /dev/null +++ b/Documentation/devicetree/bindings/net

[PATCH v3 1/4] net: ethernet: dwmac: add Ethernet glue logic for stm32 chip

2016-02-26 Thread Alexandre TORGUE
stm324xx family chips support Synopsys MAC 3.510 IP. This patch adds settings for logical glue logic: -clocks -mode selection MII or RMII. Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/Kconfig b/drivers/net/ethernet/stmicro/

[PATCH v3 4/4] ARM: STM32: Enable Ethernet in stm32_defconfig

2016-02-26 Thread Alexandre TORGUE
Enable basic Ethernet support (IPV4) for stm32 defconfig. Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index ec52505..8b8abe0 100644 --- a/arch/arm/configs/stm32_defconfig +++ b/arch/arm/c

[PATCH v3 3/4] net: ethernet: stmmac: add support of Synopsys 3.50a MAC IP

2016-02-26 Thread Alexandre TORGUE
Adds support of Synopsys 3.50a MAC IP in stmmac driver. Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index 6a52fa1..6cca626 100644 --- a/drive

[PATCH v3 0/4] Add Ethernet support on STM32F429

2016-02-26 Thread Alexandre TORGUE
in dwmac-stm32 glue driver. -Take into account Joachim review. Regards. Alexandre. Alexandre TORGUE (4): net: ethernet: dwmac: add Ethernet glue logic for stm32 chip Documentation: Bindings: Add STM32 DWMAC glue net: ethernet: stmmac: add support of Synopsys 3.50a MAC IP ARM: STM32

[PATCH v2 4/4] ARM: STM32: Enable Ethernet in stm32_defconfig

2016-02-23 Thread Alexandre TORGUE
Enable basic Ethernet support (IPV4) for stm32 defconfig. Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index ec52505..8b8abe0 100644 --- a/arch/arm/configs/stm32_defconfig +++ b/arch/arm/c

[PATCH v2 3/4] net: ethernet: stmmac: add support of Synopsys 3.50a MAC IP

2016-02-23 Thread Alexandre TORGUE
Adds support of Synopsys 3.50a MAC IP in stmmac driver. Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index 6a52fa1..6cca626 100644 --- a/drive

[PATCH v2 2/4] Documentation: Bindings: Add STM32 DWMAC glue

2016-02-23 Thread Alexandre TORGUE
Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/Documentation/devicetree/bindings/net/stm32-dwmac.txt b/Documentation/devicetree/bindings/net/stm32-dwmac.txt new file mode 100644 index 000..18734b3 --- /dev/null +++ b/Documentation/devicetree/bindings/net

[PATCH v2 1/4] net: ethernet: dwmac: add Ethernet glue logic for stm32 chip

2016-02-23 Thread Alexandre TORGUE
stm324xx family chips support Synopsys MAC 3.510 IP. This patch adds settings for logical glue logic: -clocks -mode selection MII or RMII. Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/Kconfig b/drivers/net/ethernet/stmicro/

[PATCH v2 0/4] Add Ethernet support on STM32F429

2016-02-23 Thread Alexandre TORGUE
. Changes since v1: -Fix Kbuild issue in Kconfig. -Remove init/exit callbacks. Suspend/Resume and remove driver is no more driven in stmmac_pltfr but directly in dwmac-stm32 glue driver. -Take into account Joachim review. Regards. Alexandre. Alexandre TORGUE (4): net: ethernet: dwmac: add

[PATCH v5 1/4] net: ethernet: dwmac: add Ethernet glue logic for stm32 chip

2016-03-18 Thread Alexandre TORGUE
coque...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/Kconfig b/drivers/net/ethernet/stmicro/stmmac/Kconfig index cec147d..235d679 100644 --- a/drivers/net/ethernet/stmicro/stmmac/Kconfig +++ b/drivers/net/etherne

[PATCH v5 0/4] Add Ethernet support on STM32F429

2016-03-19 Thread Alexandre TORGUE
w. -Binding: remove useless entry. Changes since v1: -Fix Kbuild issue in Kconfig. -Remove init/exit callbacks. Suspend/Resume and remove driver is no more driven in stmmac_pltfr but directly in dwmac-stm32 glue driver. -Take into account Joachim review. Regards. Alexandre. Alexandre TORGUE

[PATCH net-next] net: ethernet: stmmac: GMAC4.xx: Fix TX descriptor preparation

2016-04-08 Thread Alexandre TORGUE
pen...@oracle.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c b/drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c index d4952c7..4ec7397 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c +++ b

[PATCH v5 4/4] ARM: STM32: Enable Ethernet in stm32_defconfig

2016-03-19 Thread Alexandre TORGUE
Enable basic Ethernet support (IPV4) for stm32 defconfig. Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index ec52505..8b8abe0 100644 --- a/arch/arm/configs/stm32_defconfig +++ b/arch/arm/c

[PATCH v5 2/4] Documentation: Bindings: Add STM32 DWMAC glue

2016-03-19 Thread Alexandre TORGUE
Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/Documentation/devicetree/bindings/net/stm32-dwmac.txt b/Documentation/devicetree/bindings/net/stm32-dwmac.txt new file mode 100644 index 000..ada2aa4 --- /dev/null +++ b/Documentation/devicetree/bindings/net

Re: [PATCH v5 2/4] Documentation: Bindings: Add STM32 DWMAC glue

2016-03-22 Thread Alexandre Torgue
GMT+01:00 Joachim Eastwood <manab...@gmail.com>: > On 21 March 2016 at 13:40, Rob Herring <r...@kernel.org> wrote: >> On Sat, Mar 19, 2016 at 12:00:22AM +0800, Chen-Yu Tsai wrote: >>> Hi, >>> >>> On Fri, Mar 18, 2016 at 11:37 PM, Alexandre TORGUE >

[PATCH 13/13] stmmac: update MAINTAINERS

2016-03-25 Thread Alexandre TORGUE
Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/MAINTAINERS b/MAINTAINERS index b70294e..394e233 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3293,6 +3293,7 @@ F:Documentation/powerpc/cxlflash.txt STMMAC ETHERNET DRIVER M: Giuseppe Cavallaro <pep

[PATCH 02/13] stmmac: rework the routines to show the ring status

2016-03-25 Thread Alexandre TORGUE
To avoid lot of check in stmmac_main for display ring management and support the GMAC4 chip, the display_ring function is moved into dedicated descriptor file. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com>

[PATCH 06/13] stmmac: add DMA support for GMAC 4.xx

2016-03-25 Thread Alexandre TORGUE
w transfer: "current descriptor pointer < Descriptor tail pointer" The DMA automatically wraps around the base address when the end of ring is reached. Up to 8 DMA could be use but currently we only use one (channel0) Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> Sign

[PATCH 08/13] stmmac: enhance mmc counter management

2016-03-25 Thread Alexandre TORGUE
<peppe.cavall...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/mmc.h b/drivers/net/ethernet/stmicro/stmmac/mmc.h index 192c249..38a1a56 100644 --- a/drivers/net/ethernet/stmicro/stmmac/mmc.h +++ b/drivers/net/ethernet/st

[PATCH 11/13] Documentation: networking: update stmmac

2016-03-25 Thread Alexandre TORGUE
Update stmmac driver documentation according to new GMAC 4.x family. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/Documentation/networking/stmmac.txt b/Documentation/networking/stmmac.txt index d64a147..671fe3d 100644 --- a/Documentation/networking/stmmac.txt

[PATCH 10/13] stmmac: support new GMAC4

2016-03-25 Thread Alexandre TORGUE
This patch adds the whole GMAC4 support inside the stmmac d.d. now able to use the new HW and some new features i.e.: TSO. It is missing the multi-queue and split Header support at this stage. This patch also updates the driver version and the stmmac.txt. Signed-off-by: Alexandre TORGUE

[PATCH 09/13] stmmac: add new DT platform entries for GMAC4

2016-03-25 Thread Alexandre TORGUE
This is to support the snps,dwmac-4.00 and snps,dwmac-4.10a and related features on the platform driver. See binding doc for further details. Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/Documentatio

[PATCH 04/13] stmmac: add descriptors function for GMAC 4.xx

2016-03-25 Thread Alexandre TORGUE
se address when the end of ring is reached. -New features are available on IP: -TSO (TCP Segmentation Offload) for TX only -Split header: to have header and payload in 2 different buffers Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> Signed-off-by: Giuseppe Cavallaro <pep

[PATCH 12/13] stmmac: update version to Jan_2016

2016-03-25 Thread Alexandre TORGUE
This patch just updates the driver to the version fully tested on STi platforms. This version is Jan_2016. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac.h b/drivers/net/ethernet/stmicro/stmmac/stmmac.h index 317ce35..f

[PATCH 05/13] stmmac: add GMAC4 DMA/CORE Header File

2016-03-25 Thread Alexandre TORGUE
This is the main header file to define all the macro used for GMAC4 DMA and CORE parts. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4.h b/drivers/net/ethe

[PATCH 07/13] stmmac: add GMAC4 core support

2016-03-25 Thread Alexandre TORGUE
This is the initial support for GMAC4 that includes the main callbacks to setup the core module: including Csum, basic filtering, mac address and interrupt (MMC, MTL, PMT) No LPI added. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> Signed-off-by: Giuseppe Cavallaro <pep

[PATCH 03/13] stmmac: rework synopsys id read, moved to dwmac setup

2016-03-25 Thread Alexandre TORGUE
asnier <fabrice.gasn...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h index 6cea61b..66e132f 100644 --- a/drivers/net/ethernet/stmicro/stmmac/common.h +++ b/dr

[PATCH 00/13] Enhance stmmac driver to support GMAC4.x IP

2016-03-25 Thread Alexandre TORGUE
ook on bitfield mapping of DMA_CHANx_INTR_ENA register. This requires to have � diffrent set of callbacks between IP 4.00a and 4.10a. Best regards Alex Alexandre TORGUE (13): stmmac: rework get_hw_feature function stmmac: rework the routines to show the ring status stmmac: rework synopsys id rea

[PATCH 01/13] stmmac: rework get_hw_feature function

2016-03-25 Thread Alexandre TORGUE
-by: Alexandre TORGUE <alexandre.tor...@st.com> Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h index f96d257..797a913 100644 --- a/drivers/net/ethernet/stmicro/stmmac/common.h +

Re: [PATCH 00/13] Enhance stmmac driver to support GMAC4.x IP

2016-03-25 Thread Alexandre Torgue
Hi, On 03/25/2016 04:11 PM, David Miller wrote: It is absolutely not appropriate to submit new feature patches at this time. Please resubmit this after the net-next tree opens back out. No pb, I will wait and resend. Regards Alex Thank you.

Re: [PATCH v5 2/4] Documentation: Bindings: Add STM32 DWMAC glue

2016-03-21 Thread Alexandre Torgue
Hi, 2016-03-18 17:00 GMT+01:00 Chen-Yu Tsai <w...@csie.org>: > Hi, > > On Fri, Mar 18, 2016 at 11:37 PM, Alexandre TORGUE > <alexandre.tor...@gmail.com> wrote: >> Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> >> >> diff --git a/Docum

[PATCH v5 3/4] net: ethernet: stmmac: add support of Synopsys 3.50a MAC IP

2016-03-19 Thread Alexandre TORGUE
Adds support of Synopsys 3.50a MAC IP in stmmac driver. Acked-by: Giuseppe Cavallaro <peppe.cavall...@st.com> Tested-by: Maxime Coquelin <maxime.coque...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/st

Re: [PATCH v3 2/4] Documentation: Bindings: Add STM32 DWMAC glue

2016-03-04 Thread Alexandre Torgue
Hi Rob, 2016-03-02 19:33 GMT+01:00 Rob Herring <r...@kernel.org>: > On Fri, Feb 26, 2016 at 11:51:50AM +0100, Alexandre TORGUE wrote: >> Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> >> >> diff --git a/Documentation/devicetree/bindings/net/st

Re: [PATCH] stmmac: fix noderef.cocci warnings

2016-03-04 Thread Alexandre Torgue
u can add my Acked-by: Alexandre Torgue <alexandre.tor...@st.com> -- Regards Alex

[PATCH v4 3/4] net: ethernet: stmmac: add support of Synopsys 3.50a MAC IP

2016-03-04 Thread Alexandre TORGUE
Adds support of Synopsys 3.50a MAC IP in stmmac driver. Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index 6a52fa1..6cca626 100644 --- a/drive

[PATCH v4 4/4] ARM: STM32: Enable Ethernet in stm32_defconfig

2016-03-04 Thread Alexandre TORGUE
Enable basic Ethernet support (IPV4) for stm32 defconfig. Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index ec52505..8b8abe0 100644 --- a/arch/arm/configs/stm32_defconfig +++ b/arch/arm/c

[PATCH v4 1/4] net: ethernet: dwmac: add Ethernet glue logic for stm32 chip

2016-03-04 Thread Alexandre TORGUE
stm324xx family chips support Synopsys MAC 3.510 IP. This patch adds settings for logical glue logic: -clocks -mode selection MII or RMII. Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/Kconfig b/drivers/net/ethernet/stmicro/

[PATCH v4 2/4] Documentation: Bindings: Add STM32 DWMAC glue

2016-03-04 Thread Alexandre TORGUE
Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/Documentation/devicetree/bindings/net/stm32-dwmac.txt b/Documentation/devicetree/bindings/net/stm32-dwmac.txt new file mode 100644 index 000..fd3566f --- /dev/null +++ b/Documentation/devicetree/bindings/net

[PATCH v4 0/4] Add Ethernet support on STM32F429

2016-03-04 Thread Alexandre TORGUE
in Kconfig. -Remove init/exit callbacks. Suspend/Resume and remove driver is no more driven in stmmac_pltfr but directly in dwmac-stm32 glue driver. -Take into account Joachim review. Regards. Alexandre. Alexandre TORGUE (4): net: ethernet: dwmac: add Ethernet glue logic for stm32 chip Doc

Re: [PATCH 2/3] ARM: dts: stm32f429: Add Ethernet support

2016-03-02 Thread Alexandre Torgue
tions. Regards alex > > On 02/29/2016 05:29 PM, Alexandre TORGUE wrote: >> >> Add Ethernet support (Synopsys MAC IP 3.50a) on stm32f429 SOC. >> >> Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> >> >> diff --git a/arch/arm/boot/dts/stm32f429

Re: [PATCH v4 2/4] Documentation: Bindings: Add STM32 DWMAC glue

2016-03-07 Thread Alexandre Torgue
Hi Rob, 2016-03-05 5:31 GMT+01:00 Rob Herring <r...@kernel.org>: > On Fri, Mar 04, 2016 at 04:58:04PM +0100, Alexandre TORGUE wrote: >> Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> >> >> diff --git a/Documentation/devicetree/bindings/net/st

Re: [PATCH v5 2/4] Documentation: Bindings: Add STM32 DWMAC glue

2016-04-04 Thread Alexandre Torgue
Hi Rob, 2016-03-22 17:11 GMT+01:00 Alexandre Torgue <alexandre.tor...@gmail.com>: > Hi guys, > > I will fix typo issues (s/vesrion/version and ethernet @). > > Concerning compatible string. For sure "snps,dwmac-3.50a" string is > not used inside glue driver. >

[RESEND PATCH net-next 00/13] Enhance stmmac driver to support GMAC4.x IP

2016-04-01 Thread Alexandre TORGUE
ook on bitfield mapping of DMA_CHANx_INTR_ENA register. This requires to have � diffrent set of callbacks between IP 4.00a and 4.10a. Best regards Alex I'm resending this series because first sending was badly done during merge window. Alexandre TORGUE (13): stmmac: rework get_hw_feature fu

[RESEND PATCH net-next 09/13] stmmac: add new DT platform entries for GMAC4

2016-04-01 Thread Alexandre TORGUE
This is to support the snps,dwmac-4.00 and snps,dwmac-4.10a and related features on the platform driver. See binding doc for further details. Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/Documentatio

[RESEND PATCH net-next 03/13] stmmac: rework synopsys id read, moved to dwmac setup

2016-04-01 Thread Alexandre TORGUE
asnier <fabrice.gasn...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h index 6cea61b..66e132f 100644 --- a/drivers/net/ethernet/stmicro/stmmac/common.h +++ b/dr

[RESEND PATCH net-next 06/13] stmmac: add DMA support for GMAC 4.xx

2016-04-01 Thread Alexandre TORGUE
w transfer: "current descriptor pointer < Descriptor tail pointer" The DMA automatically wraps around the base address when the end of ring is reached. Up to 8 DMA could be use but currently we only use one (channel0) Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> Sign

[RESEND PATCH net-next 13/13] stmmac: update MAINTAINERS

2016-04-01 Thread Alexandre TORGUE
Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/MAINTAINERS b/MAINTAINERS index 32bafda..37fc112 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3348,6 +3348,7 @@ F:Documentation/powerpc/cxlflash.txt STMMAC ETHERNET DRIVER M: Giuseppe Cavallaro <pep

[RESEND PATCH net-next 05/13] stmmac: add GMAC4 DMA/CORE Header File

2016-04-01 Thread Alexandre TORGUE
This is the main header file to define all the macro used for GMAC4 DMA and CORE parts. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4.h b/drivers/net/ethe

[RESEND PATCH net-next 02/13] stmmac: rework the routines to show the ring status

2016-04-01 Thread Alexandre TORGUE
To avoid lot of check in stmmac_main for display ring management and support the GMAC4 chip, the display_ring function is moved into dedicated descriptor file. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com>

[RESEND PATCH net-next 11/13] Documentation: networking: update stmmac

2016-04-01 Thread Alexandre TORGUE
Update stmmac driver documentation according to new GMAC 4.x family. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/Documentation/networking/stmmac.txt b/Documentation/networking/stmmac.txt index d64a147..671fe3d 100644 --- a/Documentation/networking/stmmac.txt

[RESEND PATCH net-next 04/13] stmmac: add descriptors function for GMAC 4.xx

2016-04-01 Thread Alexandre TORGUE
se address when the end of ring is reached. -New features are available on IP: -TSO (TCP Segmentation Offload) for TX only -Split header: to have header and payload in 2 different buffers Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> Signed-off-by: Giuseppe Cavallaro <pep

[RESEND PATCH net-next 01/13] stmmac: rework get_hw_feature function

2016-04-01 Thread Alexandre TORGUE
-by: Alexandre TORGUE <alexandre.tor...@st.com> Signed-off-by: Giuseppe Cavallaro <peppe.cavall...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/common.h b/drivers/net/ethernet/stmicro/stmmac/common.h index f96d257..797a913 100644 --- a/drivers/net/ethernet/stmicro/stmmac/common.h +

[RESEND PATCH net-next 07/13] stmmac: add GMAC4 core support

2016-04-01 Thread Alexandre TORGUE
This is the initial support for GMAC4 that includes the main callbacks to setup the core module: including Csum, basic filtering, mac address and interrupt (MMC, MTL, PMT) No LPI added. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> Signed-off-by: Giuseppe Cavallaro <pep

[RESEND PATCH net-next 10/13] stmmac: support new GMAC4

2016-04-01 Thread Alexandre TORGUE
This patch adds the whole GMAC4 support inside the stmmac d.d. now able to use the new HW and some new features i.e.: TSO. It is missing the multi-queue and split Header support at this stage. This patch also updates the driver version and the stmmac.txt. Signed-off-by: Alexandre TORGUE

[RESEND PATCH net-next 08/13] stmmac: enhance mmc counter management

2016-04-01 Thread Alexandre TORGUE
<peppe.cavall...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/mmc.h b/drivers/net/ethernet/stmicro/stmmac/mmc.h index 192c249..38a1a56 100644 --- a/drivers/net/ethernet/stmicro/stmmac/mmc.h +++ b/drivers/net/ethernet/st

[RESEND PATCH net-next 12/13] stmmac: update version to Jan_2016

2016-04-01 Thread Alexandre TORGUE
This patch just updates the driver to the version fully tested on STi platforms. This version is Jan_2016. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac.h b/drivers/net/ethernet/stmicro/stmmac/stmmac.h index 317ce35..f

[PATCH net-next] net: ethernet: stmmac: update MDIO support for GMAC4

2016-04-28 Thread Alexandre TORGUE
On new GMAC4 IP, MAC_MDIO_address register has been updated, and bitmaps changed. This patch takes into account those changes. Signed-off-by: Alexandre TORGUE <alexandre.tor...@st.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/

[PATCH v6 1/6] net: ethernet: dwmac: add Ethernet glue logic for stm32 chip

2016-04-25 Thread Alexandre TORGUE
coque...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/Kconfig b/drivers/net/ethernet/stmicro/stmmac/Kconfig index cec147d..235d679 100644 --- a/drivers/net/ethernet/stmicro/stmmac/Kconfig +++ b/drivers/net/etherne

[PATCH v6 3/6] net: ethernet: stmmac: add support of Synopsys 3.50a MAC IP

2016-04-25 Thread Alexandre TORGUE
Adds support of Synopsys 3.50a MAC IP in stmmac driver. Acked-by: Giuseppe Cavallaro <peppe.cavall...@st.com> Tested-by: Maxime Coquelin <maxime.coque...@st.com> Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/drivers/net/ethernet/stmicro/stmmac/st

[PATCH v6 2/6] Documentation: Bindings: Add STM32 DWMAC glue

2016-04-25 Thread Alexandre TORGUE
Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/Documentation/devicetree/bindings/net/stm32-dwmac.txt b/Documentation/devicetree/bindings/net/stm32-dwmac.txt new file mode 100644 index 000..c35afb7 --- /dev/null +++ b/Documentation/devicetree/bindings/net

[PATCH v6 0/6] Add Ethernet support on STM32F429

2016-04-25 Thread Alexandre TORGUE
er is no more driven in stmmac_pltfr but directly in dwmac-stm32 glue driver. -Take into account Joachim review. Regards. Alexandre. Alexandre TORGUE (6): net: ethernet: dwmac: add Ethernet glue logic for stm32 chip Documentation: Bindings: Add STM32 DWMAC glue net: ethernet: stmmac: add suppo

[PATCH v6 6/6] ARM: dts: stm32f429: Update Ethernet node on Eval board

2016-04-25 Thread Alexandre TORGUE
Update new pinctrl phandle name and use new node name. Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/arch/arm/boot/dts/stm32429i-eval.dts b/arch/arm/boot/dts/stm32429i-eval.dts index 6bfc595..9a72445 100644 --- a/arch/arm/boot/dts/stm32429i-eval.dts +++ b/ar

[PATCH v6 4/6] ARM: STM32: Enable Ethernet in stm32_defconfig

2016-04-25 Thread Alexandre TORGUE
Enable basic Ethernet support (IPV4) for stm32 defconfig. Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig index 1e5ec2a..719218b 100644 --- a/arch/arm/configs/stm32_defconfig +++ b/arch/arm/c

[PATCH v6 5/6] ARM: dts: stm32f429: Align Ethernet node with new bindings properties

2016-04-25 Thread Alexandre TORGUE
This patch aligns clocks names and node reference according to new stm32-dwmac glue binding. It also renames Ethernet pinctrl phandle (indeed there is no need to add 0 as Ethernet instance as there is only one IP in SOC). Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff

[RESEND PATCH v6 5/6] ARM: dts: stm32f429: Align Ethernet node with new bindings properties

2016-05-09 Thread Alexandre TORGUE
This patch aligns clocks names and node reference according to new stm32-dwmac glue binding. It also renames Ethernet pinctrl phandle (indeed there is no need to add 0 as Ethernet instance as there is only one IP in SOC). Signed-off-by: Alexandre TORGUE <alexandre.tor...@gmail.com> diff

  1   2   >