[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1747039315-3372-1-git-send-email-sbhatta@marvell.com>
Date: Mon, 12 May 2025 14:11:50 +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>,
<gakula@...vell.com>, <hkelam@...vell.com>, <sgoutham@...vell.com>,
<lcherian@...vell.com>, <bbhushan2@...vell.com>, <jerinj@...vell.com>
CC: <netdev@...r.kernel.org>, Subbaraya Sundeep <sbhatta@...vell.com>
Subject: [net-next PATCH 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.
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(-)
--
2.7.4
Powered by blists - more mailing lists