Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4667219rdh; Wed, 29 Nov 2023 07:32:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGD9NnYa26kywSB+SiadpkXZpLlENy2k1YzpTqhQwJxQTkEJwb34uQ/H43n9vtT6GYbA/i7 X-Received: by 2002:a17:90a:1a:b0:280:5e8:58b1 with SMTP id 26-20020a17090a001a00b0028005e858b1mr18497842pja.33.1701271931334; Wed, 29 Nov 2023 07:32:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701271931; cv=none; d=google.com; s=arc-20160816; b=jG3SJMgT5luMpV5xvdpgUMvRsycZCm3VBswWk64BYgDWRDjmDU9+9fsWiU9iqTTDi2 8nsByIbPQ7nQUcLIJm5UZ2Wn+TEnV4Sor8aI5B+Jv5XcKpi5QsE2RG6iODspu6UdEsvf QtV4BAp7O3xv3wBYIALuavMoEPlfZv+jlwSkkapeRGHuB10Wy+XpcGWnyyTE7Gm5oK1p 3+HACsIm3AudwtpZ4Hd7URiIFhuZrd5krBkqnObyBXdbAwutMRj1soHUURO90AwT79AU UAbVZuCMyBmPcsB6cZiF2LlD7np/foL+BzMp1GLCvXQUPJyokxOatxY/PRTLDLqT3096 amrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=n6Se7MgTLDlVPsmnv481wC76UKLsZL7lpNqEMlGZzy0=; fh=qiuiZXOuSBoCezToil2F5RBR95PkXWcuBaEpicqga+E=; b=n5vfrZAD4AnmPR9Vh0wgp939tpJVzmhXXWtEVKwr90U/Cjdgov82l2U00xiEJxPUln OOGG83V+JVrHW5ZtgKrjxCYzbUtUKmu0ld+vu7PgrEVlTBYwEqMQcYahwQZn9rVA7i5u tf0UvxSjttbMdHx9CMz52wVlfZ+o6bnq7UnZSslD99LdTj+r9/WA8Iww+hdEAjwCDoNc D3B/Xzhtrtv8DwhiSAzgNdz1ca6MaiHQNoY5SKZmv3ZTDM8gAzVQ571RqP1RxQDZypmi Ha049CcToCN9yNkIOi0GG01b1P5iwfxHtXKb9W4ZEGFxRVY3ubcGlZU4iXdJ/dzNZHoI ZFVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="IAr/fyUw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id n1-20020a170902e54100b001cf9654ec69si14426037plf.323.2023.11.29.07.32.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 07:32:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="IAr/fyUw"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 006FD8043018; Wed, 29 Nov 2023 07:32:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343771AbjK2Pbd (ORCPT + 99 others); Wed, 29 Nov 2023 10:31:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234918AbjK2PbV (ORCPT ); Wed, 29 Nov 2023 10:31:21 -0500 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF4E8D6F; Wed, 29 Nov 2023 07:31:27 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 340CDE000A; Wed, 29 Nov 2023 15:31:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701271886; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=n6Se7MgTLDlVPsmnv481wC76UKLsZL7lpNqEMlGZzy0=; b=IAr/fyUww18EgY4GKsHZMYeVTdK+cveCDjQkTAmKmYQJpAQ7V63VUI9w7uU7LnDdhJ++6s dswp7Ew+Zg2jg5CZ6Spu6PDvXR+wXPIizzILSrhOIIRTH348R5T8oNbB0qw9s1hJRTqFdV 2Fy+7NThE7UTzrSf0si2wpYZf8E9T0LpEFGHklB76X5DCOqK1OrBEAMdRHaIW5bIgqCctX oWBJ5zufnZ+o9VcXTxrrzf5pGoqf2q7bRqpUHmsMx/5lsiRj2JVK0yEGnZy+kq8fjMv+Pg i45A8YVchsERATCQniJ8Nm2udPMXvwziQDnejef9/H38zCbu3qbps28oEgypgA== From: Thomas Richard Date: Wed, 29 Nov 2023 16:31:21 +0100 Subject: [PATCH 5/5] arm64: dts: ti: k3-j7200: add reserved memory regions for lpm MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231129-j7200-tisci-s2r-v1-5-c1d5964ed574@bootlin.com> References: <20231129-j7200-tisci-s2r-v1-0-c1d5964ed574@bootlin.com> In-Reply-To: <20231129-j7200-tisci-s2r-v1-0-c1d5964ed574@bootlin.com> To: Nishanth Menon , Tero Kristo , Santosh Shilimkar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vignesh Raghavendra Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, gregory.clement@bootlin.com, u-kumar1@ti.com, Thomas Richard X-Mailer: b4 0.12.0 X-GND-Sasl: thomas.richard@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 29 Nov 2023 07:32:04 -0800 (PST) Two memory regions are reserved for suspend to ram on j7200. One is dedicated to TF-A, it uses this region to save its context during suspend. The second region is for R5 SPL, which uses it for its stacks and to store some firmware images. These regions are reserved from the linux point of view to avoid any memory corruption. Signed-off-by: Thomas Richard --- arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi index 5a300d4c8ba0..dc8c9c3e8443 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi @@ -79,6 +79,16 @@ rtos_ipc_memory_region: ipc-memories@a4000000 { alignment = <0x1000>; no-map; }; + + lpm_r5_spl_ctx_ddr: lpm-memory@a5000000 { + reg = <0x00 0xa5000000 0x00 0x1000000>; + no-map; + }; + + lpm_bl31_ctx_ddr: lpm-memory@a6000000 { + reg = <0x00 0xa6000000 0x00 0x20000>; + no-map; + }; }; }; -- 2.39.2