diff options
| author | Navdeep Parhar <np@FreeBSD.org> | 2026-02-10 19:07:43 +0000 |
|---|---|---|
| committer | Navdeep Parhar <np@FreeBSD.org> | 2026-02-13 00:54:08 +0000 |
| commit | afe55ae68e742ea5e5eb9e78cf68d570d458cd0d (patch) | |
| tree | 97cbb2c4d99076206a28a487ed48187c23c8e3d1 | |
| parent | d03b6bb766f8c816547f9c39e05af8238242251e (diff) | |
cxgbe(4): Fix assertion in timer calibration
The calibration callout is stopped when the adapter is marked off limits
but not when the adapter is merely stopped.
MFC after: 1 week
Sponsored by: Chelsio Communications
| -rw-r--r-- | sys/dev/cxgbe/t4_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index e35bb9f64951..e14efc912de6 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -1249,7 +1249,7 @@ t4_calibration(void *arg) sc = (struct adapter *)arg; - KASSERT(hw_all_ok(sc), ("!hw_all_ok at t4_calibration")); + KASSERT(!hw_off_limits(sc), ("hw_off_limits at t4_calibration")); hw = t4_read_reg64(sc, A_SGE_TIMESTAMP_LO); sbt = sbinuptime(); |
