[PATCH v8 0/3] netdev: octeon-ethernet: Add Cavium Octeon III support.

2018-02-22 Thread David Daney
z (2): dt-bindings: Add Cavium Octeon Common Ethernet Interface. netdev: octeon-ethernet: Add Cavium Octeon III support. David Daney (1): MAINTAINERS: Add entry for drivers/net/ethernet/cavium/octeon/octeon3-* .../devicetree/bindings/net/cavium-bgx.txt |

[PATCH v8 1/3] dt-bindings: Add Cavium Octeon Common Ethernet Interface.

2018-02-22 Thread David Daney
From: Carlos Munoz <cmu...@cavium.com> Add bindings for Common Ethernet Interface (BGX) block. Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney

[PATCH v8 3/3] MAINTAINERS: Add entry for drivers/net/ethernet/cavium/octeon/octeon3-*

2018-02-22 Thread David Daney
Signed-off-by: David Daney <david.da...@cavium.com> --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9a7f76eadae9..b36371ae590f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3259,6 +3259,12 @@ W: http://www.cavium.

[PATCH v8 0/4] Prerequisites for Cavium OCTEON-III network driver.

2018-02-22 Thread David Daney
ation of OCTEON SoCs (in the staging directory still). o Verified bisectability of the patch set. Carlos Munoz (2): MIPS: Octeon: Enable LMTDMA/LMTST operations. MIPS: Octeon: Add a global resource manager. David Daney (2): MIPS: Octeon: Automatically provision CVMSEG space. sta

[PATCH v8 2/4] MIPS: Octeon: Automatically provision CVMSEG space.

2018-02-22 Thread David Daney
additional lines, defaults to zero. Signed-off-by: David Daney <david.da...@cavium.com> Signed-off-by: Carlos Munoz <cmu...@caviumnetworks.com> --- arch/mips/cavium-octeon/Kconfig| 27 arch/mips/cavium-octeon/setup.c

[PATCH v8 3/4] staging: octeon: Remove USE_ASYNC_IOBDMA macro.

2018-02-22 Thread David Daney
Previous patch sets USE_ASYNC_IOBDMA to 1 unconditionally. Remove USE_ASYNC_IOBDMA from all if statements. Remove dead code caused by the change. Acked-by: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: David Daney <david.da...@cavium.com> --- drivers/staging/oct

[PATCH v8 1/4] MIPS: Octeon: Enable LMTDMA/LMTST operations.

2018-02-22 Thread David Daney
device with a store to the CVMSEG LMTDMA trigger location. Reviewed-by: James Hogan <jho...@kernel.org> Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- a

[PATCH v8 4/4] MIPS: Octeon: Add a global resource manager.

2018-02-22 Thread David Daney
by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- arch/mips/cavium-octeon/Makefile | 1 + arch/mips/cavium-octeon/resource-mgr.c | 351 + arch/mips/include/asm/octeon/octeon.h | 18 ++ 3 files

Re: [PATCH bpf-next 10/13] bpf, mips64: remove obsolete exception handling from div/mod

2018-01-26 Thread David Daney
On 01/26/2018 02:33 PM, Daniel Borkmann wrote: Since we've changed div/mod exception handling for src_reg in eBPF verifier itself, remove the leftovers from mips64 JIT. Signed-off-by: Daniel Borkmann <dan...@iogearbox.net> Cc: David Daney <david.da...@cavium.com> I

Re: [PATCH bpf-next 11/13] bpf, mips64: remove unneeded zero check from div/mod with k

2018-01-26 Thread David Daney
to add it here either). Signed-off-by: Daniel Borkmann <dan...@iogearbox.net> Cc: David Daney <david.da...@cavium.com> This looks plausible, Reviewed-by: David Daney <david.da...@cavium.com> --- arch/mips/net/ebpf_jit.c | 19 --- 1 file changed, 4

Re: thunderx sgmii interface hang

2017-12-22 Thread David Daney
On 12/22/2017 04:22 PM, Tim Harvey wrote: On Fri, Dec 22, 2017 at 3:00 PM, David Daney <dda...@caviumnetworks.com> wrote: On 12/22/2017 02:19 PM, Tim Harvey wrote: On Tue, Dec 19, 2017 at 12:52 PM, Andrew Lunn <and...@lunn.ch> wrote: On Mon, Dec 18, 2017 at 01:53:47PM -0800

Re: thunderx sgmii interface hang

2017-12-22 Thread David Daney
On 12/22/2017 02:19 PM, Tim Harvey wrote: On Tue, Dec 19, 2017 at 12:52 PM, Andrew Lunn wrote: On Mon, Dec 18, 2017 at 01:53:47PM -0800, Tim Harvey wrote: On Wed, Dec 13, 2017 at 11:43 AM, Andrew Lunn wrote: The nic appears to work fine (pings, TCP etc) up

[PATCH v7 0/4] Prerequisites for Cavium OCTEON-III network driver.

