[PATCH v3] common/cnxk: fix aura offset

2025-03-23 Thread Nawal Kishor
Aura field width has reduced from 20 bits in cn10k/cn9k to 17 bits in cn20k. Adjust the setting of aura offset in NPA_LF_POOL_OP_INT register accordingly based on the platform. Fixes: 620fc02bf7eb ("common/cnxk: accommodate change in aura field width") Signed-off-by: Nawal Kishor ---

[PATCH] common/cnxk: fix aura offset

2025-03-23 Thread Nawal Kishor
Aura field width has reduced from 20 bits in cn10k/cn9k to 17 bits in cn20k. Adjust the setting of aura offset in NPA_LF_POOL_OP_INT register accordingly based on the platform. Fixes: 620fc02bf7eb ("common/cnxk: accommodate change in aura field width") Signed-off-by: Nawal Kishor --

[PATCH] common/cnxk: add flag for enabling opaque mode

2025-03-03 Thread Nawal Kishor
Added flag that overrides the default natural alignment mode and uses opaque mode. Signed-off-by: Nawal Kishor --- drivers/common/cnxk/roc_npa.c | 3 +++ drivers/common/cnxk/roc_npa.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_npa.c b/drivers

[PATCH] common/cnxk: fix aura offset

2025-03-03 Thread Nawal Kishor
Fix aura offset in NPA_LF_POOL_OP_INT. Fixes: 620fc02bf7eb ("common/cnxk: accommodate change in aura field width") Signed-off-by: Nawal Kishor --- drivers/common/cnxk/roc_npa_irq.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/common/cnxk/roc_np

[PATCH v2] common/cnxk: fix atomic load in batch ops

2024-12-02 Thread Nawal Kishor
In roc batch alloc wait code, __ATOMIC_RELAXED is changed to __ATOMIC_ACQUIRE in order to avoid potential out of order loads. Fixes: 50d08d3934ec ("common/cnxk: fix batch alloc completion poll logic") Signed-off-by: Nawal Kishor --- v2: Fixed review comments drivers/common/cnxk/roc

[PATCH] common/cnxk: use atomic load acquire in batch ops

2024-08-22 Thread Nawal Kishor
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 --- .mailmap | 1 + drivers/common/cnxk/roc_npa.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a