Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Feb 2023 07:39:42 GMT
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 0d15ab14a4f4 - stable/13 - cxgbe/cxgbei: Do not validate the hardware iSCSI tag mask.
Message-ID:  <202302020739.3127dgUf062261@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by np:

URL: https://cgit.FreeBSD.org/src/commit/?id=0d15ab14a4f48044eb91b356ae7c863228790702

commit 0d15ab14a4f48044eb91b356ae7c863228790702
Author:     Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2022-10-05 18:05:12 +0000
Commit:     Navdeep Parhar <np@FreeBSD.org>
CommitDate: 2023-02-02 07:20:15 +0000

    cxgbe/cxgbei: Do not validate the hardware iSCSI tag mask.
    
    This was added in 7cba15b16eb2 in 2016 and firmwares at that time were
    already setting up the iSCSI tag mask properly.  Since then it has also
    become possible to split the iSCSI region between multiple PCIE PFs but
    the driver's calculation takes only its own PF's allocation into account
    and that means this code is incorrect and not just a harmless no-op.
    
    Sponsored by:   Chelsio Communications
    
    (cherry picked from commit 661faa1f77c0fa9d28d60d71087820aaaaee8b1b)
---
 sys/dev/cxgbe/cxgbei/cxgbei.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/sys/dev/cxgbe/cxgbei/cxgbei.c b/sys/dev/cxgbe/cxgbei/cxgbei.c
index ad66247775e1..b6dc5d5c3577 100644
--- a/sys/dev/cxgbe/cxgbei/cxgbei.c
+++ b/sys/dev/cxgbe/cxgbei/cxgbei.c
@@ -167,21 +167,6 @@ cxgbei_init(struct adapter *sc, struct cxgbei_data *ci)
 		return (rc);
 	}
 
-	r = t4_read_reg(sc, A_ULP_RX_ISCSI_TAGMASK);
-	r &= V_ISCSITAGMASK(M_ISCSITAGMASK);
-	if (r != pr->pr_tag_mask) {
-		/*
-		 * Recent firmwares are supposed to set up the iSCSI tagmask
-		 * but we'll do it ourselves it the computed value doesn't match
-		 * what's in the register.
-		 */
-		device_printf(sc->dev,
-		    "tagmask 0x%08x does not match computed mask 0x%08x.\n", r,
-		    pr->pr_tag_mask);
-		t4_set_reg_field(sc, A_ULP_RX_ISCSI_TAGMASK,
-		    V_ISCSITAGMASK(M_ISCSITAGMASK), pr->pr_tag_mask);
-	}
-
 	read_pdu_limits(sc, &ci->max_tx_data_len, &ci->max_rx_data_len, pr);
 
 	sysctl_ctx_init(&ci->ctx);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302020739.3127dgUf062261>