[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1752420669-2908-1-git-send-email-sbhatta@marvell.com>
Date: Sun, 13 Jul 2025 21:00:58 +0530
From: Subbaraya Sundeep <sbhatta@...vell.com>
To: <andrew+netdev@...n.ch>, <davem@...emloft.net>, <edumazet@...gle.com>,
<kuba@...nel.org>, <pabeni@...hat.com>, <horms@...nel.org>
CC: <gakula@...vell.com>, <hkelam@...vell.com>, <bbhushan2@...vell.com>,
<jerinj@...vell.com>, <lcherian@...vell.com>, <sgoutham@...vell.com>,
<netdev@...r.kernel.org>, Subbaraya Sundeep <sbhatta@...vell.com>
Subject: [net-next PATCH 00/11] Add CN20K NIX and NPA contexts
The hardware contexts of blocks NIX and NPA in CN20K silicon are
different than that of previous silicons CN10K and CN9XK. This
patchset adds the new contexts of CN20K in AF and PF drivers.
A new mailbox for enqueuing contexts to hardware is added.
Patch 1 simplifies context writing and reading by using max context
size supported by hardware instead of using each context size.
Patch 2 and 3 adds NIX block contexts in AF driver and extends
debugfs to display those new contexts
Patch 4 and 5 adds NPA block contexts in AF driver and extends
debugfs to display those new contexts
Patch 6 omits NDC configuration since CN20K NPA does not use NDC
for caching its contexts
Patch 7 and 8 uses the new NIX and NPA contexts in PF/VF driver.
Patch 9, 10 and 11 are to support more bandwidth profiles present in
CN20K for RX ratelimiting and to display new profiles in debugfs
Linu Cherian (4):
octeontx2-af: Add cn20k NPA block contexts
octeontx2-af: Extend debugfs support for cn20k NPA
octeontx2-af: Skip NDC operations for cn20k
octeontx2-pf: Initialize cn20k specific aura and pool contexts
Subbaraya Sundeep (7):
octeontx2-af: Simplify context writing and reading to hardware
octeontx2-af: Add cn20k NIX block contexts
octeontx2-af: Extend debugfs support for cn20k NIX
octeontx2-pf: Initialize new NIX SQ context for cn20k
octeontx2-af: Accommodate more bandwidth profiles for cn20k
octeontx2-af: Display new bandwidth profiles too in debugfs
octeontx2-pf: Use new bandwidth profiles in receive queue
.../ethernet/marvell/octeontx2/af/Makefile | 3 +-
.../marvell/octeontx2/af/cn20k/debugfs.c | 216 ++++++++++++
.../marvell/octeontx2/af/cn20k/debugfs.h | 28 ++
.../ethernet/marvell/octeontx2/af/cn20k/nix.c | 20 ++
.../ethernet/marvell/octeontx2/af/cn20k/npa.c | 21 ++
.../marvell/octeontx2/af/cn20k/struct.h | 326 ++++++++++++++++++
.../net/ethernet/marvell/octeontx2/af/mbox.h | 73 ++++
.../net/ethernet/marvell/octeontx2/af/rvu.h | 3 +
.../marvell/octeontx2/af/rvu_debugfs.c | 39 ++-
.../ethernet/marvell/octeontx2/af/rvu_nix.c | 69 ++--
.../ethernet/marvell/octeontx2/af/rvu_npa.c | 29 +-
.../marvell/octeontx2/af/rvu_struct.h | 6 +-
.../ethernet/marvell/octeontx2/nic/cn10k.c | 10 +
.../ethernet/marvell/octeontx2/nic/cn20k.c | 212 +++++++++++-
.../marvell/octeontx2/nic/otx2_common.c | 14 +
.../marvell/octeontx2/nic/otx2_common.h | 10 +
16 files changed, 1026 insertions(+), 53 deletions(-)
create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/cn20k/debugfs.c
create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/cn20k/debugfs.h
create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/cn20k/nix.c
create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/cn20k/npa.c
--
2.34.1
Powered by blists - more mailing lists