[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241218145938.3301279-1-saikrishnag@marvell.com>
Date: Wed, 18 Dec 2024 20:29:32 +0530
From: Sai Krishna <saikrishnag@...vell.com>
To: <davem@...emloft.net>, <edumazet@...gle.com>, <kuba@...nel.org>,
<pabeni@...hat.com>, <netdev@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <sgoutham@...vell.com>,
<gakula@...vell.com>, <lcherian@...vell.com>, <jerinj@...vell.com>,
<hkelam@...vell.com>, <sbhatta@...vell.com>, <andrew+netdev@...n.ch>,
<kalesh-anakkur.purayil@...adcom.com>
CC: Sai Krishna <saikrishnag@...vell.com>
Subject: [net-next PATCH v6 0/6] CN20K silicon with mbox support
CN20K is the next generation silicon in the Octeon series with various
improvements and new features.
Along with other changes the mailbox communication mechanism between RVU
(Resource virtualization Unit) SRIOV PFs/VFs with Admin function (AF) has
also gone through some changes.
Some of those changes are
- Separate IRQs for mbox request and response/ack.
- Configurable mbox size, default being 64KB.
- Ability for VFs to communicate with RVU AF instead of going through
parent SRIOV PF.
Due to more memory requirement due to configurable mbox size, mbox memory
will now have to be allocated by
- AF (PF0) for communicating with other PFs and all VFs in the system.
- PF for communicating with it's child VFs.
On previous silicons mbox memory was reserved and configured by firmware.
This patch series add basic mbox support for AF (PF0) <=> PFs and
PF <=> VFs. AF <=> VFs communication and variable mbox size support will
come in later.
Patch #1 Supported co-existance of bit encoding PFs and VFs in 16-bit
hardware pcifunc format between CN20K silicon and older octeon
series. Also exported PF,VF masks and shifts present in mailbox
module to all other modules.
Patch #2 Added basic mbox operation APIs and structures to support both
CN20K and previous version of silicons.
Patch #3 This patch adds support for basic mbox infrastructure
implementation for CN20K silicon in AF perspective. There are
few updates w.r.t MBOX ACK interrupt and offsets in CN20k.
Patch #4 Added mbox implementation between NIC PF and AF for CN20K.
Patch #5 Added mbox communication support between AF and AF's VFs.
Patch #6 This patch adds support for MBOX communication between NIC PF and
its VFs.
Sai Krishna (5):
octeontx2-af: CN20k basic mbox operations and structures
octeontx2-af: CN20k mbox to support AF REQ/ACK functionality
octeontx2-pf: CN20K mbox REQ/ACK implementation for NIC PF
octeontx2-af: CN20K mbox implementation for AF's VF
octeontx2-pf: CN20K mbox implementation between PF-VF
Subbaraya Sundeep (1):
octeontx2: Set appropriate PF, VF masks and shifts based on silicon
---
v6 changes:
Addressed review comments given by Jakub Kicinski
1. Fixed minor line alignment issue to fit in 80 char.
2. Jakub also suggested to convert macros from patch1 into helper APIs.
Since this will result in lot of changes (at >100 places across
multiple drivers), will submit that patch as a separate cleanup
patch.
v5 changes:
No changes, re-posting.
v4 changes:
Addressed minor conflits suggested by Jakub Kicinski
1. This V4 version of patch set is just a rebase of V3 on top of
net-next to address some minor conflicts.
v3 changes:
Addressed review comments given by Jakub Kicinski, Simon Horman
1. Fixed sparse errors, warnings.
2. Fixed a comment mistake, inline with kernel-doc format.
3. Removed un-necessary type casting to honor Networking code format.
v2 changes:
Addressed review comments given by Kalesh Anakkur Purayil
1. Optimized code in parts of patches, removed redundant code
2. Fixed sparse warning
3. Removed debug log.
.../ethernet/marvell/octeontx2/af/Makefile | 2 +-
.../ethernet/marvell/octeontx2/af/cn20k/api.h | 34 ++
.../marvell/octeontx2/af/cn20k/mbox_init.c | 418 ++++++++++++++++++
.../ethernet/marvell/octeontx2/af/cn20k/reg.h | 81 ++++
.../marvell/octeontx2/af/cn20k/struct.h | 40 ++
.../ethernet/marvell/octeontx2/af/common.h | 2 +-
.../net/ethernet/marvell/octeontx2/af/mbox.c | 129 +++++-
.../net/ethernet/marvell/octeontx2/af/mbox.h | 13 +
.../net/ethernet/marvell/octeontx2/af/rvu.c | 195 +++++---
.../net/ethernet/marvell/octeontx2/af/rvu.h | 53 ++-
.../marvell/octeontx2/af/rvu_struct.h | 6 +-
.../ethernet/marvell/octeontx2/nic/Makefile | 2 +-
.../ethernet/marvell/octeontx2/nic/cn10k.c | 18 +-
.../ethernet/marvell/octeontx2/nic/cn10k.h | 1 +
.../marvell/octeontx2/nic/cn10k_ipsec.c | 2 +-
.../marvell/octeontx2/nic/cn10k_ipsec.h | 2 +-
.../ethernet/marvell/octeontx2/nic/cn20k.c | 252 +++++++++++
.../ethernet/marvell/octeontx2/nic/cn20k.h | 17 +
.../marvell/octeontx2/nic/otx2_common.c | 10 +-
.../marvell/octeontx2/nic/otx2_common.h | 35 +-
.../ethernet/marvell/octeontx2/nic/otx2_pf.c | 152 +++++--
.../ethernet/marvell/octeontx2/nic/otx2_reg.h | 49 +-
.../ethernet/marvell/octeontx2/nic/otx2_vf.c | 44 +-
23 files changed, 1393 insertions(+), 164 deletions(-)
create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/cn20k/api.h
create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/cn20k/mbox_init.c
create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/cn20k/reg.h
create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/cn20k/struct.h
create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/cn20k.c
create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/cn20k.h
--
2.25.1
Powered by blists - more mailing lists