[net-next v6 11/14] octeontx2-pf: cn10k: Get max mtu supported from admin function

2021-02-11 Thread Geetha sowjanya
-by: Hariprasad Kelam Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/nic/cn10k.c| 2 +- .../marvell/octeontx2/nic/otx2_common.c | 45 +-- .../marvell/octeontx2/nic/otx2_common.h | 2

[net-next v6 14/14] octeontx2-af: cn10k: MAC internal loopback support

2021-02-11 Thread Geetha sowjanya
onTx3 CN10K are different and loopback needs to be configured differently. Upper layer interface between RVU AF and PF netdev is kept same. Based on silicon variant appropriate fn() pointer is called to config the MAC. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by:

[net-next v6 13/14] octeontx2-af: cn10k: Add RPM Rx/Tx stats support

2021-02-11 Thread Geetha sowjanya
new mbox rpm_stats to read all support counters. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Kovvuri Goutham --- .../net/ethernet/marvell/octeontx2/af/cgx.c | 10 +- .../net/ethernet/marvell/octeontx2/af/cgx.h | 4 +- .../marvell/octeontx2/af

[net-next v6 12/14] octeontx2-af: cn10k: Add RPM LMAC pause frame support

2021-02-11 Thread Geetha sowjanya
From: Rakesh Babu Flow control configuration is different for CGX(Octeontx2) and RPM(CN10K) functional blocks. This patch adds the necessary changes for RPM to support 802.3 pause frames configuration on cn10k platforms. Signed-off-by: Rakesh Babu Signed-off-by: Geetha sowjanya Signed-off-by

[net-next v6 10/14] octeontx2-af: cn10K: Add MTU configuration

2021-02-11 Thread Geetha sowjanya
retrieve max packet size supported via mbox This patch also configures tx link credit by considering supported fifo size and max packet length for Octeontx3 silicon. This patch also removes platform specific name from the driver name. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha

[net-next v6 09/14] octeontx2-af: cn10k: Add support for programmable channels

2021-02-11 Thread Geetha sowjanya
y AF and sent along with nix_lf_alloc mailbox response. Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- MAINTAINERS | 1 + .../ethernet/marvell/octeontx2/af/Makefile| 2 +- .../net/ethernet/marvell/octeontx2/af/

[net-next v6 08/14] octeontx2-af: cn10k: Add RPM MAC support

2021-02-11 Thread Geetha sowjanya
TX stats. Unlike CGX, bar offset of stat registers are different. This patch adds support to access the same and dump the values in debugfs. Signed-off-by: Hariprasad Kelam Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Gouth

[net-next v6 06/14] octeontx2-pf: cn10k: Map LMTST region

2021-02-11 Thread Geetha sowjanya
egion. - Reserves 0-71 (RX + TX + XDP) LMTST lines for NPA batch free operation. - Reserves 72-512 LMTST lines for NIX SQE flush. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../marvell/octeontx2/nic/otx2_common.h | 15 +- .../ethernet/marvell/octeontx2/nic/otx2_pf.c

[net-next v6 07/14] octeontx2-pf: cn10k: Use LMTST lines for NPA/NIX operations

2021-02-11 Thread Geetha sowjanya
This patch adds support to use new LMTST lines for NPA batch free and burst SQE flush. Adds new dev_hw_ops structure to hold platform specific functions and create new files cn10k.c and cn10k.h. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/nic

[net-next v6 05/14] octeontx2-pf: cn10k: Initialise NIX context

2021-02-11 Thread Geetha sowjanya
On CN10K platform NIX RQ and SQ context structure got changed. This patch uses new mbox message "NIX_CN10K_AQ_ENQ" for NIX context initialization on CN10K platform. This patch also updates the nix_rx_parse_s and nix_sqe_sg_s structures to add packet steering bit feilds. Signed-off-

[net-next v6 04/14] octeontx2-af: cn10k: Update NIX and NPA context in debugfs

2021-02-11 Thread Geetha sowjanya
On CN10K platform NPA and NIX context structure bit fields had changed to support new features like bandwidth steering etc. This patch dumps approprate context for CN10K platform. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../marvell/octeontx2/af/rvu_debugfs.c

[net-next v6 01/14] octeontx2-af: cn10k: Add mbox support for CN10K platform

2021-02-11 Thread Geetha sowjanya
changes mbox initialization to support both CN9XX and CN10K platform. This patch also adds CN10K PTP subsystem and device IDs to ptp driver id table. Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../net/ethernet/marvell/octeontx2/af/mbox.c | 59

