diff options
author | Michael Chan <[email protected]> | 2021-08-31 21:15:23 -0400 |
---|---|---|
committer | David S. Miller <[email protected]> | 2021-09-01 10:37:05 +0100 |
commit | c6132f6f2e682c958f7022ecfd8bec35723a1a9d (patch) | |
tree | 40c40646fc415b563589a9737c40bb8a1a23c370 /tools/perf/util/trace-event-scripting.c | |
parent | 9e9fb7655ed585da8f468e29221f0ba194a5f613 (diff) |
bnxt_en: Fix 64-bit doorbell operation on 32-bit kernels
The driver requires 64-bit doorbell writes to be atomic on 32-bit
architectures. So we redefined writeq as a new macro with spinlock
protection on 32-bit architectures. This created a new warning when
we added a new file in a recent patchset. writeq is defined on many
32-bit architectures to do the memory write non-atomically and it
generated a new macro redefined warning. This warning was fixed
incorrectly in the recent patch.
Fix this properly by adding a new bnxt_writeq() function that will
do the non-atomic write under spinlock on 32-bit systems. All callers
in the driver will now call bnxt_writeq() instead.
v2: Need to pass in bp to bnxt_writeq()
Use lo_hi_writeq() [suggested by Florian]
Reported-by: kernel test robot <[email protected]>
Fixes: f9ff578251dc ("bnxt_en: introduce new firmware message API based on DMA pools")
Reviewed-by: Edwin Peer <[email protected]>
Signed-off-by: Michael Chan <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions