Skip to content

Commit

Permalink
event/cnxk: fix sub-event clearing mask length
Browse files Browse the repository at this point in the history
[ upstream commit b476620 ]

Fix incorrect mask used when clearing subevent type masking out
useful data.

Fixes: e239e0d ("event/cnxk: add SSO HW device operations")

Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
  • Loading branch information
PavanNikhilesh authored and kevintraynor committed Mar 8, 2022
1 parent e253ba6 commit 9d53864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/event/cnxk/cnxk_eventdev.h
Expand Up @@ -44,7 +44,7 @@
#define CNXK_TT_FROM_EVENT(x) (((x) >> 38) & SSO_TT_EMPTY)
#define CNXK_EVENT_TYPE_FROM_TAG(x) (((x) >> 28) & 0xf)
#define CNXK_SUB_EVENT_FROM_TAG(x) (((x) >> 20) & 0xff)
#define CNXK_CLR_SUB_EVENT(x) (~(0xffu << 20) & x)
#define CNXK_CLR_SUB_EVENT(x) (~(0xffull << 20) & x)
#define CNXK_GRP_FROM_TAG(x) (((x) >> 36) & 0x3ff)
#define CNXK_SWTAG_PEND(x) (BIT_ULL(62) & x)

Expand Down

0 comments on commit 9d53864

Please sign in to comment.