Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp145064lqr; Wed, 5 Jun 2024 01:23:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXWEAJEf9qDQVf1Or4uIB6JIHO8SFPVktlT8rzZ1vy1Qe6dpNrQCkJeheTYejhY8JCdHTaHdye5Pf04wATYhTBRRoxDmAdILHWInW+uFA== X-Google-Smtp-Source: AGHT+IEct5duQ3UBoW4kolb4MJehJEXQSVSCKy5UQR9BjthGdG8n9Y3u4cTZXKvc0U0SCN4+5P4d X-Received: by 2002:a17:906:1793:b0:a68:c745:d586 with SMTP id a640c23a62f3a-a699fcdf818mr120147266b.42.1717575836191; Wed, 05 Jun 2024 01:23:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717575836; cv=pass; d=google.com; s=arc-20160816; b=GzD8Ws00WzQgipLqfouCXkD4ekppdOY5J0XHwyYbwoCMj4eEqd0curzdS8+f262ojD FE1BAPjrf9xeHaKmTm/UMWDKLhvJO8LN2j4xdnemhIx/IXsTshhRzrzFn/axDfI/2g8E VjT5f0asN0hj1sc2y2egnZeT+YvuwVreE3CJPPyrMw9yXfbT7YqY+gyQQEFCRVMXs1Jo Fd8YD1ZMtghxY1NK9Eu6Pk8NDiLedmxvY2zIMqUnQTFv+z3SsjjGjwi33x2GshGnjylK wjSmG5TbJdfvwCxXfqiLaluIYhDsghBiQ89Z0P9bD37UbYyqIjymUdyLL4zKMhx02A6D Svdg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=hhicOWMHKa1J/H/XNJ6E6RZzHWAH/BnUWB/xcC7KnOc=; fh=pJxU7Lfk/5lz2p0fPJSP5SJOEBa1vvMsmksyyuAy2SU=; b=tvKQnHUXLH6iQkk+7EkPv/IuPcz47HhSuu43C+C5DOQTSFT5r8VOgwGeektLqhqfoj FtctEyLtJ+gF2vBei7ExP9J7AMoJi4bBrcb6jdqGvHRJIrYOudJqiOYDIG0JCTgdKvaI mKpZewWKwwnvZZmLp1sNvsFcBOlcH9AYpmTCUdFpOGuy1foVe3y4v9YKNMGJojJLfylD 7CPnP/Od+wfKWHX8wBmvqCiXCGz7sydro1WNclrRxKNU+c2mIeCAaGOaAFWHUEbKJE5F io5HHHYDlJ5RMphD74rbbgcZ/aG33iUcfm2P4RbMO+rTr9ViURqmz2AeHpkjoC/YnO7q sNsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=ZR8pn+jh; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel+bounces-201977-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201977-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a68ca25b597si403240866b.78.2024.06.05.01.23.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 01:23:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-201977-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=ZR8pn+jh; arc=pass (i=1 spf=pass spfdomain=marvell.com dkim=pass dkdomain=marvell.com dmarc=pass fromdomain=marvell.com); spf=pass (google.com: domain of linux-kernel+bounces-201977-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-201977-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E290B1F21252 for ; Wed, 5 Jun 2024 08:23:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AB03B18FC67; Wed, 5 Jun 2024 08:18:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="ZR8pn+jh" Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 682BD195FE1; Wed, 5 Jun 2024 08:18:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=67.231.148.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717575489; cv=none; b=TOTO+HMtj2lqdz3BUSHSDzYVw1gOAj8xlvVmFBEWcfe9Ye4PXiLhAvG464fqLcaZp8awykWtylXNFM2w89u2gzOMVt5PzJ0fbj1zBrfPMJcDhWqkiUmYBQBrsKZSAxDE0AWlxCidDD4FhwVJa8DOpQqYS7IMcH+SbnterDarrYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717575489; c=relaxed/simple; bh=MXIzVq0dIhtRg32LkPd8K+sI/KI97awMjyylhz3JFG4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uN5vSn7VQPeQvXeoWNtsCOw9BF6aPivFaL3YU7aWyDtLDAFP83tROOu1Nd85LvJvMCOUvUrodE7K2fvWxBfWb+iVNoejMurGkbr/NCk3x25gfVbM5nngDSls6T0MIT5RFgbqwLYOnfUtdUVidf1yFyq/OaHGoswEHCPiIj3iEkY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com; spf=pass smtp.mailfrom=marvell.com; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b=ZR8pn+jh; arc=none smtp.client-ip=67.231.148.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=marvell.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marvell.com Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4554s7PF013525; Wed, 5 Jun 2024 01:17:47 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pfpt0220; bh=h hicOWMHKa1J/H/XNJ6E6RZzHWAH/BnUWB/xcC7KnOc=; b=ZR8pn+jhoI1eVkcah PpG1U09V2tyiTjdErMgY4Uq2fLHslZdeVl5PQWnRwlI83H7kmyfhLp/NrKcLVW8S PL4nHisFV56DMVFgYhEShxtOGyNwuALT9I4vlDiXIl8p4UN0v6qyDmnqUirvNij4 yOmcuL1oRq/tCCtjfTdu7kyRmkAZoSfwQ5Rg2P3hLg1MkmYcjQUYB26mfBRjmJz2 VUoXfIEVIFAW7P30UHb/jGX11K6/r5MgplXhuOQsryE2kUkrrMN7zdb1S6o++BcS TducNysVvQ6Qx1cxT5MAxpUIXDajv1Xpw+gM0bf2i2n520+6HklZd/YEVDjtx/2L HBxHA== Received: from dc6wp-exch02.marvell.com ([4.21.29.225]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3yjhd1gjbr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Jun 2024 01:17:46 -0700 (PDT) Received: from DC6WP-EXCH02.marvell.com (10.76.176.209) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 5 Jun 2024 01:17:45 -0700 Received: from maili.marvell.com (10.69.176.80) by DC6WP-EXCH02.marvell.com (10.76.176.209) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Wed, 5 Jun 2024 01:17:45 -0700 Received: from virtx40.. (unknown [10.28.34.196]) by maili.marvell.com (Postfix) with ESMTP id 619903F706A; Wed, 5 Jun 2024 01:17:41 -0700 (PDT) From: Linu Cherian To: , , CC: , , , , , , , , , Linu Cherian , Rob Herring Subject: [PATCH v9 1/7] dt-bindings: arm: coresight-tmc: Add "memory-region" property Date: Wed, 5 Jun 2024 13:47:19 +0530 Message-ID: <20240605081725.622953-2-lcherian@marvell.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240605081725.622953-1-lcherian@marvell.com> References: <20240605081725.622953-1-lcherian@marvell.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: OBUKmdaCOjmLhyGCWyHN4pJ5-DQmKPfL X-Proofpoint-GUID: OBUKmdaCOjmLhyGCWyHN4pJ5-DQmKPfL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-04_11,2024-06-05_01,2024-05-17_01 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 Signed-off-by: Linu Cherian --- .../bindings/arm/arm,coresight-tmc.yaml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/arm,coresight-tmc.yaml b/Documentation/devicetree/bindings/arm/arm,coresight-tmc.yaml index cb8dceaca70e..4787d7c6bac2 100644 --- a/Documentation/devicetree/bindings/arm/arm,coresight-tmc.yaml +++ b/Documentation/devicetree/bindings/arm/arm,coresight-tmc.yaml @@ -101,6 +101,29 @@ 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 +138,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