common/cnxk: ensure ROC cache alignment of NPA stack size
authorAshwin Sekhar T K <asekhar@marvell.com>
Tue, 30 Nov 2021 05:38:22 +0000 (11:08 +0530)
committerJerin Jacob <jerinj@marvell.com>
Thu, 6 Jan 2022 14:05:25 +0000 (15:05 +0100)
commite587e0d5c1dff700a887e2d7e0abe4cb75bb30ed
tree192167e1dc6c8a6e6ab9056edf71c51128e6d9c3
parent0ed49186793742b89a30c35f141d833501de5661
common/cnxk: ensure ROC cache alignment of NPA stack size

When PLT_CACHE_LINE_SIZE is set to 64B, the memzone size reserved for
NPA stack could be a multiple of 64B. In such a case, when NDC SYNC
is initiated for the NPA LF, it could go and corrupt an additional
64B bytes as NDC flushes in multiples of ROC cache line size (128B).

So ensure that NPA stack size requested is a multiple of 128B.

Signed-off-by: Ashwin Sekhar T K <asekhar@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/cnxk/roc_npa.c