[net-next v6 02/14] octeontx2-pf: cn10k: Add mbox support for CN10K

2021-02-11 Thread Geetha sowjanya
from the PF/VF driver name to make it appropriate for all supported platforms Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/nic/Makefile | 8 ++-- .../marvell/octeontx2/nic/otx2_common.h | 29

[net-next v6 03/14] octeontx2-af: cn10k: Update NIX/NPA context structure

2021-02-11 Thread Geetha sowjanya
structures to accommodate bit field changes made for CN10K platform. This patch also removes Big endian bit fields from existing structures as its support got deprecated in current and upcoming silicons. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../net/ethernet/marvell

[net-next v6 00/14] Add Marvell CN10K support

2021-02-11 Thread Geetha sowjanya
ext branch. v1-v2 Fixed check-patch reported issues. Geetha sowjanya (5): octeontx2-af: cn10k: Update NIX/NPA context structure octeontx2-af: cn10k: Update NIX and NPA context in debugfs octeontx2-pf: cn10k: Initialise NIX context octeontx2-pf: cn10k: Map LMTST region octeontx2-pf: cn10k:

[net-next v5 14/14] octeontx2-af: cn10k: MAC internal loopback support

2021-02-10 Thread Geetha sowjanya
onTx3 CN10K are different and loopback needs to be configured differently. Upper layer interface between RVU AF and PF netdev is kept same. Based on silicon variant appropriate fn() pointer is called to config the MAC. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by:

[net-next v5 12/14] octeontx2-af: cn10k: Add RPM LMAC pause frame support

2021-02-10 Thread Geetha sowjanya
From: Rakesh Babu Flow control configuration is different for CGX(Octeontx2) and RPM(CN10K) functional blocks. This patch adds the necessary changes for RPM to support 802.3 pause frames configuration on cn10k platforms. Signed-off-by: Rakesh Babu Signed-off-by: Geetha sowjanya Signed-off-by

[net-next v5 13/14] octeontx2-af: cn10k: Add RPM Rx/Tx stats support

2021-02-10 Thread Geetha sowjanya
new mbox rpm_stats to read all support counters. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Kovvuri Goutham --- .../net/ethernet/marvell/octeontx2/af/cgx.c | 10 +- .../net/ethernet/marvell/octeontx2/af/cgx.h | 4 +- .../marvell/octeontx2/af

[net-next v5 11/14] octeontx2-pf: cn10k: Get max mtu supported from admin function

2021-02-10 Thread Geetha sowjanya
-by: Hariprasad Kelam Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/nic/cn10k.c| 2 +- .../marvell/octeontx2/nic/otx2_common.c | 45 +-- .../marvell/octeontx2/nic/otx2_common.h | 2

[net-next v5 10/14] octeontx2-af: cn10K: Add MTU configuration

2021-02-10 Thread Geetha sowjanya
retrieve max packet size supported via mbox This patch also configures tx link credit by considering supported fifo size and max packet length for Octeontx3 silicon. This patch also removes platform specific name from the driver name. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha

[net-next v5 09/14] octeontx2-af: cn10k: Add support for programmable channels

2021-02-10 Thread Geetha sowjanya
y AF and sent along with nix_lf_alloc mailbox response. Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- MAINTAINERS | 1 + .../ethernet/marvell/octeontx2/af/Makefile| 2 +- .../net/ethernet/marvell/octeontx2/af/

[net-next v5 07/14] octeontx2-pf: cn10k: Use LMTST lines for NPA/NIX operations

2021-02-10 Thread Geetha sowjanya
This patch adds support to use new LMTST lines for NPA batch free and burst SQE flush. Adds new dev_hw_ops structure to hold platform specific functions and create new files cn10k.c and cn10k.h. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/nic

[net-next v5 08/14] octeontx2-af: cn10k: Add RPM MAC support

2021-02-10 Thread Geetha sowjanya
TX stats. Unlike CGX, bar offset of stat registers are different. This patch adds support to access the same and dump the values in debugfs. Signed-off-by: Hariprasad Kelam Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Gouth

[net-next v5 06/14] octeontx2-pf: cn10k: Map LMTST region

2021-02-10 Thread Geetha sowjanya
egion. - Reserves 0-71 (RX + TX + XDP) LMTST lines for NPA batch free operation. - Reserves 72-512 LMTST lines for NIX SQE flush. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../marvell/octeontx2/nic/otx2_common.h | 15 +- .../ethernet/marvell/octeontx2/nic/otx2_pf.c