2017-12-12 Thread David Daney
still). o Verified bisectability of the patch set. Carlos Munoz (2): MIPS: Octeon: Enable LMTDMA/LMTST operations. MIPS: Octeon: Add a global resource manager. David Daney (2): MIPS: Octeon: Automatically provision CVMSEG space. staging: octeon: Remove USE_ASYNC_IOBDMA macro. arc

[PATCH v7 4/4] MIPS: Octeon: Add a global resource manager.

2017-12-12 Thread David Daney
by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- arch/mips/cavium-octeon/Makefile | 1 + arch/mips/cavium-octeon/resource-mgr.c | 351 + arch/mips/include/asm/octeon/octeon.h | 18 ++ 3 files

[PATCH v7 2/4] MIPS: Octeon: Automatically provision CVMSEG space.

2017-12-12 Thread David Daney
additional lines, defaults to zero. Signed-off-by: David Daney <david.da...@cavium.com> Signed-off-by: Carlos Munoz <cmu...@caviumnetworks.com> --- arch/mips/cavium-octeon/Kconfig| 27 arch/mips/cavium-octeon/setup.c

[PATCH v7 1/4] MIPS: Octeon: Enable LMTDMA/LMTST operations.

2017-12-12 Thread David Daney
device with a store to the CVMSEG LMTDMA trigger location. Reviewed-by: James Hogan <jho...@kernel.org> Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- a

[PATCH v7 3/4] staging: octeon: Remove USE_ASYNC_IOBDMA macro.

2017-12-12 Thread David Daney
Previous patch sets USE_ASYNC_IOBDMA to 1 unconditionally. Remove USE_ASYNC_IOBDMA from all if statements. Remove dead code caused by the change. Acked-by: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: David Daney <david.da...@cavium.com> --- drivers/staging/oct

[PATCH v6 net-next,mips 0/7] Cavium OCTEON-III network driver.

2017-12-07 Thread David Daney
et Interface. MIPS: Octeon: Enable LMTDMA/LMTST operations. MIPS: Octeon: Add a global resource manager. netdev: octeon-ethernet: Add Cavium Octeon III support. David Daney (3): MIPS: Octeon: Automatically provision CVMSEG space. staging: octeon: Remove USE_ASYNC_IOBDMA macro. MA

[PATCH v6 net-next,mips 1/7] dt-bindings: Add Cavium Octeon Common Ethernet Interface.

2017-12-07 Thread David Daney
From: Carlos Munoz <cmu...@cavium.com> Add bindings for Common Ethernet Interface (BGX) block. Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney

[PATCH v6 net-next,mips 3/7] MIPS: Octeon: Automatically provision CVMSEG space.

2017-12-07 Thread David Daney
additional lines, defaults to zero. Signed-off-by: David Daney <david.da...@cavium.com> Signed-off-by: Carlos Munoz <cmu...@caviumnetworks.com> --- arch/mips/cavium-octeon/Kconfig| 27 arch/mips/cavium-octeon/setup.c

[PATCH v6 net-next,mips 2/7] MIPS: Octeon: Enable LMTDMA/LMTST operations.

2017-12-07 Thread David Daney
device with a store to the CVMSEG LMTDMA trigger location. Reviewed-by: James Hogan <jho...@kernel.org> Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- a

[PATCH v6 net-next,mips 5/7] MIPS: Octeon: Add a global resource manager.

2017-12-07 Thread David Daney
by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- arch/mips/cavium-octeon/Makefile | 1 + arch/mips/cavium-octeon/resource-mgr.c | 351 + arch/mips/include/asm/octeon/octeon.h | 18 ++ 3 files

[PATCH v6 net-next,mips 4/7] staging: octeon: Remove USE_ASYNC_IOBDMA macro.

2017-12-07 Thread David Daney
Previous patch sets USE_ASYNC_IOBDMA to 1 unconditionally. Remove USE_ASYNC_IOBDMA from all if statements. Remove dead code caused by the change. Acked-by: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: David Daney <david.da...@cavium.com> --- drivers/staging/oct

[PATCH v6 net-next,mips 7/7] MAINTAINERS: Add entry for drivers/net/ethernet/cavium/octeon/octeon3-*

2017-12-07 Thread David Daney
Signed-off-by: David Daney <david.da...@cavium.com> --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 4007fa2e193e..b4bf5b205380 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3249,6 +3249,12 @@ W: http://www.cavium.

[PATCH v5 net-next,mips 5/7] MIPS: Octeon: Automatically provision CVMSEG space.

2017-12-01 Thread David Daney
additional lines, defaults to zero. Signed-off-by: David Daney <david.da...@cavium.com> Signed-off-by: Carlos Munoz <cmu...@caviumnetworks.com> --- arch/mips/cavium-octeon/Kconfig| 27 arch/mips/cavium-octeon/setup.c

[PATCH v5 net-next,mips 2/7] MIPS: Octeon: Enable LMTDMA/LMTST operations.

2017-12-01 Thread David Daney
device with a store to the CVMSEG LMTDMA trigger location. Reviewed-by: James Hogan <jho...@kernel.org> Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- a

