On Tue, Jan 10, 2023 at 11:52:58AM +0530, Srujana Challa wrote:
Adds a new mailbox to return CPT faulted engines bitmap
and recovered engines bitmap.
Signed-off-by: Srujana Challa <schalla@marvell.com>
---
.../net/ethernet/marvell/octeontx2/af/mbox.h | 17 ++++++++++
.../net/ethernet/marvell/octeontx2/af/rvu.h | 4 +++
.../ethernet/marvell/octeontx2/af/rvu_cpt.c | 34 +++++++++++++++++++
3 files changed, 55 insertions(+)
<...>
+ spin_lock(&rvu->cpt_intr_lock);
+ block->cpt_flt_eng_map[vec] |= BIT_ULL(i);
+ val = rvu_read64(rvu, blkaddr, CPT_AF_EXEX_STS(eng));
+ if ((val & 0x2) || (!(val & 0x2) && (val & 0x1)))
I would say that this "if" is equal to (val & 0x2 || val & 0x1)
Thanks