]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
bnge: remove unsupported backing store type
authorVikas Gupta <vikas.gupta@broadcom.com>
Sat, 18 Apr 2026 02:34:38 +0000 (08:04 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 23 Apr 2026 03:30:46 +0000 (20:30 -0700)
The backing store type, BNGE_CTX_MRAV, is not applicable in Thor Ultra
devices. Remove it from the backing store configuration, as the firmware
will not populate entities in this backing store type, due to which the
driver load fails.

Fixes: 29c5b358f385 ("bng_en: Add backing store support")
Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com>
Reviewed-by: Dharmender Garg <dharmender.garg@broadcom.com>
Link: https://patch.msgid.link/20260418023438.1597876-3-vikas.gupta@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnge/bnge_rmem.c

index 94f15e08a88c18cf78913a6d31c4219055be481b..b066ee887a0996f20865b89be88ee349b154bc31 100644 (file)
@@ -324,7 +324,6 @@ int bnge_alloc_ctx_mem(struct bnge_dev *bd)
        u32 l2_qps, qp1_qps, max_qps;
        u32 ena, entries_sp, entries;
        u32 srqs, max_srqs, min;
-       u32 num_mr, num_ah;
        u32 extra_srqs = 0;
        u32 extra_qps = 0;
        u32 fast_qpmd_qps;
@@ -390,21 +389,6 @@ int bnge_alloc_ctx_mem(struct bnge_dev *bd)
        if (!bnge_is_roce_en(bd))
                goto skip_rdma;
 
-       ctxm = &ctx->ctx_arr[BNGE_CTX_MRAV];
-       /* 128K extra is needed to accommodate static AH context
-        * allocation by f/w.
-        */
-       num_mr = min_t(u32, ctxm->max_entries / 2, 1024 * 256);
-       num_ah = min_t(u32, num_mr, 1024 * 128);
-       ctxm->split_entry_cnt = BNGE_CTX_MRAV_AV_SPLIT_ENTRY + 1;
-       if (!ctxm->mrav_av_entries || ctxm->mrav_av_entries > num_ah)
-               ctxm->mrav_av_entries = num_ah;
-
-       rc = bnge_setup_ctxm_pg_tbls(bd, ctxm, num_mr + num_ah, 2);
-       if (rc)
-               return rc;
-       ena |= FUNC_BACKING_STORE_CFG_REQ_ENABLES_MRAV;
-
        ctxm = &ctx->ctx_arr[BNGE_CTX_TIM];
        rc = bnge_setup_ctxm_pg_tbls(bd, ctxm, l2_qps + qp1_qps + extra_qps, 1);
        if (rc)