From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 59523606A31A for ; Tue, 1 Dec 2026 12:52:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=VIXueeVw; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=RmL4bq4n DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=OImdruPeh6pKB4GlbwicKEZQ5rGR8VF7R6N4U+N+x5g=; b=VIXueeVwHi9O8pifEbwRfxM1Qm 5qMu4AHV4XR7Xf26Ru8soSoI5zZ945lsgZEa4JCVAb+t9jLK5DEBjcFU9Tb44Dl+xfR501fp2KeyI GJF1W2N2g1xYE798rfVCGOsK6XZbSUDcpdOp9IvVySjDa9QI+XBBugaIXOQIt3VCGKkIf4gMcrleC x8xjsFdwj0Ft1rvcgzSfmJ4BQ82vb9iBQCnWkiVp56MAyUmnYT5RxCf5hF6aaN7ZP7TJCuo6D8lOz ++CJNW/DQDLvlUvtqj9UewVGXSiIofphOhTEQR0eCT8cGHGAkjjpYHZoj5GxwKquJ2d19gCT7i9Ib eRcsA5gg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYNLE-00000007q4E-1rIC; Tue, 01 Dec 2026 12:52:16 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYNLB-00000007q3I-0XiJ for linux-arm-kernel@lists.infradead.org; Tue, 01 Dec 2026 12:52:15 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C041B152B; Tue, 1 Dec 2026 04:52:08 -0800 (PST) Received: from localhost (unknown [10.2.196.114]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2FB833F86F; Tue, 1 Dec 2026 04:52:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796129531; bh=PBhVx+0i25+CCKg4gbSWgbf2cn9Gbu9bSv5C6S/Uoxg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RmL4bq4ng6tEPPxctUIRL/ouq7QLhZBOVgpKeGlvsDU74tAi71eMH517kMz8vX5l5 KX+noR5Zx4oc5kkDupAca5K06e2qY/vI9Ft0j2KSC7EjDLHTHzAyGliJijLQFUn4aV AUvCuip7rgjTCLzBeb1+EVsujsq1ULwDSxFiG0j0= Date: Tue, 1 Dec 2026 12:52:08 +0000 From: Leo Yan To: Suzuki K Poulose Cc: Mike Leach , James Clark , Alexander Shishkin , Anshuman Khandual , Tamas Petz , Tamas Zsoldos , Suyash Mahar , Amir Ayupov , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org Subject: Re: [PATCH v2 22/23] coresight: trbe: Restart trace source for stopped buffers Message-ID: <20261201125208.GR861809@e132581.arm.com> References: <20261016-trbe_enable_disable_irq_handle_refactor-v2-0-3f57cf3199b1@arm.com> <20261016-trbe_enable_disable_irq_handle_refactor-v2-22-3f57cf3199b1@arm.com> <257ac5b4-f996-45d6-8d7b-3fbc989c1e86@arm.com> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <257ac5b4-f996-45d6-8d7b-3fbc989c1e86@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261201_045213_207121_E594DDD3 X-CRM114-Status: GOOD ( 17.12 ) X-Spam-Score: -4.4 (----) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-5.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Tue, Dec 01, 2026 at 12:14:44PM +0000, Suzuki K Poulose wrote: > On 16/10/2026 17:55, Leo Yan wrote: > > When TRBSR reports a stopped buffer, the IRQ handler closes the current > > AUX buffer and programs TRBE for the next run. This creates a trace > > discontinuity. User tool has to reset the decoder when moving to the > > next AUX data block, which can reduce decoded trace coverage. > > > > Stop and restart the trace source around TRBE reprogramming for stopped > > buffers. This emits ASYNC packets, allowing the decoder to recognize > > discontinuity without a full reset. > > > > This duplicates part of the trace source enable/disable code in the > > ETMv4 driver. Reusing that code would require splitting the ETMv4 > > callbacks into finer-grained helpers that TRBE can call, which would > > make the change much larger. Keep the TRBE change self-contained for > > now. > > This is risky. There are implementations of ETE that use MMIO access > and this will break such systems. The Arm ARM states that FEAT_TRBE requires FEAT_ETE, and FEAT_ETE requires FEAT_TRC_SR. So the ETE connected to TRBE must support system register access. > I would rather do it properly with the etmv4 driver code refactoring. Sure, I'll look into refactoring the core and driver for a cleaner solution. Thanks, Leo