In roc batch alloc wait code, __ATOMIC_RELAXED is changed to
__ATOMIC_ACQUIRE in order to avoid potential out of order loads.

Signed-off-by: Nawal Kishor <nkis...@marvell.com>
---
 .mailmap                      | 1 +
 drivers/common/cnxk/roc_npa.h | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/.mailmap b/.mailmap
index 4a508bafad..14226ccd2d 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1046,6 +1046,7 @@ Natanael Copa <nc...@alpinelinux.org>
 Nathan Brown <nathan.br...@arm.com>
 Nathan Law <n...@brocade.com>
 Nathan Skrzypczak <nathan.skrzypc...@gmail.com>
+Nawal Kishor <nkis...@marvell.com>
 Neel Patel <neel.pa...@amd.com> <n...@pensando.io>
 Neil Horman <nhor...@tuxdriver.com>
 Nelio Laranjeiro <nelio.laranje...@6wind.com>
diff --git a/drivers/common/cnxk/roc_npa.h b/drivers/common/cnxk/roc_npa.h
index 4ad5f044b5..ebc2a62536 100644
--- a/drivers/common/cnxk/roc_npa.h
+++ b/drivers/common/cnxk/roc_npa.h
@@ -247,7 +247,7 @@ roc_npa_batch_alloc_wait(uint64_t *cache_line, unsigned int 
wait_us)
        /* Batch alloc status code is updated in bits [5:6] of the first word
         * of the 128 byte cache line.
         */
-       while (((__atomic_load_n(cache_line, __ATOMIC_RELAXED) >> 5) & 0x3) ==
+       while (((__atomic_load_n(cache_line, __ATOMIC_ACQUIRE) >> 5) & 0x3) ==
               ALLOC_CCODE_INVAL)
                if (wait_us && (plt_tsc_cycles() - start) >= ticks)
                        break;
--
2.34.1

Reply via email to