Skip to content

Add CN20K NIX and NPA contexts

Subbaraya Sundeep netdev 4 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest11 patches 0 repliesApplied 11/11
  2. v311 patches 12 repliesSuperseded
  3. v211 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v111 patches2 repliesSuperseded

Changes in v4 from the cover letter

As suggested by Simon
Added static_assert to all context structures Fixed line wraps
constrained #ifdef to small helper in patch 7 Used FIELD_PREP and FIELD_GET in patch 9
As suggested by Jakub
Used order instead of page count for pp_params.order

Patches in v4 All 11 applied

#Subject and filesSizeRepliesApplied
1/11octeontx2-af: Simplify context writing and reading to hardwaredrivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h+46 -230 repliesApplied
2/11octeontx2-af: Add cn20k NIX block contextsdrivers/net/ethernet/marvell/octeontx2/af/Makefile drivers/net/ethernet/marvell/octeontx2/af/cn20k/nix.c drivers/net/ethernet/marvell/octeontx2/af/cn20k/struct.h +3 more+286 -40 repliesApplied
3/11octeontx2-af: Extend debugfs support for cn20k NIXdrivers/net/ethernet/marvell/octeontx2/af/Makefile drivers/net/ethernet/marvell/octeontx2/af/cn20k/debugfs.c drivers/net/ethernet/marvell/octeontx2/af/cn20k/debugfs.h +1 more+176 -10 repliesApplied
4/11octeontx2-af: Add cn20k NPA block contextsdrivers/net/ethernet/marvell/octeontx2/af/Makefile drivers/net/ethernet/marvell/octeontx2/af/cn20k/npa.c drivers/net/ethernet/marvell/octeontx2/af/cn20k/struct.h +1 more+193 -10 repliesApplied
5/11octeontx2-af: Extend debugfs support for cn20k NPAdrivers/net/ethernet/marvell/octeontx2/af/cn20k/debugfs.c drivers/net/ethernet/marvell/octeontx2/af/cn20k/debugfs.h drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c+98 -00 repliesApplied
6/11octeontx2-af: Skip NDC operations for cn20kdrivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c+24 -80 repliesApplied
7/11octeontx2-pf: Initialize cn20k specific aura and pool contextsdrivers/net/ethernet/marvell/octeontx2/nic/cn10k.c drivers/net/ethernet/marvell/octeontx2/nic/cn20k.c drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c +1 more+203 -110 repliesApplied
8/11octeontx2-pf: Initialize new NIX SQ context for cn20kdrivers/net/ethernet/marvell/octeontx2/nic/cn20k.c+35 -10 repliesApplied
9/11octeontx2-af: Accommodate more bandwidth profiles for cn20kdrivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c drivers/net/ethernet/marvell/octeontx2/af/rvu_struct.h+21 -70 repliesApplied
10/11octeontx2-af: Display new bandwidth profiles too in debugfsdrivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c+7 -20 repliesApplied
11/11octeontx2-pf: Use new bandwidth profiles in receive queuedrivers/net/ethernet/marvell/octeontx2/nic/cn10k.c+6 -00 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [net-next v4 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

v4 changes:
As suggested by Simon
Added static_assert to all context structures Fixed line wraps
constrained #ifdef to small helper in patch 7 Used FIELD_PREP and FIELD_GET in patch 9
As suggested by Jakub
Used order instead of page count for pp_params.order
v3 changes:
Added static_assert as suggested by Michal Swiatkowski
v2 changes:
Fixed string fortifier warnings by padding structures

Link till v3:
https://lore.kernel.org/all/[email protected]/

Thanks,
Sundeep

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      | 218 +++++++++++
 .../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       | 340 ++++++++++++++++++
 .../net/ethernet/marvell/octeontx2/af/mbox.h  |  73 ++++
 .../net/ethernet/marvell/octeontx2/af/rvu.h   |  15 +-
 .../marvell/octeontx2/af/rvu_debugfs.c        |  39 +-
 .../ethernet/marvell/octeontx2/af/rvu_nix.c   |  76 ++--
 .../ethernet/marvell/octeontx2/af/rvu_npa.c   |  29 +-
 .../marvell/octeontx2/af/rvu_struct.h         |  31 +-
 .../ethernet/marvell/octeontx2/nic/cn10k.c    |  10 +
 .../ethernet/marvell/octeontx2/nic/cn20k.c    | 220 +++++++++++-
 .../marvell/octeontx2/nic/otx2_common.c       |  14 +
 .../marvell/octeontx2/nic/otx2_common.h       |  10 +
 16 files changed, 1092 insertions(+), 55 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
Signature · 1 line
2.48.1