]> www.infradead.org Git - users/hch/misc.git/commit
eth: fbnic: Add support to dump registers
authorMohsin Bashir <mohsin.bashr@gmail.com>
Tue, 12 Nov 2024 22:26:05 +0000 (14:26 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 14 Nov 2024 14:28:49 +0000 (15:28 +0100)
commit3d12862b216d39670500f6bd44b8be312b2ee4fb
treea9ed5e8422d0f8fe46d3c0584c114b063419ff91
parenta71c69f51d1119db5f7812b35f16e8ef7786b3f2
eth: fbnic: Add support to dump registers

Add support for the 'ethtool -d <dev>' command to retrieve and print
a register dump for fbnic. The dump defaults to version 1 and consists
of two parts: all the register sections that can be dumped linearly, and
an RPC RAM section that is structured in an interleaved fashion and
requires special handling. For each register section, the dump also
contains the start and end boundary information which can simplify parsing.

Signed-off-by: Mohsin Bashir <mohsin.bashr@gmail.com>
Link: https://patch.msgid.link/20241112222605.3303211-1-mohsin.bashr@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/meta/fbnic/Makefile
drivers/net/ethernet/meta/fbnic/fbnic.h
drivers/net/ethernet/meta/fbnic/fbnic_csr.c [new file with mode: 0644]
drivers/net/ethernet/meta/fbnic/fbnic_csr.h
drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c