Skip to content

Commit a072ffd

Browse files
Mohsin Bashirkuba-moo
authored andcommitted
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 3d12862 (“eth: fbnic: Add support to dump registers”) Signed-off-by: Mohsin Bashir <[email protected]> Reviewed-by: Michal Swiatkowski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 30b9817 commit a072ffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/meta/fbnic/fbnic_csr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static void fbnic_csr_get_regs_rpc_ram(struct fbnic_dev *fbd, u32 **data_p)
6464
u32 i, j;
6565

6666
*(data++) = start;
67-
*(data++) = end - 1;
67+
*(data++) = end;
6868

6969
/* FBNIC_RPC_TCAM_ACT */
7070
for (i = 0; i < FBNIC_RPC_TCAM_ACT_NUM_ENTRIES; i++) {

0 commit comments

Comments
 (0)