From nobody Tue Dec 2 02:29:11 2025 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3AE0F373750 for ; Wed, 19 Nov 2025 16:18:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763569115; cv=none; b=ISwG3U2NutjUe4ff/FCAxmCyedijlY8hWjP+nbnSpn5bZa4LYycHgIP+zbLfRdfuhQpMRkY0KfqGYhjLLe0VLU+3l5MqrJGDVWSLrkbXu03twgv3uKQP0H/wP2BMWFlIWN785s5TnebDexdu2oZQh8t7fTsrlgvmwF1i1cGgGzI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763569115; c=relaxed/simple; bh=2gYGham6RcUhZnNfLTEyX5K2IIqX9Oa8+TtMYKSDzf0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=aO5ZFL8SfkZ6grwfh+89FC9E3+N/yGD6nBiEqlZIkZmLGlLdssrXZJNYV2cyN2mSIDo8xV/4SDvus33xlmNrSXBdi184QsiwwqRQvOIdlpdmQAKRUco1r9X089xjrJxjsLKdeMlZ8y0oqLj9dReHnSQ29uEesZPplAg4BRe6bpI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=xT0TSeGv; arc=none smtp.client-ip=209.85.128.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xT0TSeGv" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-477b1cc8fb4so6225525e9.1 for ; Wed, 19 Nov 2025 08:18:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1763569111; x=1764173911; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=9NYmdp5K7GoriQTdww1h5siZo6lfJrXIe/VnMyhW40E=; b=xT0TSeGv1shStWY8dG2VdnVNTmaOATqx5X4A6etNbikwyUW2v027fqYAP3WksI3Rn5 tmfexNiX6XGmm4MGw8i2JSvUOrsuiIkalV/89pCoVnYZJXrD4ExkS9+P0SET4iTknZK9 G0bDe4SkP8sQJUvj2fhSG4GA5vVClgfcvk1j8a3wNnEHPGREzrt7wqLsgu0Xt5ssR5Zf u4Hf4eBLiJCHVBEJdZiz3UWyoXwR6zcSSKkQPBVhsQPVQp25/5ond0WTaISog6ExwDQT WjrGVVE1RP1cIYJW6c2PJaR0LAOx3Dh4d1TgoKW/6DgurmV8iRznB/vnJXPgCe6oJlBE mlZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763569111; x=1764173911; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=9NYmdp5K7GoriQTdww1h5siZo6lfJrXIe/VnMyhW40E=; b=YSKHSk2PKqPi3iOv46nRxvjJ5bgemwh/i28cJ+KlvqFLb+xmvwtbSX1v3jHsn3AmJt 3aXB8KMij05EuVGUSnl7SsqfU5sQstKpKdaDYzNr+aTqYtxrAy5R37nDEjcC0soEpb5j Zv3/2o9xbcPPQvzam3SW5z3nQHdX1yZPmrcHL9Kui3zXaGzvaQ086Q7dui3vPWeXqwEr T9KEZBCnC2wOhXlWiGAzPaQecroNWUHXomGNRJYMiNELjONA+PARGpwt1m3/d7qXUBrI 6pps/U9ItWN3SWgnwEleGDO9RuVb642faQbaPormwPWQbTu9eBMfjBdXd5sYbc1KheU3 +MeA== X-Forwarded-Encrypted: i=1; AJvYcCU03h7Ej7X6H5owBLqfV5VDijqoQlYzKX2oYeRsGRrZuLfR+9/aEAZEtEVyAc83faHWT3wT6jVy/SGH2Do=@vger.kernel.org X-Gm-Message-State: AOJu0YyB/VChLHx04G1F62sCW1irHmRNJJZ/3/FafaAN/9EuOaKhDC01 7z+rtfE+yqLFlAzRGHV914ymJZFr8Qkux+8IL+8Pp8dMKFu7CvD+tUmzaaYVVXFc4t4= X-Gm-Gg: ASbGncvt3kQoXFPMdzfNsfG0o8UxQyddHLAo71x+1eE45gze9kRA9reBqnUSnNrKw22 lHi32MbDHvXZyj4ZNw7vYUqilUNbOYbp52VB6LB9Xe4C3DBv6Ra/eesLGmghCC/J33xRjsnfvZf JL+DI/2q33CGCjJ35Rmr2ywm6zDpvnIsXhj5IQmVW1FIAQDyq3lgRPeRBAcDliQ6+6X9VgKNtyY FkdPBjnoHMgheJ3HO4vuB93U9PZPbNMUzzfHS+LdqJtcBlrmC5Y7Iiza6+sru8nZt4/33qJfgI9 A/IKGyZIy3aRmPt+AlJZEd6x1FRfTRXING7A5AQKNoIuyZJwjmxHJllGtavEpRvhVYN84JWUxVF Ji+odFAQry/V7wwhGxLA7SmgLm1jTgYBp7Rv9Bj5/PLQfSBnnhSgXIhPRfbOvhVKbYBp9Am1zpm OjI1NxD6FOcKanYIav3KruXgSnkJLQA/k= X-Google-Smtp-Source: AGHT+IHdpfGKmHi4dDxwCxkPLQGkWAFqU0kact4PGhTMGVixHnJV4SZCke4Dbaosdd52MSthTFvACA== X-Received: by 2002:a05:600c:6b47:b0:477:b734:8c22 with SMTP id 5b1f17b1804b1-477b7348cebmr11811715e9.8.1763569111423; Wed, 19 Nov 2025 08:18:31 -0800 (PST) Received: from ho-tower-lan.lan ([185.48.77.170]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-477b10142d3sm63205425e9.5.2025.11.19.08.18.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Nov 2025 08:18:31 -0800 (PST) From: James Clark Date: Wed, 19 Nov 2025 16:18:09 +0000 Subject: [PATCH v6 13/13] coresight: docs: Document etm4x timestamp interval option 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251119-james-cs-syncfreq-v6-13-740d24a29e51@linaro.org> References: <20251119-james-cs-syncfreq-v6-0-740d24a29e51@linaro.org> In-Reply-To: <20251119-james-cs-syncfreq-v6-0-740d24a29e51@linaro.org> To: Suzuki K Poulose , Mike Leach , Alexander Shishkin , Jonathan Corbet , Leo Yan , Randy Dunlap Cc: coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, James Clark X-Mailer: b4 0.14.0 Document how the new field is used, maximum value and the interaction with SYNC timestamps. Signed-off-by: James Clark --- Documentation/trace/coresight/coresight.rst | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/Documentation/trace/coresight/coresight.rst b/Documentation/tr= ace/coresight/coresight.rst index 806699871b80..d461de4e067e 100644 --- a/Documentation/trace/coresight/coresight.rst +++ b/Documentation/trace/coresight/coresight.rst @@ -613,8 +613,20 @@ They are also listed in the folder /sys/bus/event_sour= ce/devices/cs_etm/format/ - Session local version of the system wide setting: :ref:`ETM_MODE_RE= TURNSTACK ` * - timestamp - - Session local version of the system wide setting: :ref:`ETMv4_MODE_= TIMESTAMP - ` + - Controls generation and interval of timestamps. + + 0 =3D off, 1 =3D minimum interval .. 15 =3D maximum interval. + + Values 1 - 14 use a counter that decrements every cycle to generate= a + timestamp on underflow. The reload value for the counter is 2 ^ (in= terval + - 1). If the value is 1 then the reload value is 1, if the value is= 11 + then the reload value is 1024 etc. + + Setting the maximum interval (15) will disable the counter generated + timestamps, freeing the counter resource, leaving only ones emitted= when + a SYNC packet is generated. The sync interval is controlled with + TRCSYNCPR.PERIOD which is every 4096 bytes of trace by default. + * - cc_threshold - Cycle count threshold value. If nothing is provided here or the pro= vided value is 0, then the default value i.e 0x100 will be used. If provided value is less tha= n minimum cycles threshold --=20 2.34.1