From patchwork Tue Apr 16 09:36:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kumar, Udit" X-Patchwork-Id: 13631570 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5C484C4345F for ; Tue, 16 Apr 2024 09:37:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=swrCWpqCUh8RF671MfwtIz8vgSG/wijpogUBUNBIjW0=; b=dIpMmzhSnEdC+n KgZuJFN+EHD8wz+yGIKrMiywjGdOMV+AbCejODKT+hpUF+X6btI/jBfl2aI/iPdgxNzR+BNWZKfC8 s3jnGPKeKJfRul5US8+4uf/363tVlw4Pf450BXxclcpOsSDPDwqqQQOYVXHve8Ltoi7yIDjjIdI8C z5dIHgbSIZQ2iTe4aVPCb63YkldbXjdzPJ0yUZWpSYakmZBVUYYTS+QK57H7Y62g6En27ePGtl+j4 5/M05YG7N+1WptP0oS2qATf7B5naX4bV4DSLjO5Uoz0YFCzlvklq595fdhh7l6vb+cRwO+xqp/gR+ G1hbsh1KD95vN+HBgLRA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwfFa-0000000Bd76-06Gn; Tue, 16 Apr 2024 09:37:14 +0000 Received: from lelv0142.ext.ti.com ([198.47.23.249]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rwfFX-0000000Bd3B-1noE for linux-arm-kernel@lists.infradead.org; Tue, 16 Apr 2024 09:37:13 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 43G9axuD067677; Tue, 16 Apr 2024 04:36:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1713260219; bh=3+4yCUe856YSCywDQIBGfdnlq8U1G2XXbSOviL1uR8U=; h=From:To:CC:Subject:Date; b=Py+J3tBtJAqOYyIAh11cfHG6ijuWg9u8Os+tG5P/Kw8VmK7J0PMXPlSC56fApD7Ga iaG1OEwo4IsEgmXZKJEM/dYHY+zezFYXx2e5Er88Aqh4l8WN2BjtKacdASWyNlxKwo 2leJYNktqsmVrwvCJfKKj5chlkxUWD/vy4rtM/Lw= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 43G9axH9117964 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 16 Apr 2024 04:36:59 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 16 Apr 2024 04:36:59 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 16 Apr 2024 04:36:59 -0500 Received: from udit-HP-Z2-Tower-G9-Workstation-Desktop-PC.dhcp.ti.com (udit-hp-z2-tower-g9-workstation-desktop-pc.dhcp.ti.com [172.24.227.18]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 43G9atpJ057522; Tue, 16 Apr 2024 04:36:56 -0500 From: Udit Kumar To: , , , , , , CC: , , , Udit Kumar Subject: [RFC PATCH] arm64: dts: ti: k3-j721s2: Add reserved status in msmc node Date: Tue, 16 Apr 2024 15:06:48 +0530 Message-ID: <20240416093648.3620423-1-u-kumar1@ti.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240416_023711_597506_3FE70347 X-CRM114-Status: UNSURE ( 9.67 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org TI K3 SOCs have msmc sram, part of it can be configured as L3 cache depending upon system firmware configuration file. MSMC memory typically host four tenants atf, system firmware (tifs), l3 cache and as sram. Allocation done for atf, tifs and l3-cache is not accessible in address space of OS. Therefore u-boot deletes sysfw and l3cache node before passing DT to OS[0]. But keeping tifs (system firmware) subnode as is. Since TIFS node is not also accessible to OS, I need suggestion for selection of right option. In my view we can handle in two ways 1) delete tifs node as well In this case, only accessible sram will be visible to OS[1] 2) make these nodes (tifs, atf and l3cache) as reserved, so that OS has complete view of memory. This is patch for option 2 to mark atf, l3-cache and tifs as reserved. Also other options are welcome. [0]: https://github.com/u-boot/u-boot/blob/master/arch/arm/mach-k3/common_fdt.c#L67 [1]: https://lore.kernel.org/all/20230420081128.3617214-1-u-kumar1@ti.com/ Signed-off-by: Udit Kumar --- arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi index 3cb06a7e4117..f64c8b0780d8 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi @@ -25,14 +25,17 @@ msmc_ram: sram@70000000 { ranges = <0x0 0x0 0x70000000 0x400000>; atf-sram@0 { + status = "reserved"; reg = <0x0 0x20000>; }; tifs-sram@1f0000 { + status = "reserved"; reg = <0x1f0000 0x10000>; }; l3cache-sram@200000 { + status = "reserved"; reg = <0x200000 0x200000>; }; };