[PATCH v5 net-next,mips 4/7] MIPS: Octeon: Add Free Pointer Unit (FPA) support.

2017-12-01 Thread David Daney
." Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- arch/mips/cavium-octeon/Kconfig | 8 + arch/mips/cavium-octeon/Makefile | 1 + arch/m

[PATCH v5 net-next,mips 3/7] MIPS: Octeon: Add a global resource manager.

2017-12-01 Thread David Daney
by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- arch/mips/cavium-octeon/Makefile | 1 + arch/mips/cavium-octeon/resource-mgr.c | 351 + arch/mips/include/asm/octeon/octeon.h | 18 ++ 3 files

[PATCH v5 net-next,mips 7/7] MAINTAINERS: Add entry for drivers/net/ethernet/cavium/octeon/octeon3-*

2017-12-01 Thread David Daney
Signed-off-by: David Daney <david.da...@cavium.com> --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 77d819b458a9..5aff6fb41b21 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3249,6 +3249,12 @@ W: http://www.cavium.

[PATCH v5 net-next,mips 0/7] Cavium OCTEON-III network driver.

2017-12-01 Thread David Daney
eon Common Ethernet Interface. MIPS: Octeon: Enable LMTDMA/LMTST operations. MIPS: Octeon: Add a global resource manager. MIPS: Octeon: Add Free Pointer Unit (FPA) support. netdev: octeon-ethernet: Add Cavium Octeon III support. David Daney (2): MIPS: Octeon: Automatically provision CV

[PATCH v5 net-next,mips 1/7] dt-bindings: Add Cavium Octeon Common Ethernet Interface.

2017-12-01 Thread David Daney
From: Carlos Munoz <cmu...@cavium.com> Add bindings for Common Ethernet Interface (BGX) block. Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney

Re: [PATCH v4 3/8] MIPS: Octeon: Add a global resource manager.

2017-12-01 Thread David Daney
On 12/01/2017 12:41 PM, Philippe Ombredanne wrote: David, On Fri, Dec 1, 2017 at 9:01 PM, David Daney <dda...@caviumnetworks.com> wrote: On 12/01/2017 11:49 AM, Philippe Ombredanne wrote: David, Greg, On Fri, Dec 1, 2017 at 6:42 PM, David Daney <dda...@caviumnetworks.com> wrote

Re: [PATCH v4 3/8] MIPS: Octeon: Add a global resource manager.

2017-12-01 Thread David Daney
On 12/01/2017 11:49 AM, Philippe Ombredanne wrote: David, Greg, On Fri, Dec 1, 2017 at 6:42 PM, David Daney <dda...@caviumnetworks.com> wrote: On 11/30/2017 11:53 PM, Philippe Ombredanne wrote: [...] --- /dev/null +++ b/arch/mips/cavium-octeon/resource-mgr.c @@ -0,0 +1,371 @@ +/

Re: [PATCH v4 3/8] MIPS: Octeon: Add a global resource manager.

2017-12-01 Thread David Daney
On 11/30/2017 11:53 PM, Philippe Ombredanne wrote: Carlos, On Thu, Nov 30, 2017 at 11:53 PM, James Hogan <james.ho...@mips.com> wrote: On Tue, Nov 28, 2017 at 04:55:35PM -0800, David Daney wrote: From: Carlos Munoz <cmu...@cavium.com> Add a global resource manager to manage tag

Re: [PATCH v4 3/8] MIPS: Octeon: Add a global resource manager.

2017-11-30 Thread David Daney
On 11/30/2017 02:53 PM, James Hogan wrote: On Tue, Nov 28, 2017 at 04:55:35PM -0800, David Daney wrote: From: Carlos Munoz <cmu...@cavium.com> Add a global resource manager to manage tagged pointers within bootmem allocated memory. This is used by various functional blocks in the Octeo

Re: [PATCH v4 2/8] MIPS: Octeon: Enable LMTDMA/LMTST operations.

2017-11-30 Thread David Daney
On 11/30/2017 02:56 PM, James Hogan wrote: On Thu, Nov 30, 2017 at 01:49:43PM -0800, David Daney wrote: On 11/30/2017 01:36 PM, James Hogan wrote: On Tue, Nov 28, 2017 at 04:55:34PM -0800, David Daney wrote: Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J

Re: [PATCH v4 2/8] MIPS: Octeon: Enable LMTDMA/LMTST operations.

