diff options
author | James Smart <[email protected]> | 2022-08-18 18:17:32 -0700 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-08-31 23:39:58 -0400 |
commit | bd269188ea94e40ab002cad7b0df8f12b8f0de54 (patch) | |
tree | e82fa049a570aedd32d842a55eb3c94de81df73c /tools/perf/scripts/python/stackcollapse.py | |
parent | 59b7e210a522b836a01516c71ee85d1d92c1f075 (diff) |
scsi: lpfc: Rework MIB Rx Monitor debug info logic
The kernel test robot reported the following sparse warning:
arch/arm64/include/asm/cmpxchg.h:88:1: sparse: sparse: cast truncates
bits from constant value (369 becomes 69)
On arm64, atomic_xchg only works on 8-bit byte fields. Thus, the macro
usage of LPFC_RXMONITOR_TABLE_IN_USE can be unintentionally truncated
leading to all logic involving the LPFC_RXMONITOR_TABLE_IN_USE macro to not
work properly.
Replace the Rx Table atomic_t indexing logic with a new
lpfc_rx_info_monitor structure that holds a circular ring buffer. For
locking semantics, a spinlock_t is used.
Link: https://lore.kernel.org/r/[email protected]
Fixes: 17b27ac59224 ("scsi: lpfc: Add rx monitoring statistics")
Cc: <[email protected]> # v5.15+
Co-developed-by: Justin Tee <[email protected]>
Signed-off-by: Justin Tee <[email protected]>
Signed-off-by: James Smart <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions