octeontx2: Improve mailbox tracing
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
- v2 Latest4 patches 0 repliesApplied 4/4
- v14 patches 1 replySuperseded
Changes in v2 from the cover letter
Fixed compilation errors of __assign_str() Dropped one incorrect patch which was sent by mistake
Patches in v2 All 4 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | octeontx2-af: convert dev_dbg to tracepoint in mboxdrivers/ drivers/ | +12 | 0 replies | Applied |
| 2/4 | octeontx2-af: Display names for CPT and UP messagesdrivers/ | +8 | 0 replies | Applied |
| 3/4 | octeontx2: Add pcifunc also to mailbox tracepointsdrivers/ drivers/ drivers/ +4 more | +37 | 0 replies | Applied |
| 4/4 | octeontx2: Add new tracepoint otx2_msg_statusdrivers/ drivers/ drivers/ | +34 | 0 replies | Applied |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [net-next v2 0/4] octeontx2: Improve mailbox tracing
Octeontx2 VF,PF and AF devices communicate using hardware shared mailbox region where VFs can only to talk to its PFs and PFs can only talk to AF. AF does the entire resource management for all PFs and VFs. The shared mbox region is used for synchronous requests (requests from PF to AF or VF to PF) and async notifications (notifications from AF to PFs or PF to VFs). Sending a request to AF from VF involves various stages like
1. VF allocates message in shared region
2. Triggers interrupt to PF
3. PF upon receiving interrupt from VF will copy the message from VF<->PF region to PF<->AF region
4. Triggers interrupt to AF
5. AF processes it and writes response in PF<->AF region
6. Triggers interrupt to PF
7. PF copies responses from PF<->AF region to VF<->PF region
8. Triggers interrupt to Vf
9. VF reads response in VF<->PF region
Due to various stages involved, Tracepoints are used in mailbox code for debugging. Existing tracepoints need some improvements so that maximum information can be inferred from trace logs during an issue. This patchset tries to enhance existing tracepoints and also adds a couple of tracepoints.
Changes for v2:
Fixed compilation errors of __assign_str() Dropped one incorrect patch which was sent by mistake
Thanks,
Sundeep
Subbaraya Sundeep (4):
octeontx2-af: convert dev_dbg to tracepoint in mbox
octeontx2-af: Display names for CPT and UP messages
octeontx2: Add pcifunc also to mailbox tracepoints
octeontx2: Add new tracepoint otx2_msg_status
drivers/net/ethernet/marvell/octeontx2/af/mbox.c | 17 ++++-- drivers/net/ethernet/marvell/octeontx2/af/rvu.c | 2 +- .../net/ethernet/marvell/octeontx2/af/rvu_cgx.c | 2 +- .../net/ethernet/marvell/octeontx2/af/rvu_trace.c | 1 + .../net/ethernet/marvell/octeontx2/af/rvu_trace.h | 62 +++++++++++++++++----- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 4 +- .../net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 21 +++++++- .../net/ethernet/marvell/octeontx2/nic/otx2_vf.c | 2 +- 8 files changed, 91 insertions(+), 20 deletions(-)
Signature · 1 line
2.7.4