From: Ruiqiang Hao <ruiqiang....@windriver.com>

commit bbf258fecfff ("Merge branch 'v6.1/standard/base' into v6.1/
standard/cn-sdkv5.15/octeon") introduced redundant mbox sync operation,
which will cause error when processing message NIX_TXSCH_ALLOC. Remove
this invoking to solve the error below.

rvu_af 0002:01:00.0: Error -406 when processing message NIX_TXSCH_ALLOC 
(0x8004) from PF2
rvu_nicpf 0002:03:00.0: Mbox msg response has err -406, ID 0x8004
rvu_nicpf 0002:03:00.0: Failed to allocate TXSCH

Signed-off-by: Ruiqiang Hao <ruiqiang....@windriver.com>
---
 drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c | 3 ---
 drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h | 1 -
 2 files changed, 4 deletions(-)

diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c 
b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
index 3565f2be31c2..8fddd37bd33f 100644
--- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
+++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
@@ -797,9 +797,6 @@ int otx2_txsch_alloc(struct otx2_nic *pfvf)
        /* Request one schq per level */
        for (lvl = 0; lvl < NIX_TXSCH_LVL_CNT; lvl++)
                req->schq[lvl] = 1;
-       rc = otx2_sync_mbox_msg(&pfvf->mbox);
-       if (rc)
-               return rc;
 
        if (is_otx2_sdpvf(pfvf->pdev) && chan_cnt > 1) {
                /* For SDP, backpressure is asserted at TL4,
diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h 
b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
index a09aaedb77f7..c946717c5610 100644
--- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
+++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
@@ -1010,7 +1010,6 @@ int otx2_config_nix_queues(struct otx2_nic *pfvf);
 int otx2_txschq_config(struct otx2_nic *pfvf, int lvl, int prio, bool pfc_en);
 int otx2_txsch_alloc(struct otx2_nic *pfvf);
 int otx2_txschq_stop(struct otx2_nic *pfvf);
-void otx2_txschq_free_one(struct otx2_nic *pfvf, u16 lvl, u16 schq);
 void otx2_sqb_flush(struct otx2_nic *pfvf);
 int __otx2_alloc_rbuf(struct otx2_nic *pfvf, struct otx2_pool *pool,
                      dma_addr_t *dma);
-- 
2.39.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13159): 
https://lists.yoctoproject.org/g/linux-yocto/message/13159
Mute This Topic: https://lists.yoctoproject.org/mt/101845884/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to