From nobody Mon Oct 21 18:39:32 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XXPH94057z5ZcvF; Mon, 21 Oct 2024 18:39:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XXPH90R1Kz4GDv; Mon, 21 Oct 2024 18:39:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729535973; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=edtjtw6a5aDkQ6V3UPGy4UEG4ZTCmkVN77A5ae0Kq08=; b=xSiGoPjDENnUPQfMTdrhCP2LibQTpykCjfbwd4D7XJLVcdQaDgIjAc33uCHAog7bB2wVYU zOHtE7g0di43IvJd+MyntmieIQdtu7WLgf8JyAfrnYj+MLv085Hp9vV5tYxIZ8lTY9xN1b Aw/cB8PohV52rq98zbwCwW6PsJy3atXRA6pmOMZWB1AKdYFfikYjQhkboO266Dux+CPTDl Cb/yVJE41+FzDa46J7mr6zEailC5mOKLeFX8ySC/ajUs6T7BLcepTxKbBmev1om5BnBh/d WQKc/wwE+jfaToYzg5P3ddjEGWZyz9V1/CuK2JUmwZOyvRe4/axeBCGB32kH4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729535973; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=edtjtw6a5aDkQ6V3UPGy4UEG4ZTCmkVN77A5ae0Kq08=; b=jZUr3EBaqZrOe9apfAZhM6qclAJrfenlslVGZSPDtiL/cfQwwNAePtzOCj0BVGzH8MFBOg oH62F93PbbcGlEmbPmhxgw8MdRb05mYIIu1atKQsxb/wuzMwOBXaZUG49IhSCFvupCQ1dc omKbwn8hHHDSRjhMXx9d2MY5BPG8079H8Vl5N5jT0Om83SQrca54MPaJDjizbZkGMwe51T JP0WWDdmvUV3s4q15XeUrMcUQ4yVJNgAFhArc9AuG3oJXygNHJ8sKumft4DsJNbSi6pIr6 vlxnhdcjt7taMWlZNJoqvLgE1bgRqEjOi83VvDKIix/NHBSwYCO++ld+bzLpFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729535973; a=rsa-sha256; cv=none; b=olNj5ckXxDvuEAuUR5ok0+UbGprdXyL3Gi2LzrKgaB7Awha70+hqg0w5gQgkCm3Ktsj6rV RbrgZpXToUnXKPGgbPg76XFLQPFSrAaLkByDxLsn1O78V7ppK3jXfbxXtXlnCyYvBmMs0T LK4/1n1TDexDZdARaIOhQ7vWNudMwyPofzJ4zrKGQBPsficE64bSGbZeCZDe5LaORgDbxU A1wz4AJNtWPS5cbY0hyeZdOXAReBxhuUZOoR6qMHUDn6XRJUQKF0HtMwOWaSLxA9MOZzJb pzy2oqjQCl5XE07xn6BKZ9HE91poCc5CY/deKg43zyYO0h6I7/e5JhLEoB9Cmw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XXPH903R8zh8D; Mon, 21 Oct 2024 18:39:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49LIdWJG037296; Mon, 21 Oct 2024 18:39:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49LIdWIA037293; Mon, 21 Oct 2024 18:39:32 GMT (envelope-from git) Date: Mon, 21 Oct 2024 18:39:32 GMT Message-Id: <202410211839.49LIdWIA037293@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Navdeep Parhar Subject: git: b9f7a09c490f - stable/14 - cxgbe(4): Clobber all tracer state on stop and redo only traceq on restart. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: np X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: b9f7a09c490f4eb6b9c179d1dfd756e236494998 Auto-Submitted: auto-generated The branch stable/14 has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=b9f7a09c490f4eb6b9c179d1dfd756e236494998 commit b9f7a09c490f4eb6b9c179d1dfd756e236494998 Author: Navdeep Parhar AuthorDate: 2024-09-24 23:28:29 +0000 Commit: Navdeep Parhar CommitDate: 2024-10-21 17:14:39 +0000 cxgbe(4): Clobber all tracer state on stop and redo only traceq on restart. Tracers have to be recreated after a restart but that's okay given that they are used for debugging only. Sponsored by: Chelsio Communications (cherry picked from commit ee3da604dd016439850dae77366796313e60f0e0) --- sys/dev/cxgbe/t4_main.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index 3223d32b5d36..e33e732a7fa2 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -2095,6 +2095,8 @@ stop_lld(struct adapter *sc) if (pi->flags & HAS_TRACEQ) { pi->flags &= ~HAS_TRACEQ; sc->traceq = -1; + sc->tracer_valid = 0; + sc->tracer_enabled = 0; } } if (sc->flags & FULL_INIT_DONE) { @@ -2411,6 +2413,15 @@ restart_lld(struct adapter *sc) "interface: %d\n", rc); goto done; } + if (sc->traceq < 0 && IS_MAIN_VI(vi)) { + sc->traceq = sc->sge.rxq[vi->first_rxq].iq.abs_id; + t4_write_reg(sc, is_t4(sc) ? + A_MPS_TRC_RSS_CONTROL : + A_MPS_T5_TRC_RSS_CONTROL, + V_RSSCONTROL(pi->tx_chan) | + V_QUEUENUMBER(sc->traceq)); + pi->flags |= HAS_TRACEQ; + } ifp = vi->ifp; if (!(if_getdrvflags(ifp) & IFF_DRV_RUNNING))