git: c029d04671e9 - main - cxgbe(4): Use backdoor access to read SGE context on T7

From: Navdeep Parhar <np_at_FreeBSD.org>
Date: Wed, 03 Jun 2026 07:10:44 UTC
The branch main has been updated by np:

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

commit c029d04671e904ce7e194fb441704b6a814f40f5
Author:     Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2026-06-03 05:07:31 +0000
Commit:     Navdeep Parhar <np@FreeBSD.org>
CommitDate: 2026-06-03 06:25:15 +0000

    cxgbe(4): Use backdoor access to read SGE context on T7
    
    This avoids a firmware bug where it crashes when accessing SGE context
    on a secondary core.
    
    MFC after:      1 week
    Sponsored by:   Chelsio Communications
---
 sys/dev/cxgbe/t4_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c
index 07906dac00a8..573c8f71b084 100644
--- a/sys/dev/cxgbe/t4_main.c
+++ b/sys/dev/cxgbe/t4_main.c
@@ -12576,7 +12576,7 @@ get_sge_context(struct adapter *sc, int mem_id, uint32_t cid, int len,
 		goto done;
 	}
 
-	if (sc->flags & FW_OK) {
+	if (sc->flags & FW_OK && !is_t7(sc)) {
 		rc = -t4_sge_ctxt_rd(sc, sc->mbox, cid, mem_id, data);
 		if (rc == 0)
 			goto done;