]> www.infradead.org Git - users/willy/linux.git/commit
eth: fbnic: fix csr boundary for RPM RAM section
authorMohsin Bashir <mohsin.bashr@gmail.com>
Wed, 18 Dec 2024 23:25:58 +0000 (15:25 -0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 23 Dec 2024 17:50:14 +0000 (09:50 -0800)
commita072ffd896efa6a6c8a0334c712fbc98a63c789c
treec0f8887ef0464d42e93b1ed94fb78224d2e1a840
parent30b981796b94b083da8fdded7cb74cb493608760
eth: fbnic: fix csr boundary for RPM RAM section

The CSR dump support leverages the FBNIC_BOUNDS macro, which pads the end
condition for each section by adding an offset of 1. However, the RPC RAM
section, which is dumped differently from other sections, does not rely
on this macro and instead directly uses end boundary address. Hence,
subtracting 1 from the end address results in skipping a register.

Fixes 3d12862b216d (“eth: fbnic: Add support to dump registers”)
Signed-off-by: Mohsin Bashir <mohsin.bashr@gmail.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Link: https://patch.msgid.link/20241218232614.439329-1-mohsin.bashr@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/meta/fbnic/fbnic_csr.c