From nobody Tue Sep 24 23:53:08 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 4XCxWS52bQz5WGNN; Tue, 24 Sep 2024 23:53:08 +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 4XCxWS4XD7z4LLm; Tue, 24 Sep 2024 23:53:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727221988; 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=RgUlz/2+f9SOA9hZ2bhPT7J745FbybPDbL0TZGd5E9w=; b=uNMEwfKiV7AMLr/KbQQYiK/K33URJXlnYNNSMT2EhxMjeA8lrIc/Gbw4gM9hztBq4GojRG z/hn3ERn/6Eh3lHOkRXhX/5GyylDesrqXe10iM+ejLT2sVVejbDDYXiCwhsZEWwEFN0TqS zD1WTEJc3WlTkc+nUHJvcxRT+2UX5uitRLN1DI5NldLzfpNi/jOsxFuUs3gCFNK/JSG7Nn tf8deYBwmXUX2UL2UJBTCwYIBVtO8HsP9Jup0rEl050mNMctA/yJ9T0ZYpyJ15R+b8KVXj ILrgIbIFNFX+PUgZr93p4LsyzzJMycvVrnpO80c4QgLNI8vIqCpGuTaBXeFPmQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727221988; a=rsa-sha256; cv=none; b=bUL6Y9b90V4ViOswvS6nwlhy0+Xw+oHBV9OhH2XUTx+LKWw9sD5J15V0NBLeHzbbxL2GfS XFSpxTNkgwapcXx97YH1Qg7Hs+BvtCkZ/8fHCcsqsQab2JEvJKx7o2oVJB8U94HHYun8zp O6FR44i/ljJeXggskN3fI7y9Hd2KyIu712sQfvL9mrWm4zuLdB2a1uOjL/H6AHlsunNtJ7 OhV4M//R/fe+3Dima1L9u/hkw0iSN43Cbgj1/wls9f/cv4c+kQTUSaO6VQr2j8/Z7OpzIN NbYM4RvWXNSDQ8LtQFRLRsxVMQKlxeUUFYyApKGrEJdU22BfgjeYYcYnlBOvQA== 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=1727221988; 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=RgUlz/2+f9SOA9hZ2bhPT7J745FbybPDbL0TZGd5E9w=; b=LH00L9ucpnXAkOutlo7OISdlXeMF3/oTzhv6/EIPiOLjc3D0mtihTU8MCyR37R3rCri8NK vj6aelap/8sIUz61BjZV5ir2eyO6yvIxxfjbTVo87edr+L6uQrCtApHN6F55c9p2TBaRTt roBk7AmWMYG0aT2H2/Pvvaa34Rc11E5DpAayCZxGzfj7qoMMmns822ZzegUuoeQMAvB3Sf FfCMJ5zEuYrsvS82c17ktdCL8uzbRmcaFJNTghW1+SFrIbxfIhZbx8ERgXCOEKZPvaT6pG TVcsp8duRTUnk28fmBo3NZyKIVX414GraIbADNdeHVSexp4Q5Z/RdUIZ0VHf1Q== 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 4XCxWS47NFzpq0; Tue, 24 Sep 2024 23:53:08 +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 48ONr805074368; Tue, 24 Sep 2024 23:53:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48ONr8xI074366; Tue, 24 Sep 2024 23:53:08 GMT (envelope-from git) Date: Tue, 24 Sep 2024 23:53:08 GMT Message-Id: <202409242353.48ONr8xI074366@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: ee3da604dd01 - main - 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/main X-Git-Reftype: branch X-Git-Commit: ee3da604dd016439850dae77366796313e60f0e0 Auto-Submitted: auto-generated The branch main has been updated by np: URL: https://cgit.FreeBSD.org/src/commit/?id=ee3da604dd016439850dae77366796313e60f0e0 commit ee3da604dd016439850dae77366796313e60f0e0 Author: Navdeep Parhar AuthorDate: 2024-09-24 23:28:29 +0000 Commit: Navdeep Parhar CommitDate: 2024-09-24 23:52:22 +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. MFC after: 1 week Sponsored by: Chelsio Communications --- 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 4412e1ab95fb..307b9c27111a 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))