Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Feb 2026 01:18:26 +0000
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: afe55ae68e74 - main - cxgbe(4): Fix assertion in timer calibration
Message-ID:  <698e7be2.3c7b2.37e9551@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by np:

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

commit afe55ae68e742ea5e5eb9e78cf68d570d458cd0d
Author:     Navdeep Parhar <np@FreeBSD.org>
AuthorDate: 2026-02-10 19:07:43 +0000
Commit:     Navdeep Parhar <np@FreeBSD.org>
CommitDate: 2026-02-13 00:54:08 +0000

    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
---
 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 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();
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?698e7be2.3c7b2.37e9551>