[EXTERNAL] [PATCH 2/2] common/cnxk: add mailbox debug trace
Jerin Jacob
jerinj at marvell.com
Thu Nov 7 09:04:40 CET 2024
> -----Original Message-----
> From: Harman Kalra <hkalra at marvell.com>
> Sent: Monday, November 4, 2024 6:38 PM
> To: Nithin Kumar Dabilpuram <ndabilpuram at marvell.com>; Kiran Kumar
> Kokkilagadda <kirankumark at marvell.com>; Sunil Kumar Kori
> <skori at marvell.com>; Satha Koteswara Rao Kottidi
> <skoteshwar at marvell.com>; Harman Kalra <hkalra at marvell.com>
> Cc: dev at dpdk.org
> Subject: [EXTERNAL] [PATCH 2/2] common/cnxk: add mailbox debug trace
>
> Implementing mailbox debug trace points to trace function calls. Signed-off-by:
> Harman Kalra <hkalra@ marvell. com> --- drivers/common/cnxk/roc_dev. c | 89
> ++++++++++++++++-------------- drivers/common/cnxk/roc_mbox. c | 34
> ++++++++++++ drivers/common/cnxk/roc_mbox. h
> Implementing mailbox debug trace points to trace function calls.
>
> Signed-off-by: Harman Kalra <hkalra at marvell.com>
> ---
> drivers/common/cnxk/roc_dev.c | 89 ++++++++++++++++--------------
> drivers/common/cnxk/roc_mbox.c | 34 ++++++++++++
> drivers/common/cnxk/roc_mbox.h | 2 +
> drivers/common/cnxk/roc_platform.c | 9 +++
> drivers/common/cnxk/roc_platform.h | 87 +++++++++++++++++++++++++++--
> 5 files changed, 175 insertions(+), 46 deletions(-)
>
> diff --git a/drivers/common/cnxk/roc_dev.c b/drivers/common/cnxk/roc_dev.c
> index 1127d8185c..e9bf8c01b4 100644
> --- a/drivers/common/cnxk/roc_dev.c
> +++ b/drivers/common/cnxk/roc_dev.c
> @@ -26,7 +26,6 @@
>
> /* RVU PF interrupt status as received from AF*/ #define
> RVU_PF_INTR_STATUS 0x3
> -
This change may not be needed.
Also, Fix following issues
### [PATCH] common/cnxk: fix mailbox timeout issues
Warning in drivers/common/cnxk/roc_dev.c:
Warning in drivers/common/cnxk/roc_mbox.c:
Using __atomic_xxx/__ATOMIC_XXX built-ins, prefer rte_atomic_xxx/rte_memory_order_xxx
### [PATCH] common/cnxk: add mailbox debug trace
WARNING:LONG_LINE: line length of 108 exceeds 100 columns
#199: FILE: drivers/common/cnxk/roc_dev.c:907:
+ roc_trace_mbox_process("PRC_UPMSG", mbox_id2name(msg->id), req_hdr->num_msgs, msg->pcifunc);
WARNING:LONG_LINE: line length of 108 exceeds 100 columns
#212: FILE: drivers/common/cnxk/roc_dev.c:917:
+ plt_err("Error %d handling 0x%x (%s)", err, msg->id, mbox_id2name(msg->id));
);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 15716 bytes
Desc: not available
URL: <http://mails.dpdk.org/archives/dev/attachments/20241107/4e2b1209/attachment-0001.bin>
More information about the dev
mailing list