From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796129533; b=M60B/ayCNCVMyeugZCB+P4ROMXEsm6BND21oM2UQvcozad8AUODckKYItUxKalodQoRZ u+cynr78y/cyaeYhzXg/Z2EAxlkwuzfKLoUt0SzmTwg8BAoLYxJgQOSqQEfCcQuFz1DeX nQT/9X4QaR7aHeeeR40Gmse8xOTn8oRuIPVprDDNJzPRny2tEOzlHwX7BhPA5SMA9NyaN a8ThTYZKzC2RgraBha8UVvkD8q+Y94AUwqTSh+5nOGh8rNbRUlCiW/BJqK0Jjm0Noqn98 ETVybvLvvfOnIMBUluAdaa1+njC5K863b5MDqT7MW1DX0pMOWzrWw7hMiOFYHrVVNug== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796129533; h=DMARC-Filter:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=OImdruPeh6pKB4GlbwicKEZQ5rGR8VF7R6N4U+N+x5g=; b=daMXA/0biH1Vw9jTlSfPul2uaW+hA64mCYiMs4jxLaMOJP9pCPxsNlndfQJwiIBTMH6D nXZcreyjaDfTFKE4O4Z1j09ycZ1JOyXwBKekvj+0jVCzuoihXnb1AT0LHr9iuxNaQ5MXw S0kB9bIrcOej8bHnXsNqwR7jKrqPTyeDmq9szEXbhQUjBTQw26NGgFrx3BD9mPPT6lcoH nYEuIIopeIGFE2ZgBWlSrFap5vvOl5f1GuM5q1nnK4VtCON4DSixLGitE7d138cXenK45 2leFJ2MUVi3Dq8czR/ICl279ATS/Arypg8rFml3Cb0wcBuBuyL/cOkH8uClwY7bJbeQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=RmL4bq4n; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9DAB9606A688 for ; Tue, 1 Dec 2026 12:52:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9DAB9606A688 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=RmL4bq4n 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-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <257ac5b4-f996-45d6-8d7b-3fbc989c1e86@arm.com> 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