From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A045335DA46 for ; Fri, 15 May 2026 13:29:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778851778; cv=none; b=hsmXq6mFJh9Y0/QQgI1tTKmjF6K+JBLwoOnNh/2od3RNF47XJLbqmYbl5sc9+CS4/719UJCEoc/jJ6sqOOCXxs6/S2oftVB+1kLcwmRodDz4dOFWkx+RlmU0BJI3xuMtmVN1GatrXvtfEO2VfVoirx60VaHqw1gP31qanU4IM5Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778851778; c=relaxed/simple; bh=uHs5psf72jixr5PLW9alj2Xe4IKVDCpYV1wL9XK62l4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OXTiiw3fFy8vNf4MhJUmAy5Gb/rkv5Xj7iuItK0kX+IvsN0QaW590U8dzbXPrFSospL4394lqg7L2Ac7K6G/iGiikwzG9KcsyeQDkfSkTMyweUrR5B+LUQuxZRRbnCcFXCQI68kqvfgfL7+R1ja5+luxFTBc+A0apFYH4GPMkug= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=R8/YpQyv; arc=none smtp.client-ip=217.140.110.172 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.b="R8/YpQyv" 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 BB82227D3; Fri, 15 May 2026 06:29:29 -0700 (PDT) Received: from localhost (e132581.arm.com [10.1.196.87]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 857693F85F; Fri, 15 May 2026 06:29:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1778851774; bh=uHs5psf72jixr5PLW9alj2Xe4IKVDCpYV1wL9XK62l4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R8/YpQyvuzrwSRnYg2JoDkIxh3go9HAAw6km2uev2luyQ+2NSbTpOqh7Vlgg63cfn D6WWvDlTaCyNi4ZXucZ0LpYRx8RLEW83v68tMhqiwUrKAEstyHADUFyqPK/cmqajom res/YvDKV73Gb70hxrbywHF7pqobc2om/qlSZyzs= Date: Fri, 15 May 2026 14:29:32 +0100 From: Leo Yan To: Yeoreum Yun Cc: coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, suzuki.poulose@arm.com, mike.leach@arm.com, james.clark@linaro.org, alexander.shishkin@linux.intel.com, jie.gan@oss.qualcomm.com Subject: Re: [PATCH v6 02/13] coresight: etm4x: fix underflow for nrseqstate Message-ID: <20260515132932.GN34802@e132581.arm.com> References: <20260422132203.977549-1-yeoreum.yun@arm.com> <20260422132203.977549-3-yeoreum.yun@arm.com> <20260505161905.GA3778514@e132581.arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, May 15, 2026 at 12:10:45PM +0100, Yeoreum Yun wrote: [...] > TBH, the number of transition is determinied by the MAX number of > SEQ_STATE that's why I think define the ETM_MAX_SEQ_TRANSITIONS with > > #define ETM_MAX_SEQ_TRANSITIONS (ETM_MAX_SEQ_STATE - 1) > > and uses ETM_MAX_SEQ_TRANSITIONS for the TCRSEQEVR and seq_ctrl. > > Thought? Looks good to me.