Skip to contentSkip to conversation

common/cnxk: explicitly clear aura bp ena on cleanup

PATCH In review Ashwin Sekhar T K 2 participants 5 messages Aug 22, 2023 – Aug 25, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 common/cnxk: explicitly clear aura bp ena on cleanup

As done in FLR, similar to CQ disable, in process of aura disable we needs explicitly clear BP_ENA in order to deassert backpressure if it was earlier asserted.

---
 drivers/common/cnxk/roc_npa.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/common/cnxk/roc_npa.c +2 -0
index 3b9a70028b..20801739dc 100644
@@ -185,6 +185,8 @@ npa_aura_pool_fini(struct mbox *m_box, uint32_t aura_id, uint64_t aura_handle)
 	aura_req->op = NPA_AQ_INSTOP_WRITE;
 	aura_req->aura.ena = 0;
 	aura_req->aura_mask.ena = ~aura_req->aura_mask.ena;
+	aura_req->aura.bp_ena = 0;
+	aura_req->aura_mask.bp_ena = ~aura_req->aura_mask.bp_ena;
 
 	rc = mbox_process(mbox);
 	if (rc < 0)
Signature · 1 line
2.25.1
#2 lore raw

PATCH 1/1 common/cnxk: fix bp_ena clearing during pool tear down

In reply to Ashwin Sekhar T K

As done in FLR, similar to CQ disable, in process of aura disable we need to explicitly clear BP_ENA in order to deassert backpressure if it was earlier asserted.

Fixes f765f5611240 ("common/cnxk: add NPA pool HW operations")
---
 drivers/common/cnxk/roc_npa.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/common/cnxk/roc_npa.c +2 -0
index 3b9a70028b..20801739dc 100644
@@ -185,6 +185,8 @@ npa_aura_pool_fini(struct mbox *m_box, uint32_t aura_id, uint64_t aura_handle)
 	aura_req->op = NPA_AQ_INSTOP_WRITE;
 	aura_req->aura.ena = 0;
 	aura_req->aura_mask.ena = ~aura_req->aura_mask.ena;
+	aura_req->aura.bp_ena = 0;
+	aura_req->aura_mask.bp_ena = ~aura_req->aura_mask.bp_ena;
 
 	rc = mbox_process(mbox);
 	if (rc < 0)
Signature · 1 line
2.25.1
#3 lore raw

PATCH v2 1/1 common/cnxk: fix bp_ena clear while disabling aura

In reply to Ashwin Sekhar T K

As done in FLR, similar to CQ disable, in process of aura disable we need to explicitly clear BP_ENA in order to deassert backpressure if it was earlier asserted.

Fixes f765f5611240 ("common/cnxk: add NPA pool HW operations")
---
 drivers/common/cnxk/roc_npa.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/common/cnxk/roc_npa.c +2 -0
index 3b9a70028b..20801739dc 100644
@@ -185,6 +185,8 @@ npa_aura_pool_fini(struct mbox *m_box, uint32_t aura_id, uint64_t aura_handle)
 	aura_req->op = NPA_AQ_INSTOP_WRITE;
 	aura_req->aura.ena = 0;
 	aura_req->aura_mask.ena = ~aura_req->aura_mask.ena;
+	aura_req->aura.bp_ena = 0;
+	aura_req->aura_mask.bp_ena = ~aura_req->aura_mask.bp_ena;
 
 	rc = mbox_process(mbox);
 	if (rc < 0)
Signature · 1 line
2.25.1
#4 lore raw

Re: [PATCH v2] common/cnxk: fix bp_ena clear while disabling aura

Quoted 9 lines · Ashwin Sekhar T K

As done in FLR, similar to CQ disable, in process of aura disable we need to explicitly clear BP_ENA in order to deassert backpressure if it was earlier asserted.

Fixes f765f5611240 ("common/cnxk: add NPA pool HW operations")

Updated the git commit as follows and applied to
dpdk-next-net-mrvl/for-next-net. Thanks

common/cnxk: fix aura disable handling

As done in FLR, similar to CQ disable, in process of aura disable we need to explicitly clear BP_ENA in order to deassert backpressure if it was earlier asserted.

Fixes f765f5611240 ("common/cnxk: add NPA pool HW operations")