2017-11-30 Thread David Daney
On 11/30/2017 01:36 PM, James Hogan wrote: On Tue, Nov 28, 2017 at 04:55:34PM -0800, David Daney wrote: From: Carlos Munoz <cmu...@cavium.com> LMTDMA/LMTST operations move data between cores and I/O devices: * LMTST operations can send an address and a variable length (up to 128

Re: [PATCH v4 7/8] netdev: octeon-ethernet: Add Cavium Octeon III support.

2017-11-29 Thread David Daney
On 11/29/2017 02:56 PM, Andrew Lunn wrote: On Tue, Nov 28, 2017 at 04:55:39PM -0800, David Daney wrote: +static int bgx_probe(struct platform_device *pdev) +{ + struct mac_platform_data platform_data; + const __be32 *reg; + u32 port; + u64 addr; + struct

Re: [PATCH v4 7/8] netdev: octeon-ethernet: Add Cavium Octeon III support.

2017-11-29 Thread David Daney
On 11/29/2017 08:07 AM, Souptick Joarder wrote: On Wed, Nov 29, 2017 at 4:00 PM, Souptick Joarder <jrdr.li...@gmail.com> wrote: On Wed, Nov 29, 2017 at 6:25 AM, David Daney <david.da...@cavium.com> wrote: From: Carlos Munoz <cmu...@cavium.com> The Cavium OCTEON cn78xx an

Re: [PATCH v4 1/8] dt-bindings: Add Cavium Octeon Common Ethernet Interface.

2017-11-28 Thread David Daney
On 11/28/2017 06:01 PM, Andrew Lunn wrote: On Tue, Nov 28, 2017 at 04:55:33PM -0800, David Daney wrote: From: Carlos Munoz <cmu...@cavium.com> Add bindings for Common Ethernet Interface (BGX) block. Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Carlos Munoz <cmu...@cav

[PATCH v4 2/8] MIPS: Octeon: Enable LMTDMA/LMTST operations.

2017-11-28 Thread David Daney
f data to the I/O device and then return a variable length (up to 128 bytes) response from the IOI device. Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- arch/mi

[PATCH v4 0/8] Cavium OCTEON-III network driver.

2017-11-28 Thread David Daney
Interface. MIPS: Octeon: Enable LMTDMA/LMTST operations. MIPS: Octeon: Add a global resource manager. MIPS: Octeon: Add Free Pointer Unit (FPA) support. netdev: octeon-ethernet: Add Cavium Octeon III support. David Daney (3): MIPS: Octeon: Automatically provision CVMSEG space. staging

[PATCH v4 3/8] MIPS: Octeon: Add a global resource manager.

2017-11-28 Thread David Daney
by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- arch/mips/cavium-octeon/Makefile | 3 +- arch/mips/cavium-octeon/resource-mgr.c | 371 + arch/mips/include/asm/octeon/octeon.h | 18 ++ 3 files

[PATCH v4 1/8] dt-bindings: Add Cavium Octeon Common Ethernet Interface.

2017-11-28 Thread David Daney
From: Carlos Munoz <cmu...@cavium.com> Add bindings for Common Ethernet Interface (BGX) block. Acked-by: Rob Herring <r...@kernel.org> Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney

[PATCH v4 5/8] MIPS: Octeon: Automatically provision CVMSEG space.

2017-11-28 Thread David Daney
additional lines, defaults to zero. Signed-off-by: David Daney <david.da...@cavium.com> Signed-off-by: Carlos Munoz <cmu...@caviumnetworks.com> --- arch/mips/cavium-octeon/Kconfig| 27 arch/mips/cavium-octeon/setup.c

[PATCH v4 4/8] MIPS: Octeon: Add Free Pointer Unit (FPA) support.

2017-11-28 Thread David Daney
." Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- arch/mips/cavium-octeon/Kconfig | 8 + arch/mips/cavium-octeon/Makefile | 1 + arch/m

[PATCH v4 6/8] staging: octeon: Remove USE_ASYNC_IOBDMA macro.

2017-11-28 Thread David Daney
Previous patch sets USE_ASYNC_IOBDMA to 1 unconditionally. Remove USE_ASYNC_IOBDMA from all if statements. Remove dead code caused by the change. Signed-off-by: David Daney <david.da...@cavium.com> --- drivers/staging/octeon/ethernet-defines.h | 6 --- drivers/staging/octeon/etherne

[PATCH v4 8/8] MAINTAINERS: Add entry for drivers/net/ethernet/cavium/octeon/octeon3-*

2017-11-28 Thread David Daney
Signed-off-by: David Daney <david.da...@cavium.com> --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index aa71ab52fd76..e9239ff3cf05 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3249,6 +3249,12 @@ W: http://www.cavium.

Re: pull request: Cavium Octeon III firmware

2017-11-27 Thread David Daney
On 11/22/2017 05:40 PM, Ben Hutchings wrote: On Tue, 2017-10-31 at 17:05 -0500, Steven J. Hill wrote: Hello. Would like to add firmware for our Octeon III PKI driver. Thanks. Where is this driver? I don't see any reference to the file in linux- next. Several versions of the patch set were

Re: [PATCH v3 1/8] dt-bindings: Add Cavium Octeon Common Ethernet Interface.

2017-11-15 Thread David Daney
On 11/15/2017 11:18 AM, Rob Herring wrote: On Thu, Nov 09, 2017 at 11:29:08AM -0800, David Daney wrote: From: Carlos Munoz <cmu...@cavium.com> Add bindings for Common Ethernet Interface (BGX) block. Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hi

[PATCH v3 0/8] Cavium OCTEON-III network driver.

2017-11-09 Thread David Daney
. netdev: octeon-ethernet: Add Cavium Octeon III support. David Daney (3): MIPS: Octeon: Automatically provision CVMSEG space. staging: octeon: Remove USE_ASYNC_IOBDMA macro. MAINTAINERS: Add entry for drivers/net/ethernet/cavium/octeon/octeon3-* .../devicetree/bindings/net/cavium-bgx.txt

[PATCH v3 1/8] dt-bindings: Add Cavium Octeon Common Ethernet Interface.

2017-11-09 Thread David Daney
From: Carlos Munoz <cmu...@cavium.com> Add bindings for Common Ethernet Interface (BGX) block. Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- .../device

[PATCH v3 2/8] MIPS: Octeon: Enable LMTDMA/LMTST operations.

2017-11-09 Thread David Daney
f data to the I/O device and then return a variable length (up to 128 bytes) response from the IOI device. Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- arch/mi

[PATCH v3 6/8] staging: octeon: Remove USE_ASYNC_IOBDMA macro.

2017-11-09 Thread David Daney
Previous patch sets USE_ASYNC_IOBDMA to 1 unconditionally. Remove USE_ASYNC_IOBDMA from all if statements. Remove dead code caused by the change. Signed-off-by: David Daney <david.da...@cavium.com> --- drivers/staging/octeon/ethernet-defines.h | 6 --- drivers/staging/octeon/etherne

[PATCH v3 3/8] MIPS: Octeon: Add a global resource manager.

2017-11-09 Thread David Daney
by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- arch/mips/cavium-octeon/Makefile | 3 +- arch/mips/cavium-octeon/resource-mgr.c | 371 + arch/mips/include/asm/octeon/octeon.h | 18 ++ 3 files

[PATCH v3 4/8] MIPS: Octeon: Add Free Pointer Unit (FPA) support.

2017-11-09 Thread David Daney
." Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- arch/mips/cavium-octeon/Kconfig | 8 + arch/mips/cavium-octeon/Makefile | 1 + arch/m

[PATCH v3 5/8] MIPS: Octeon: Automatically provision CVMSEG space.

2017-11-09 Thread David Daney
additional lines, defaults to zero. Signed-off-by: David Daney <david.da...@cavium.com> Signed-off-by: Carlos Munoz <cmu...@caviumnetworks.com> --- arch/mips/cavium-octeon/Kconfig| 27 arch/mips/cavium-octeon/setup.c

[PATCH v3 8/8] MAINTAINERS: Add entry for drivers/net/ethernet/cavium/octeon/octeon3-*

2017-11-09 Thread David Daney
Signed-off-by: David Daney <david.da...@cavium.com> --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9a24f56e0451..142af33adc35 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3212,6 +3212,12 @@ W: http://www.cavium.

Re: [PATCH v2 0/8] Cavium OCTEON-III network driver.

2017-11-09 Thread David Daney
I need to send v3. With this v2 set, there is a small bug in the RX initialization that causes failure on little-endian kernels. David. On 11/08/2017 04:51 PM, David Daney wrote: We are adding the Cavium OCTEON-III network driver. But since interacting with the input and output queues

[PATCH v2 0/8] Cavium OCTEON-III network driver.

2017-11-08 Thread David Daney
-bindings: Add Cavium Octeon Common Ethernet Interface. MIPS: Octeon: Enable LMTDMA/LMTST operations. MIPS: Octeon: Add a global resource manager. MIPS: Octeon: Add Free Pointer Unit (FPA) support. netdev: octeon-ethernet: Add Cavium Octeon III support. David Daney (3): MIPS: Octeon

[PATCH v2 1/8] dt-bindings: Add Cavium Octeon Common Ethernet Interface.

2017-11-08 Thread David Daney
From: Carlos Munoz <cmu...@cavium.com> Add bindings for Common Ethernet Interface (BGX) block. Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- .../device

[PATCH v2 3/8] MIPS: Octeon: Add a global resource manager.

2017-11-08 Thread David Daney
by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- arch/mips/cavium-octeon/Makefile | 3 +- arch/mips/cavium-octeon/resource-mgr.c | 371 + arch/mips/include/asm/octeon/octeon.h | 18 ++ 3 files

[PATCH v2 5/8] MIPS: Octeon: Automatically provision CVMSEG space.

2017-11-08 Thread David Daney
additional lines, defaults to zero. Signed-off-by: David Daney <david.da...@cavium.com> Signed-off-by: Carlos Munoz <cmu...@caviumnetworks.com> --- arch/mips/cavium-octeon/Kconfig| 27 arch/mips/cavium-octeon/setup.c

[PATCH v2 6/8] staging: octeon: Remove USE_ASYNC_IOBDMA macro.

2017-11-08 Thread David Daney
Previous patch sets USE_ASYNC_IOBDMA to 1 unconditionally. Remove USE_ASYNC_IOBDMA from all if statements. Remove dead code caused by the change. Signed-off-by: David Daney <david.da...@cavium.com> --- drivers/staging/octeon/ethernet-defines.h | 6 --- drivers/staging/octeon/etherne

[PATCH v2 4/8] MIPS: Octeon: Add Free Pointer Unit (FPA) support.

2017-11-08 Thread David Daney
." Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- arch/mips/cavium-octeon/Kconfig | 8 + arch/mips/cavium-octeon/Makefile | 1 + arch/m

[PATCH v2 8/8] MAINTAINERS: Add entry for drivers/net/ethernet/cavium/octeon/octeon3-*

2017-11-08 Thread David Daney
Signed-off-by: David Daney <david.da...@cavium.com> --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9a24f56e0451..142af33adc35 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3212,6 +3212,12 @@ W: http://www.cavium.

[PATCH v2 2/8] MIPS: Octeon: Enable LMTDMA/LMTST operations.

2017-11-08 Thread David Daney
f data to the I/O device and then return a variable length (up to 128 bytes) response from the IOI device. Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- arch/mi

Re: [PATCH net-next 1/2] net: add support for Cavium PTP coprocessor

2017-11-07 Thread David Daney
On 11/07/2017 11:07 AM, Aleksey Makarov wrote: From: Radoslaw Biernacki This patch adds support for the Precision Time Protocol Clocks and Timestamping hardware found on Cavium ThunderX processors. Signed-off-by: Radoslaw Biernacki Signed-off-by: Aleksey

Re: [PATCH 6/7] netdev: octeon-ethernet: Add Cavium Octeon III support.

2017-11-02 Thread David Daney
On 11/02/2017 12:13 PM, Florian Fainelli wrote: On 11/01/2017 05:36 PM, David Daney wrote: From: Carlos Munoz <cmu...@cavium.com> The Cavium OCTEON cn78xx and cn73xx SoCs have network packet I/O hardware that is significantly different from previous generations of the family. Add a new

Re: [PATCH 4/7] MIPS: Octeon: Add Free Pointer Unit (FPA) support.

2017-11-02 Thread David Daney
On 11/02/2017 11:04 AM, Florian Fainelli wrote: On 11/02/2017 09:27 AM, David Daney wrote: On 11/01/2017 08:29 PM, Florian Fainelli wrote: Le 11/01/17 à 17:36, David Daney a écrit : From: Carlos Munoz <cmu...@cavium.com> From the hardware user manual: "The FPA is a unit tha

Re: [PATCH 6/7] netdev: octeon-ethernet: Add Cavium Octeon III support.

2017-11-02 Thread David Daney
On 11/02/2017 09:56 AM, Andrew Lunn wrote: OK, now I think I understand. Yes, the MAC can be hardwired to a switch. In fact, there are system designs that do exactly that. We try to handle this case by not having a "phy-handle" property in the device tree. The link to the remote device

Re: [PATCH 6/7] netdev: octeon-ethernet: Add Cavium Octeon III support.

2017-11-02 Thread David Daney
On 11/02/2017 09:10 AM, Andrew Lunn wrote: On Thu, Nov 02, 2017 at 08:55:33AM -0700, David Daney wrote: On 11/02/2017 05:43 AM, Andrew Lunn wrote: [...] + + i = atomic_inc_return(_id); + pki_dev = platform_device_register_data(_dev->

Re: [PATCH 4/7] MIPS: Octeon: Add Free Pointer Unit (FPA) support.

2017-11-02 Thread David Daney
On 11/01/2017 08:29 PM, Florian Fainelli wrote: Le 11/01/17 à 17:36, David Daney a écrit : From: Carlos Munoz <cmu...@cavium.com> From the hardware user manual: "The FPA is a unit that maintains pools of pointers to free L2/DRAM memory. To provide QoS, the pools are referenced

Re: [PATCH 1/7] dt-bindings: Add Cavium Octeon Common Ethernet Interface.

2017-11-02 Thread David Daney
On 11/02/2017 05:47 AM, Andrew Lunn wrote: On Wed, Nov 01, 2017 at 06:09:17PM -0700, Florian Fainelli wrote: On 11/01/2017 05:36 PM, David Daney wrote: From: Carlos Munoz <cmu...@cavium.com> Add bindings for Common Ethernet Interface (BGX) block. Signed-off-by: Carlos Muno

Re: [PATCH 3/7] MIPS: Octeon: Add a global resource manager.

2017-11-02 Thread David Daney
On 11/02/2017 05:23 AM, Andrew Lunn wrote: +static void res_mgr_lock(void) +{ + unsigned int tmp; + u64 lock = (u64)_mgr_info->rlock; + + __asm__ __volatile__( + ".set noreorder\n" + "1: ll %[tmp], 0(%[addr])\n" + " bnez %[tmp],

Re: [PATCH 6/7] netdev: octeon-ethernet: Add Cavium Octeon III support.

2017-11-02 Thread David Daney
the "ethernet-mac-pki" PKI/PKO packet processor. The SoCs supported by these drivers do not contain any hardware that would be considered an "Ethernet switch". I'm not sure I fully understand what your question is though, so I may not have answered it. David Daney

Re: [PATCH 1/7] dt-bindings: Add Cavium Octeon Common Ethernet Interface.

2017-11-01 Thread David Daney
On 11/01/2017 06:09 PM, Florian Fainelli wrote: On 11/01/2017 05:36 PM, David Daney wrote: From: Carlos Munoz <cmu...@cavium.com> Add bindings for Common Ethernet Interface (BGX) block. Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.

[PATCH 1/7] dt-bindings: Add Cavium Octeon Common Ethernet Interface.

2017-11-01 Thread David Daney
From: Carlos Munoz <cmu...@cavium.com> Add bindings for Common Ethernet Interface (BGX) block. Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- .../device

[PATCH 2/7] MIPS: Octeon: Enable LMTDMA/LMTST operations.

2017-11-01 Thread David Daney
f data to the I/O device and then return a variable length (up to 128 bytes) response from the IOI device. Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- arch/mi

[PATCH 4/7] MIPS: Octeon: Add Free Pointer Unit (FPA) support.

2017-11-01 Thread David Daney
." Signed-off-by: Carlos Munoz <cmu...@cavium.com> Signed-off-by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- arch/mips/cavium-octeon/Kconfig | 10 + arch/mips/cavium-octeon/Makefile | 1 + arch/m

[PATCH 3/7] MIPS: Octeon: Add a global resource manager.

2017-11-01 Thread David Daney
by: Steven J. Hill <steven.h...@cavium.com> Signed-off-by: David Daney <david.da...@cavium.com> --- arch/mips/cavium-octeon/Makefile | 3 +- arch/mips/cavium-octeon/resource-mgr.c | 362 + arch/mips/include/asm/octeon/octeon.h | 18 ++ 3 files

[PATCH 5/7] MIPS: Octeon: Automatically provision CVMSEG space.

2017-11-01 Thread David Daney
additional lines, defaults to zero. Signed-off-by: David Daney <david.da...@cavium.com> Signed-off-by: Carlos Munoz <cmu...@caviumnetworks.com> --- arch/mips/cavium-octeon/Kconfig| 27 arch/mips/cavium-octeon/setup.c

[PATCH 7/7] MAINTAINERS: Add entry for drivers/net/ethernet/cavium/octeon/octeon3-*

2017-11-01 Thread David Daney
Signed-off-by: David Daney <david.da...@cavium.com> --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9a24f56e0451..142af33adc35 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3212,6 +3212,12 @@ W: http://www.cavium.

[PATCH 0/7] Cavium OCTEON-III network driver.

2017-11-01 Thread David Daney
support. David Daney (2): MIPS: Octeon: Automatically provision CVMSEG space. MAINTAINERS: Add entry for drivers/net/ethernet/cavium/octeon/octeon3-* .../devicetree/bindings/net/cavium-bgx.txt | 59 + MAINTAINERS|6 + arch/mips/cavium

Re: [RFC net-next 0/4] net: phy: PHY_HALTED, the return of the state

2017-10-30 Thread David Daney
re returns and strikes back with a few additional changes: - catch phy_disconnect() calls without prior phy_stop() and warn when that happens since that means a driver is not behaving properly. This is AFAIR the case in which David Daney ran into Light testing demonstrates that the links

Re: [PATCH v2] xdp: Sample xdp program implementing ip forward

2017-10-10 Thread David Daney
f trying to pack it into a long. Keep working on this though, this program will surely be useful. David Daney

Re: [PATCH net] Revert "net: phy: Correctly process PHY_HALTED in phy_stop_machine()"

2017-09-06 Thread David Daney
On 09/06/2017 04:14 PM, Florian Fainelli wrote: On 09/06/2017 03:51 PM, David Daney wrote: [...] Consider instead the case of a Marvell phy with no interrupts connected on a v4.9.43 kernel, single CPU: 0) | phy_disconnect() { 0

Re: [PATCH net] Revert "net: phy: Correctly process PHY_HALTED in phy_stop_machine()"

2017-09-06 Thread David Daney
On 09/06/2017 01:49 PM, David Daney wrote: On 09/06/2017 11:59 AM, Florian Fainelli wrote: On 09/06/2017 11:00 AM, David Daney wrote: On 08/31/2017 11:29 AM, Florian Fainelli wrote: On 08/31/2017 11:12 AM, Mason wrote: On 31/08/2017 19:53, Florian Fainelli wrote: On 08/31/2017 10:49 AM

Re: [PATCH net] Revert "net: phy: Correctly process PHY_HALTED in phy_stop_machine()"

2017-09-06 Thread David Daney
On 09/06/2017 11:59 AM, Florian Fainelli wrote: On 09/06/2017 11:00 AM, David Daney wrote: On 08/31/2017 11:29 AM, Florian Fainelli wrote: On 08/31/2017 11:12 AM, Mason wrote: On 31/08/2017 19:53, Florian Fainelli wrote: On 08/31/2017 10:49 AM, Mason wrote: On 31/08/2017 18:57, Florian

Re: [PATCH net] Revert "net: phy: Correctly process PHY_HALTED in phy_stop_machine()"

2017-09-06 Thread David Daney
On 08/31/2017 11:29 AM, Florian Fainelli wrote: On 08/31/2017 11:12 AM, Mason wrote: On 31/08/2017 19:53, Florian Fainelli wrote: On 08/31/2017 10:49 AM, Mason wrote: On 31/08/2017 18:57, Florian Fainelli wrote: And the race is between phy_detach() setting phydev->attached_dev = NULL and

Re: [PATCH net] Revert "net: phy: Correctly process PHY_HALTED in phy_stop_machine()"

2017-09-06 Thread David Daney
On 09/06/2017 07:33 AM, Mason wrote: On 31/08/2017 20:29, Florian Fainelli wrote: On 08/31/2017 11:12 AM, Mason wrote: On 31/08/2017 19:53, Florian Fainelli wrote: On 08/31/2017 10:49 AM, Mason wrote: On 31/08/2017 18:57, Florian Fainelli wrote: And the race is between phy_detach() setting

Re: [PATCH net] Revert "net: phy: Correctly process PHY_HALTED in phy_stop_machine()"

2017-08-31 Thread David Daney
On 08/31/2017 05:29 AM, Marc Gonzalez wrote: On 31/08/2017 02:49, Florian Fainelli wrote: This reverts commit 7ad813f208533cebfcc32d3d7474dc1677d1b09a ("net: phy: Correctly process PHY_HALTED in phy_stop_machine()") because it is creating the possibility for a NULL pointer dereferen

Re: [PATCH net v2] net: phy: Correctly process PHY_HALTED in phy_stop_machine()

2017-08-30 Thread David Daney
And of course I mess up my pretty picture, see below. On 08/30/2017 05:13 PM, David Daney wrote: On 07/31/2017 05:28 PM, David Miller wrote: From: Florian Fainelli <f.faine...@gmail.com> Date: Fri, 28 Jul 2017 11:58:36 -0700 Marc reported that he was not getting the PHY library adjus

Re: [PATCH net v2] net: phy: Correctly process PHY_HALTED in phy_stop_machine()

2017-08-30 Thread David Daney
On 07/31/2017 05:28 PM, David Miller wrote: From: Florian Fainelli Date: Fri, 28 Jul 2017 11:58:36 -0700 Marc reported that he was not getting the PHY library adjust_link() callback function to run when calling phy_stop() + phy_disconnect() which does not indeed happen

[PATCH 1/3] MIPS,bpf: Fix using smp_processor_id() in preemptible splat.

2017-08-18 Thread David Daney
If the kernel is configured with preemption enabled we were getting warning stack traces for use of current_cpu_type(). Fix by moving the test between preempt_disable()/preempt_enable() and caching the results of the CPU type tests for use during code generation. Signed-off-by: David Daney

[PATCH 2/3] MIPS,bpf: Implement JLT, JLE, JSLT and JSLE ops in the eBPF JIT.

2017-08-18 Thread David Daney
Signed-off-by: David Daney <david.da...@cavium.com> --- arch/mips/net/ebpf_jit.c | 101 +-- 1 file changed, 72 insertions(+), 29 deletions(-) diff --git a/arch/mips/net/ebpf_jit.c b/arch/mips/net/ebpf_jit.c index 721216b..c1e21cb 100644 --- a/arc

[PATCH 3/3] MIPS,bpf: Cache value of BPF_OP(insn->code) in eBPF JIT.

2017-08-18 Thread David Daney
The code looks a little cleaner if we replace BPF_OP(insn->code) with the local variable bpf_op. Caching the value this way also saves 300 bytes (about 1%) in the code size of the JIT. Signed-off-by: David Daney <david.da...@cavium.com> --- arch/mips/net/ebpf_j

[PATCH 0/3] MIPS,bpf: Improvements for MIPS eBPF JIT

2017-08-18 Thread David Daney
I suggest that the whole thing go via the BPF/net-next path as there are dependencies on code that is not yet merged to Linus' tree. Still pending are changes to reduce stack usage when the verifier can determine the maximum stack size. David Daney (3): MIPS,bpf: Fix using smp_processor

[PATCH] MIPS: Add missing file for eBPF JIT.

2017-08-03 Thread David Daney
hange need to resolve conflicts with changes merged from the BPF branch: A) Set prog->jited_len = image_size; B) Use BPF_TAIL_CALL instead of BPF_CALL | BPF_X Fixes: f381bf6d82f0 ("MIPS: Add support for eBPF JIT.") Signed-off-by: David Daney <david.da...@cavium.com> --- It migh

[PATCH RFC 1/3] arm64: Gate inclusion of asm/sysreg.h by __EMITTING_BPF__

2017-06-15 Thread David Daney
Compilation to eBPF chokes on the inline asm in asm/sysreg.h, so don't include it when compiling to a BPF target. Signed-off-by: David Daney <david.da...@cavium.com> --- arch/arm64/include/asm/sysreg.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm64/inclu

  1   2   3   >