Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160564513
D26581.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
717 B
Referenced Files
None
Subscribers
None
D26581.diff
View Options
diff --git a/sys/dev/cxgbe/crypto/t4_crypto.c b/sys/dev/cxgbe/crypto/t4_crypto.c
--- a/sys/dev/cxgbe/crypto/t4_crypto.c
+++ b/sys/dev/cxgbe/crypto/t4_crypto.c
@@ -2153,7 +2153,15 @@
sc->ports[port].stats_completed = counter_u64_alloc(M_WAITOK);
_Static_assert(sizeof(sc->port_mask) * NBBY >= MAX_NPORTS - 1,
"Too many ports to fit in port_mask");
- sc->port_mask |= 1u << port;
+
+ /*
+ * Completions for crypto requests on port 1 can sometimes
+ * return a stale cookie value due to a firmware bug. Disable
+ * requests on port 1 by default on affected firmware.
+ */
+ if (sc->adapter->params.fw_vers >= FW_VERSION32(1, 25, 4, 0) ||
+ port == 0)
+ sc->port_mask |= 1u << port;
}
static int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jun 26, 5:54 PM (17 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34364236
Default Alt Text
D26581.diff (717 B)
Attached To
Mode
D26581: ccr: Disable requests on port 1 when needed to workaround a firmware bug.
Attached
Detach File
Event Timeline
Log In to Comment