[net-next v5 05/14] octeontx2-pf: cn10k: Initialise NIX context

2021-02-10 Thread Geetha sowjanya
On CN10K platform NIX RQ and SQ context structure got changed. This patch uses new mbox message "NIX_CN10K_AQ_ENQ" for NIX context initialization on CN10K platform. This patch also updates the nix_rx_parse_s and nix_sqe_sg_s structures to add packet steering bit feilds. Signed-off-

[net-next v5 04/14] octeontx2-af: cn10k: Update NIX and NPA context in debugfs

2021-02-10 Thread Geetha sowjanya
On CN10K platform NPA and NIX context structure bit fields had changed to support new features like bandwidth steering etc. This patch dumps approprate context for CN10K platform. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../marvell/octeontx2/af/rvu_debugfs.c

[net-next v5 03/14] octeontx2-af: cn10k: Update NIX/NPA context structure

2021-02-10 Thread Geetha sowjanya
structures to accommodate bit field changes made for CN10K platform. This patch also removes Big endian bit fields from existing structures as its support got deprecated in current and upcoming silicons. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../net/ethernet/marvell

[net-next v5 02/14] octeontx2-pf: cn10k: Add mbox support for CN10K

2021-02-10 Thread Geetha sowjanya
from the PF/VF driver name to make it appropriate for all supported platforms Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/nic/Makefile | 8 ++-- .../marvell/octeontx2/nic/otx2_common.h | 29

[net-next v5 01/14] octeontx2-af: cn10k: Add mbox support for CN10K platform

2021-02-10 Thread Geetha sowjanya
changes mbox initialization to support both CN9XX and CN10K platform. This patch also adds CN10K PTP subsystem and device IDs to ptp driver id table. Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../net/ethernet/marvell/octeontx2/af/mbox.c | 59

[net-next v5 00/14] Add Marvell CN10K support

2021-02-10 Thread Geetha sowjanya
sion to HW - Programmable HW interface identifiers (channels) - Increased MTU support - A Serdes MAC block (RPM) configuration v4-v5 Fixed sparse warnings. v3-v4 Fixed compiler warnings. v2-v3 Reposting as a single thread. Rebased on top latest net-next branch. v1-v2 Fixed check-patch reported issues

[net-next v4 02/14] octeontx2-pf: cn10k: Add mbox support for CN10K

2021-02-05 Thread Geetha sowjanya
from the PF/VF driver name to make it appropriate for all supported platforms Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../net/ethernet/marvell/octeontx2/nic/Makefile| 8 ++--- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 29

[net-next v4 13/14] octeontx2-af: cn10k: Add RPM Rx/Tx stats support

2021-02-05 Thread Geetha sowjanya
new mbox rpm_stats to read all support counters. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Kovvuri Goutham --- drivers/net/ethernet/marvell/octeontx2/af/cgx.c| 10 +- drivers/net/ethernet/marvell/octeontx2/af/cgx.h| 4 +- .../ethernet

[net-next v4 10/14] octeontx2-af: cn10K: Add MTU configuration

2021-02-05 Thread Geetha sowjanya
retrieve max packet size supported via mbox This patch also configures tx link credit by considering supported fifo size and max packet length for Octeontx3 silicon. This patch also removes platform specific name from the driver name. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha

[net-next v4 11/14] octeontx2-pf: cn10k: Get max mtu supported from admin function

2021-02-05 Thread Geetha sowjanya
-by: Hariprasad Kelam Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell/octeontx2/nic/cn10k.c | 2 +- .../ethernet/marvell/octeontx2/nic/otx2_common.c | 43 +- .../ethernet/marvell/octeontx2/nic

[net-next v4 05/14] octeontx2-pf: cn10k: Initialise NIX context

2021-02-05 Thread Geetha sowjanya
On CN10K platform NIX RQ and SQ context structure got changed. This patch uses new mbox message "NIX_CN10K_AQ_ENQ" for NIX context initialization on CN10K platform. This patch also updates the nix_rx_parse_s and nix_sqe_sg_s structures to add packet steering bit feilds. Signed-off-

[net-next v4 08/14] octeontx2-af: cn10k: Add RPM MAC support

2021-02-05 Thread Geetha sowjanya
TX stats. Unlike CGX, bar offset of stat registers are different. This patch adds support to access the same and dump the values in debugfs. Signed-off-by: Hariprasad Kelam Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Gouth

