From nobody Wed Sep 11 19:22:53 2024 X-Original-To: dev-commits-src-main@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 4X3r7d4dGQz5VFZ8; Wed, 11 Sep 2024 19:22:53 +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 4X3r7d3XGNz4Vst; Wed, 11 Sep 2024 19:22:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726082573; 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=uHgiCCql4OKGqwe75quHnpjXErOFK2Sz5OIKvKPA12s=; b=tOHXbWRQhrsv84IOK2JPfkQQzv2dZwd8w4as+uxg/O3p1IkJk/13z3C/oFYxZHMihBLgSH EqH+cuVp+0HEKyCkWrvfbvu1XTV+jPCzmuVkzZ4cyvfwZKeYu2YbULWIeAFB4dYLK+l/MO HYxuUpO9yPk+6IQrGNNjJAEj1hz/G5ZmS94WjOWYv6n1AHcNzMRBD1DutxmQhY4khjAhBO OupHsqhvWi106yleCVOLOoCQ3WMykwmC4tmA2KIiEEw9V2RNFxIugg0uxUOdthuuwZ7/wj gT9MUmwMaqlOjpSFlj2h21YF3athtuMUjVjGPG+spfNSEL1pOepQZODRp8C8dg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726082573; a=rsa-sha256; cv=none; b=rLXHT5Mb+IavDF+u2hNBdEdeO6g5CnBxgcQ5rF8+rr69HQpaw/S28YjttzF9RKOolRn6J6 HO+LMKZugLfwF99F71Lp834xINOQBD5uzLX2q1ccVO9xfxJ8AEIuuTdtlnzjpvMGXjHzSA JC5DpKG9wGwdvDIvWdX80cChuw2OLGmdmbu6QM7azBmetaodw6zksFw196IdPXe9Exm5P5 gbJMgqWGlyruUbywJnxUmE6N3xXvrevVHMHpqe4ECk5H38vZmysudz4kWb+1wMYEG+mS+4 Hw/Ui+BYPRK0RdY9bFUyv0p2cbmW59tv+2nApoZnfOqHgkiT/rjOMt04l4P/nw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726082573; 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=uHgiCCql4OKGqwe75quHnpjXErOFK2Sz5OIKvKPA12s=; b=GaLcOXx+txBy75hPKk0WSM4uKFl1eJ1as1m3NauMLZWVTx2Ny0+B6YgT8SaPvz71hh+JcX MNAhW19bhAq1hHgh34g6Kz8skhDsMHj3mMFIl4mI5+XunT/ue+5R2hyb/OMWiSCa1PM9R3 Xxxxk9Xy36wMJ+4hngq2+RPk74HZxJtatBQlM2XMKwKPcVRXnfAXTPcShbNDzDM0HFvbCU dZy/pqGehhwx3hoQlLbT6bTNVBYXXTfdZdYFIL8dkvc8/Oame8PApo5Jj9wXx4m6Rxcq2Y Hf/Fmtkpm5zSB5KLKLe1duw49RJVT6GXz/YS6sjazqsIsqo/4epgGPTxkFmtbA== 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 4X3r7d36zzzk5k; Wed, 11 Sep 2024 19:22:53 +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 48BJMrcR096512; Wed, 11 Sep 2024 19:22:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48BJMreH096509; Wed, 11 Sep 2024 19:22:53 GMT (envelope-from git) Date: Wed, 11 Sep 2024 19:22:53 GMT Message-Id: <202409111922.48BJMreH096509@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Navdeep Parhar Subject: git: d82cb5c608ae - main - cxgbe(4): Make sure that the tracing filters are usable after restart. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: d82cb5c608ae9aaced4cb459ca511e62c64dbf74 Auto-Submitted: auto-generated The branch main has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=d82cb5c608ae9aaced4cb459ca511e62c64dbf74 commit d82cb5c608ae9aaced4cb459ca511e62c64dbf74 Author: Navdeep Parhar AuthorDate: 2024-09-11 08:01:38 +0000 Commit: Navdeep Parhar CommitDate: 2024-09-11 19:12:32 +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. MFC after: 1 week Sponsored by: Chelsio Communications --- 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 540edbb568c0..4412e1ab95fb 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 */