From patchwork Fri Jun 11 19:17:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vignesh Raghavendra X-Patchwork-Id: 12316517 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE791C48BD1 for ; Fri, 11 Jun 2021 20:27:47 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id B367C61357 for ; Fri, 11 Jun 2021 20:27:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B367C61357 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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=nGreLJK+bgXXX4cpRwI4xJuwXq69mvOm7ELpL9O20IU=; b=sdCwITjiFaKhXw iSID7dxetHrFtROPAHXz9vP0FhAC7hqGBmEcHuG8JvwrqMhZqdD6SHQPVptuleDu83lmmoyg5WCJ0 oihls41kqtrFdi7wZUfbBcEXxpb1OR7wAcZJwtwZiO0Nns5/LyhYi3c+4dwCS9DxZ/9l8nEwbMCox qvReyQV6f8+ZKq5DZNs/xVVXbXbMKmEsWx7M+rj9jdl69RKZ0/AkPHZzniepqPu/A1D6EOVD9tYF2 b/5/k1aqGphHj77ZknzEKUCgknzXFHnqqhqhFCIKRj4/ffTYM4+6viot+BSDmzVW6jMJgKpzIpktJ ZX8/r0qmJuo96EInortA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lrniX-006srK-5f; Fri, 11 Jun 2021 20:25:26 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lrmew-006cZk-9B for linux-arm-kernel@lists.infradead.org; Fri, 11 Jun 2021 19:17:39 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 15BJHb9r091096; Fri, 11 Jun 2021 14:17:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1623439057; bh=P2KjPLpwAgrHduRLM/60JQJ9qmLjFro2RPdh8dds/Kk=; h=From:To:CC:Subject:Date; b=aZ07JKP6HRIf6NjKp6PHjDksTZW4L81vGCmDdt2r9zd4WYKs0DijFrMY9L6THgLGi Rjbqgr62oF46byDDn+kg4EScnUH3jS/u56hSk1FUiEUNCXivg0ZFxp7da4dHdi1ZIb 3XGn8guTB5+CxyOEv8vfMU/QQk1MAczjDiM7YX/s= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 15BJHafM119564 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 11 Jun 2021 14:17:37 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 11 Jun 2021 14:17:36 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Fri, 11 Jun 2021 14:17:36 -0500 Received: from ula0132425.ent.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 15BJHXS0002846; Fri, 11 Jun 2021 14:17:34 -0500 From: Vignesh Raghavendra To: Nishanth Menon CC: Tero Kristo , Rob Herring , , , , Vignesh Raghavendra Subject: [PATCH v2] arm64: dts: ti: k3-am64-main: Add SYSFW reserved ranges in OCRAM Date: Sat, 12 Jun 2021 00:47:18 +0530 Message-ID: <20210611191718.20065-1-vigneshr@ti.com> X-Mailer: git-send-email 2.32.0 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-20210611_121738_417134_6015EA09 X-CRM114-Status: UNSURE ( 9.66 ) 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 Last 256K of OCRAM (256K@0x701c0000) is reserved for SYSFW usage. Hence add an entry in DT so that its not used for generic pool memory allocation. Without this certain drivers using SRAM as generic shared memory pool may end up being allocated memory from this range and will lead to boot time crash when the reserved range is accessed (due to firewall violation). Signed-off-by: Vignesh Raghavendra Reviewed-by: Lokesh Vutla --- v2: Rebase onto latest ti-k3-next Collect R-by arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi index 309826bf46b3..b731119f58ca 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -27,6 +27,10 @@ oc_sram: sram@70000000 { atf-sram@1a0000 { reg = <0x1a0000 0x1c000>; }; + + dmsc-sram@1c0000 { + reg = <0x1c0000 0x40000>; + }; }; main_conf: syscon@43000000 {