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
This commit is contained in:
@@ -12576,7 +12576,7 @@ get_sge_context(struct adapter *sc, int mem_id, uint32_t cid, int len,
|
|||||||
goto done;
|
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);
|
rc = -t4_sge_ctxt_rd(sc, sc->mbox, cid, mem_id, data);
|
||||||
if (rc == 0)
|
if (rc == 0)
|
||||||
goto done;
|
goto done;
|
||||||
|
|||||||
Reference in New Issue
Block a user