From nobody Mon Dec 1 23:02:30 2025 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 71FF0324B38 for ; Wed, 26 Nov 2025 10:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764154679; cv=none; b=gjymKk7IYLODxg21xw6SdjodNGbkyGGQGjPhn7J9n4pX/V/TmPeIftTWx4Hlkyk1k6FI6cCr1LGpPuQICcGeEef82Y3kM8GkRCrlZgKm84VKDb1e7yEvM38vRqK4XBSYhDhA8YhWsVgQOPjZwsH/zLfv9yM8PVKlH52T3gZNs1A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764154679; c=relaxed/simple; bh=2gYGham6RcUhZnNfLTEyX5K2IIqX9Oa8+TtMYKSDzf0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jhXoH8b2Dk/cy2YjAEi/P7sitpKccY8s8cNAXc4mUHM7PYb7x7MecSRiriQDofkBCTZDIu9RvQ4J7ElKmYj+BPWDNT5kSJAAYwsj1pesZYPPFJsSr57fCKO2ZiXeYvt0COX/8Gp0eRa1hqZprWP76K6/Ya7NOkVt8ZQ3dpYoa4Y= 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=jgQX6wIC; arc=none smtp.client-ip=209.85.128.44 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="jgQX6wIC" Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4779d47be12so50187285e9.2 for ; Wed, 26 Nov 2025 02:57:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1764154676; x=1764759476; 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=jgQX6wICwmAcvXYlu5TX/XrbPUBBGFHzeKfrKyASZHxzoIxfYHtcifP6d17o8esp68 jiBpsCNQyssIM97lHprtDzPDAX2szTOra3eOeEiJAWFjpND+OUAiGnNgLAr2pJ4j6hrJ 8+FZRvbqMNVXZK8DYGEYADK5oYIquq9BITwR34A5I2V2VIvbgowRveQcDB/2kRC7+K2N hBGyU95rWlMf5fVqoW+3RktNGWJr4dj6zB8N9YYEtBU2E195gCKNReYmr/u9X6R+TlqN vlo2lD0svY8Cer0Sd4SHeu1+echGyEJC9hNG75yb3dHokyTq5H3Su96aUTivu8Bobql9 eApA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764154676; x=1764759476; 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=eum+Bg/p1bCh+8bwOqQVMlY7yuGlBLQ0AW0RaUk94I5lwpVS5ufVMWyDSlJqNtQlhw 2fdyb2sT+oGHDKFSLdqo/ECw709NR7yo+J3O/JEo/ImAhv4X6ZB+47zER6JD96ltwDAb 3AcqOZAnKQYx4xx1um7Ha78OJHYexzJmq39doStv8LDwewS0AOgj8rgD24+J5V5rNUBA mI5cJKbhxHfXSrNHMVmfLx/sCSAdRgt8ZNOyzwCUOwFgLZhDHUz5GlpJNrKzXd2hHcRo 9sCugF9j9bOSs0i/42GVrhB7x2x173HRki7FP3okaJM4x8ITqzg56WN8VHIciIwD/+tb LrmA== X-Forwarded-Encrypted: i=1; AJvYcCUy6p2DZ3gxHvyn/q+fwnaXajUoU2LYKF9M2MQ5OQqtnwFPmNqzUN93gOgX4BUxr+dDweaB9qnNSuzDo6g=@vger.kernel.org X-Gm-Message-State: AOJu0YyEBAmadcpJH1GMvr3ovVynVtB6rio09mow7j+L4DtUayJjn9jZ JlS5kTiwyK1lphJGszvRL+Pw+AApE0A4PySoiOWmxL6dsAKE3Yyv/rwe/pq0mIC31dU= X-Gm-Gg: ASbGncuFovYLbw9hK+/6smrYAYmtSuR+dgv8AXIdUFipzLLgSTWQBKocSPmB44hnNbP fEPbSm4zGdaqKAxkFkNMXUNl8iPA436FsoDirtK079hL6ceEapn0mbFh/yWjVqyC9XTJ6DwK+xC z2hx8MRjDHr2SlatkKGxUutafkAgxm44w/XOd9po1WzWAOHSjKIz2tLhGalO+Wq1dAEY3gY6zw0 TkeoK4Y00SaM8P6fDu/tSxqEYrfZCeWWfX287lliTe0AG2QmkPldGE1sJUVgsSzsp4NRqdfzvA/ ucwu56fn+g9VPrWgttYzbor5CK7Ad9E8e1/h5mh+9ZC3UFGNqlZuTFWc8mmMr4ByWXyO8i1s4vV FCXt3RauAIbnjJ6yKZXlcKmFObi0BoDMmM1yZeEoKUAceRIHl4NxbKUfRxMDcnd0+u4Xm7FgVKB zzSdw/YuqEponV0JCuiFYhlaO07zHFaM0= X-Google-Smtp-Source: AGHT+IGI5q1kexToJTcX1Yl/7hYBxLHl5Npy8jahQMf8CLbNWSX46wWWQuRfFFyKaMWwDJ+DY4kHYg== X-Received: by 2002:a7b:c011:0:b0:477:7cac:508d with SMTP id 5b1f17b1804b1-477c01d4ac6mr163405625e9.16.1764154675634; Wed, 26 Nov 2025 02:57:55 -0800 (PST) Received: from ho-tower-lan.lan ([185.48.77.170]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4790ade13ddsm36991765e9.8.2025.11.26.02.57.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Nov 2025 02:57:55 -0800 (PST) From: James Clark Date: Wed, 26 Nov 2025 10:54:42 +0000 Subject: [PATCH v7 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: <20251126-james-cs-syncfreq-v7-13-7fae5e0e5e16@linaro.org> References: <20251126-james-cs-syncfreq-v7-0-7fae5e0e5e16@linaro.org> In-Reply-To: <20251126-james-cs-syncfreq-v7-0-7fae5e0e5e16@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 Reviewed-by: Leo Yan --- 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