[net-next v4 06/14] octeontx2-pf: cn10k: Map LMTST region

2021-02-05 Thread Geetha sowjanya
egion. - Reserves 0-71 (RX + TX + XDP) LMTST lines for NPA batch free operation. - Reserves 72-512 LMTST lines for NIX SQE flush. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 15 ++- .../net/ethernet/marvell/octeontx2/nic/otx2

[net-next v4 03/14] octeontx2-af: cn10k: Update NIX/NPA context structure

2021-02-05 Thread Geetha sowjanya
structures to accommodate bit field changes made for CN10K platform. This patch also removes Big endian bit fields from existing structures as its support got deprecated in current and upcoming silicons. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell

[net-next v4 09/14] octeontx2-af: cn10k: Add support for programmable channels

2021-02-05 Thread Geetha sowjanya
y AF and sent along with nix_lf_alloc mailbox response. Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- MAINTAINERS| 1 + drivers/net/ethernet/marvell/octeontx2/af/Makefile | 2 +- drivers/net/ethernet/marvell/oct

[net-next v4 14/14] octeontx2-af: cn10k: MAC internal loopback support

2021-02-05 Thread Geetha sowjanya
onTx3 CN10K are different and loopback needs to be configured differently. Upper layer interface between RVU AF and PF netdev is kept same. Based on silicon variant appropriate fn() pointer is called to config the MAC. Signed-off-by: Hariprasad Kelam Signed-off-by: Geetha sowjanya Signed-off-by:

[net-next v4 00/14] Add Marvell CN10K support

2021-02-05 Thread Geetha sowjanya
sion to HW - Programmable HW interface identifiers (channels) - Increased MTU support - A Serdes MAC block (RPM) configuration v3-v4 Fixed compiler warnings. v2-v3 Reposting as a single thread. Rebased on top latest net-next branch. v1-v2 Fixed check-patch reported issues. Geetha sowjanya (6): oc

[net-next v4 01/14] octeontx2-af: cn10k: Add mbox support for CN10K platform

2021-02-05 Thread Geetha sowjanya
support both CN9XX and CN10K platform. This patch also adds CN10K PTP subsystem and device IDs to ptp driver id table. Signed-off-by: Subbaraya Sundeep Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- drivers/net/ethernet/marvell/octeontx2/af/mbox.c | 59 -- drivers

[net-next v4 07/14] octeontx2-pf: cn10k: Use LMTST lines for NPA/NIX

2021-02-05 Thread Geetha sowjanya
This patch adds support to use new LMTST lines for NPA batch free and burst SQE flush. Adds new dev_hw_ops structure to hold platform specific functions and create new files cn10k.c and cn10k.h. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../net/ethernet/marvell/octeontx2

[net-next v4 12/14] octeontx2-af: cn10k: Add RPM LMAC pause frame support

2021-02-05 Thread Geetha sowjanya
From: Rakesh Babu Flow control configuration is different for CGX(Octeontx2) and RPM(CN10K) functional blocks. This patch adds the necessary changes for RPM to support 802.3 pause frames configuration on cn10k platforms. Signed-off-by: Rakesh Babu Signed-off-by: Geetha sowjanya Signed-off-by

[net-next v4 04/14] octeontx2-af: cn10k: Update NIX and NPA context in debugfs

2021-02-05 Thread Geetha sowjanya
On CN10K platform NPA and NIX context structure bit fields had changed to support new features like bandwidth steering etc. This patch dumps approprate context for CN10K platform. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../ethernet/marvell/octeontx2/af/rvu_debugfs.c

[net-next v3 07/14] octeontx2-pf: cn10k: Use LMTST lines for NPA/NIX operations

2021-02-04 Thread Geetha sowjanya
This patch adds support to use new LMTST lines for NPA batch free and burst SQE flush. Adds new dev_hw_ops structure to hold platform specific functions and create new files cn10k.c and cn10k.h. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../net/ethernet/marvell/octeontx2

[net-next v2 07/14] octeontx2-pf: cn10k: Use LMTST lines for NPA/NIX operations

2021-02-01 Thread Geetha sowjanya
This patch adds support to use new LMTST lines for NPA batch free and burst SQE flush. Adds new dev_hw_ops structure to hold platform specific functions and create new files cn10k.c and cn10k.h. Signed-off-by: Geetha sowjanya Signed-off-by: Sunil Goutham --- .../net/ethernet/marvell/octeontx2