OSDN Git Service

octeontx2-af: cn10k: debugfs for dumping LMTST map table
authorHarman Kalra <hkalra@marvell.com>
Wed, 27 Oct 2021 18:07:44 +0000 (23:37 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Oct 2021 13:49:29 +0000 (14:49 +0100)
commit0daa55d033b02a899a5979e407cc3af530980f1e
treecb89d0334ba22e3be2ded2da92a27c98bbf82028
parent1910ccf0330660dd82251e19197d846cb616fe56
octeontx2-af: cn10k: debugfs for dumping LMTST map table

CN10k SoCs use atomic stores of up to 128 bytes to submit
packets/instructions into co-processor cores. The enqueueing is performed
using Large Memory Transaction Store (LMTST) operations. They allow for
lockless enqueue operations - i.e., two different CPU cores can submit
instructions to the same queue without needing to lock the queue or
synchronize their accesses.

This patch implements a new debugfs entry for dumping LMTST map
table present on CN10K, as this might be very useful to debug any issue
in case of shared LMTST region among multiple pci functions.

Signed-off-by: Harman Kalra <hkalra@marvell.com>
Signed-off-by: Bhaskara Budiredla <bbudiredla@marvell.com>
Signed-off-by: Rakesh Babu <rsaladi2@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c