mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Linu Cherian <lcherian@marvell.com>
To: <suzuki.poulose@arm.com>, <mike.leach@linaro.org>,
	<james.clark@arm.com>, <leo.yan@linaro.org>
Cc: <linux-arm-kernel@lists.infradead.org>,
	<coresight@lists.linaro.org>, <linux-kernel@vger.kernel.org>,
	<robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>,
	<conor+dt@kernel.org>, <devicetree@vger.kernel.org>,
	<sgoutham@marvell.com>, <gcherian@marvell.com>,
	Linu Cherian <lcherian@marvell.com>,
	Rob Herring <robh@kernel.org>
Subject: [PATCH v6 1/7] dt-bindings: arm: coresight-tmc: Add "memory-region" property
Date: Fri, 5 Jan 2024 11:28:34 +0530	[thread overview]
Message-ID: <20240105055840.1977897-2-lcherian@marvell.com> (raw)
In-Reply-To: <20240105055840.1977897-1-lcherian@marvell.com>

memory-region 0: Reserved trace buffer memory

  TMC ETR: When available, use this reserved memory region for
  trace data capture. Same region is used for trace data
  retention after a panic or watchdog reset.

  TMC ETF: When available, use this reserved memory region for
  trace data retention synced from internal SRAM after a panic or
  watchdog reset.

memory-region 1: Reserved meta data memory

  TMC ETR, ETF: When available, use this memory for register
  snapshot retention synced from hardware registers after a panic
  or watchdog reset.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linu Cherian <lcherian@marvell.com>
---
Changelog from v5:
* Added Reviewed-by

 .../bindings/arm/arm,coresight-tmc.yaml       | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/Documentation/devicetree/bindings/arm/arm,coresight-tmc.yaml b/Documentation/devicetree/bindings/arm/arm,coresight-tmc.yaml
index cb8dceaca70e..6d266ac0016b 100644
--- a/Documentation/devicetree/bindings/arm/arm,coresight-tmc.yaml
+++ b/Documentation/devicetree/bindings/arm/arm,coresight-tmc.yaml
@@ -101,6 +101,28 @@ properties:
           and ETF configurations.
         $ref: /schemas/graph.yaml#/properties/port
 
+  memory-region:
+    items:
+      - description: Reserved trace buffer memory for ETR and ETF sinks.
+          For ETR, this reserved memory region is used for trace data capture.
+          Same region is used for trace data retention as well after a panic
+          or watchdog reset.
+          This reserved memory region is used as trace buffer or used for trace
+          data retention only if specifically selected by the user in sysfs
+          interface.
+          The default memory usage models for ETR in sysfs/perf modes are
+          otherwise unaltered.
+
+          For ETF, this reserved memory region is used by default for
+          retention of trace data synced from internal SRAM after a panic
+          or watchdog reset.
+      - description: Reserved meta data memory. Used for ETR and ETF sinks
+          for storing metadata.
+  memory-region-names:
+    items:
+      - const: tracedata
+      - const: metadata
+
 required:
   - compatible
   - reg
@@ -115,6 +137,9 @@ examples:
     etr@20070000 {
         compatible = "arm,coresight-tmc", "arm,primecell";
         reg = <0x20070000 0x1000>;
+        memory-region = <&etr_trace_mem_reserved>,
+                       <&etr_mdata_mem_reserved>;
+        memory-region-names = "tracedata", "metadata";
 
         clocks = <&oscclk6a>;
         clock-names = "apb_pclk";
-- 
2.34.1


  reply	other threads:[~2024-01-05  5:59 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-05  5:58 [PATCH v6 0/7]Coresight for Kernel panic and watchdog reset Linu Cherian
2024-01-05  5:58 ` Linu Cherian [this message]
2024-01-05  9:54   ` [PATCH v6 1/7] dt-bindings: arm: coresight-tmc: Add "memory-region" property Krzysztof Kozlowski
2024-01-12 23:09     ` [EXT] " Linu Cherian
2024-01-05  5:58 ` [PATCH v6 2/7] coresight: tmc-etr: Add support to use reserved trace memory Linu Cherian
2024-01-05 14:17   ` Suzuki K Poulose
2024-01-12 23:08     ` [EXT] " Linu Cherian
2024-01-05  5:58 ` [PATCH v6 3/7] coresight: core: Add provision for panic callbacks Linu Cherian
2024-01-05  5:58 ` [PATCH v6 4/7] coresight: tmc: Enable panic sync handling Linu Cherian
2024-01-05  5:58 ` [PATCH v6 5/7] coresight: tmc: Add support for reading tracedata from previous boot Linu Cherian
2024-01-09 10:51   ` Suzuki K Poulose
2024-01-12 17:04     ` [EXT] " Linu Cherian
2024-01-05  5:58 ` [PATCH v6 6/7] coresight: tmc: Stop trace capture on FlIn Linu Cherian
2024-01-05 16:11   ` Mike Leach
2024-01-09 10:59     ` Suzuki K Poulose
2024-01-16  1:07     ` [EXT] " Linu Cherian
2024-01-05  5:58 ` [PATCH v6 7/7] coresight: config: Add preloaded configuration Linu Cherian
2024-01-12 14:04   ` Suzuki K Poulose
2024-01-17 11:04     ` [EXT] " Linu Cherian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240105055840.1977897-2-lcherian@marvell.com \
    --to=lcherian@marvell.com \
    --cc=conor+dt@kernel.org \
    --cc=coresight@lists.linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=gcherian@marvell.com \
    --cc=james.clark@arm.com \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=leo.yan@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mike.leach@linaro.org \
    --cc=robh+dt@kernel.org \
    --cc=robh@kernel.org \
    --cc=sgoutham@marvell.com \
    --cc=suzuki.poulose@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®