mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-10 22:59:03 -04:00
octeontx2-pf: cn10K: Reserve LMTST lines per core
This patch reserves the LMTST lines per cpu instead of separate LMTST lines for NPA(buffer free) and NIX(sqe flush). LMTST line of the core on which SQ or RQ is processed is used for LMTST operation. This patch also replace STEOR with STEORL release semantics and updates driver name in ethtool file. Signed-off-by: Geetha sowjanya <gakula@marvell.com> Signed-off-by: Sunil Goutham <sgoutham@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
21274aa178
commit
ef6c8da71e
@@ -22,12 +22,17 @@
|
||||
: [rs]"r" (ioaddr)); \
|
||||
(result); \
|
||||
})
|
||||
/*
|
||||
* STEORL store to memory with release semantics.
|
||||
* This will avoid using DMB barrier after each LMTST
|
||||
* operation.
|
||||
*/
|
||||
#define cn10k_lmt_flush(val, addr) \
|
||||
({ \
|
||||
__asm__ volatile(".cpu generic+lse\n" \
|
||||
"steor %x[rf],[%[rs]]" \
|
||||
: [rf]"+r"(val) \
|
||||
: [rs]"r"(addr)); \
|
||||
"steorl %x[rf],[%[rs]]" \
|
||||
: [rf] "+r"(val) \
|
||||
: [rs] "r"(addr)); \
|
||||
})
|
||||
#else
|
||||
#define otx2_lmt_flush(ioaddr) ({ 0; })
|
||||
|
||||
Reference in New Issue
Block a user