From nobody Mon Oct 21 18:39:29 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 4XXPH573h9z5Zcv6; Mon, 21 Oct 2024 18:39:29 +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 4XXPH55JQCz4GK7; Mon, 21 Oct 2024 18:39:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729535969; 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=hoDNgT4K8xOWIxtRMMaH7X2PHmwUDHd1YlGuN2vcrf4=; b=W8XLQAAFhS4HtWLsvzl9av/Jb3VV4h2ZW5lD1zDw9JE+ruMbaLt26iySGnqdlEFjTN5Pkg PVUZmQz2uSOLmP1WtHrZVxxfTbmnAXNI5On+vx6Hg0x405EZaAT3pL9tps82EMMitPBub5 3eAFE8lmmyedgnDKuaLmKj+7xZE6tRYzqTR9OSL8an9WRtvDLxoxw5qJ/67xiuVVzej4UN yVEvRj/sZTF1ShlbyMspgPQ99BxvumcwTyQEIy6ywslx/acaTWJw/p3ELA6mjF55OldN52 aavZ5CdDhD3kYUGfgj98+AGr6b9fyGtvs3GxqdoK2GifwVHJinwOZphuc45z7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729535969; 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=hoDNgT4K8xOWIxtRMMaH7X2PHmwUDHd1YlGuN2vcrf4=; b=rP+hVH3rUD6seoTYVu6gZLsugUr1NYwpruCUA/Av2DjxIdFpR7X8L9g7IANFekJRG8U58H i6ntJbWFBY3B02JqwZMYNzXYL6jD88QAdfIGxEXf+3V832T4xouMKEtckYIZWXHHd4wQF7 sqj275Qkzefm2vh0F1nGgJAFzPh6qwu1W56tXxEQ13/kSHFnlJ9IMjm5K3vAOaIQSHjxJN 4LtSasEqd0TkkWPFO4fBmbFqot7WxtPGjtjPGlmgCLBrEjv6jImh1FczpjS1A7x6nVEPaV Qwi/BgbOkdboWfABt8VLZA7OezxTZu6Ee4SonxYZP4AGQOTURft3uUNaoZkx3g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729535969; a=rsa-sha256; cv=none; b=sG+GNKsCEymtfv+M/gCXUtb442v9bW6i+7yOxYreIvXL/HJ76hCMnouYNCzhWx9vUs56sG N1nX/mFAHlAMblJD+bTKXRJ4DvpexAOrioNpfQFQP2q1JPJd9nbISc4+BHL2JU4fKYd33S SWMpdbXIrZ2Nz83UuCMScGBxyHnHA0l//YDKOgBDZqm0m+Zt9hMYD7mQsChi2Tkf6aam8N vQx/yo36qfJOYXbcf3YmnablvywSvY1r+Y1sHkMYhCzx97EWA1GPmgf/Eylk8UAbnuEaBY w9OOknv7x4mvMAk+e/gjgUqGg0XvYVUh4tXcX5eyon4ocQ3nUnlYxIjWzUOxEw== 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 4XXPH54wjYzhYM; Mon, 21 Oct 2024 18:39:29 +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 49LIdTGN037094; Mon, 21 Oct 2024 18:39:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49LIdTls037091; Mon, 21 Oct 2024 18:39:29 GMT (envelope-from git) Date: Mon, 21 Oct 2024 18:39:29 GMT Message-Id: <202410211839.49LIdTls037091@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: 261c616077ac - stable/14 - cxgbe(4): Make sure that the tracing filters are usable after 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: 261c616077acf134a5d8117f6e4cffbd5f970a35 Auto-Submitted: auto-generated The branch stable/14 has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=261c616077acf134a5d8117f6e4cffbd5f970a35 commit 261c616077acf134a5d8117f6e4cffbd5f970a35 Author: Navdeep Parhar AuthorDate: 2024-09-11 08:01:38 +0000 Commit: Navdeep Parhar CommitDate: 2024-10-21 17:13:47 +0000 cxgbe(4): Make sure that the tracing filters are usable after restart. The destination queue for tracing filters is destroyed during stop or suspend and the software state needs to reflect this. A new destination queue will be setup when the adapter resumes operation. Sponsored by: Chelsio Communications (cherry picked from commit d82cb5c608ae9aaced4cb459ca511e62c64dbf74) --- sys/dev/cxgbe/t4_main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index 4184900780a1..3223d32b5d36 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -2091,6 +2091,11 @@ stop_lld(struct adapter *sc) TXQ_UNLOCK(wrq); quiesce_wrq(wrq); } + + if (pi->flags & HAS_TRACEQ) { + pi->flags &= ~HAS_TRACEQ; + sc->traceq = -1; + } } if (sc->flags & FULL_INIT_DONE) { /* Firmware event queue */