Add PTP support for Octeontx2
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v8 Latest3 patches 1 replyIn review
- v73 patches 3 repliesSuperseded
- v63 patches 6 repliesSuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v5 | 3 patches | 1 reply | Superseded | |
| v3 | 3 patches | 4 replies | Superseded | |
| v2 | 3 patches | 2 replies | Superseded | |
| v1 | 3 patches | 0 replies | Superseded |
Changes in v8 from the cover letter
Added missing header file reported by kernel test robot in patch 2
Patches in v8 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | octeontx2-af: Support to enable/disable HW timestampingdrivers/ drivers/ drivers/ +4 more | +151 | 0 replies | |
| 2/3 | octeontx2-af: Add support for Marvell PTP coprocessordrivers/ drivers/ drivers/ +3 more | +348 | 0 replies | |
| 3/3 | octeontx2-pf: Add support for PTP clockdrivers/ drivers/ drivers/ +6 more | +532 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Richard Cochran | Jakub Kicinski | Jesse Brandeburg |
|---|---|---|---|
| Series | A-b | A-b | |
| 1/3 | A-b | A-b | |
| 2/3 | A-b | A-b | |
| 3/3 | A-b | A-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v8 net-next 0/3] Add PTP support for Octeontx2
From: Subbaraya Sundeep <[email protected]>
Hi,
This patchset adds PTP support for Octeontx2 platform. PTP is an independent coprocessor block from which CGX block fetches timestamp and prepends it to the packet before sending to NIX block. Patches are as follows:
Patch 1: Patch to enable/disable packet timstamping
in CGX upon mailbox request. It also adjusts packet parser (NPC) for the 8 bytes timestamp appearing before the packet.
Patch 2: Patch adding PTP pci driver which configures
the PTP block and hooks up to RVU AF driver. It also exposes a mailbox call to adjust PTP hardware clock.
Patch 3: Patch adding PTP clock driver for PF netdev.
v8:
Added missing header file reported by kernel test robot in patch 2
v7:
As per Jesse Brandeburg comments:
Simplified functions in patch 1
Replaced magic numbers with macros
Added Copyrights
Added code comments wherever required
Modified commit description of patch 2
v6:
Resent after net-next is open
v5:
As suggested by David separated the fix (adding rtnl lock/unlock) and submitted to net.
https://www.spinics.net/lists/netdev/msg669617.html
v4:
Added rtnl_lock/unlock in otx2_reset to protect against network stack ndo_open and close calls
Added NULL check after ptp_clock_register in otx2_ptp.c
v3:
Fixed sparse error in otx2_txrx.c
Removed static inlines in otx2_txrx.c
v2:
Fixed kernel build robot reported error by
adding timecounter.h to otx2_common.h
Aleksey Makarov (2):
octeontx2-af: Add support for Marvell PTP coprocessor
octeontx2-pf: Add support for PTP clock
Zyta Szpak (1):
octeontx2-af: Support to enable/disable HW timestamping
drivers/net/ethernet/marvell/octeontx2/af/Makefile | 2 +- drivers/net/ethernet/marvell/octeontx2/af/cgx.c | 29 +++ drivers/net/ethernet/marvell/octeontx2/af/cgx.h | 4 + drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 21 ++ drivers/net/ethernet/marvell/octeontx2/af/ptp.c | 275 +++++++++++++++++++++ drivers/net/ethernet/marvell/octeontx2/af/ptp.h | 25 ++ drivers/net/ethernet/marvell/octeontx2/af/rvu.c | 29 ++- drivers/net/ethernet/marvell/octeontx2/af/rvu.h | 5 + .../net/ethernet/marvell/octeontx2/af/rvu_cgx.c | 39 +++ .../net/ethernet/marvell/octeontx2/af/rvu_nix.c | 43 ++++ .../net/ethernet/marvell/octeontx2/af/rvu_npc.c | 31 +++ .../net/ethernet/marvell/octeontx2/nic/Makefile | 3 +- .../ethernet/marvell/octeontx2/nic/otx2_common.c | 7 + .../ethernet/marvell/octeontx2/nic/otx2_common.h | 19 ++ .../ethernet/marvell/octeontx2/nic/otx2_ethtool.c | 28 +++ .../net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 168 ++++++++++++- .../net/ethernet/marvell/octeontx2/nic/otx2_ptp.c | 212 ++++++++++++++++ .../net/ethernet/marvell/octeontx2/nic/otx2_ptp.h | 13 + .../net/ethernet/marvell/octeontx2/nic/otx2_txrx.c | 87 ++++++- .../net/ethernet/marvell/octeontx2/nic/otx2_txrx.h | 1 + 20 files changed, 1031 insertions(+), 10 deletions(-) create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/ptp.c create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/ptp.h create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/otx2_ptp.c create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/otx2_ptp.h
Signature · 1 line
2.7.4