From patchwork Mon Feb 19 03:34:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Gerlach X-Patchwork-Id: 10227087 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7DBAE60467 for ; Mon, 19 Feb 2018 03:41:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E853288BC for ; Mon, 19 Feb 2018 03:41:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 62952288BE; Mon, 19 Feb 2018 03:41:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E995B288BC for ; Mon, 19 Feb 2018 03:41:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mQoTMhPeRZgL37XyQRcuxMRiATIBtPwYnUvUi4DSEXU=; b=OwAEtxZZJ0u8tt vNyHgyc9ix1P1sS89oy11CMrQ6uX9HkuMbxkNjaNLFklYZBxTMB9WHzvZwe3GEVxvTWbFgi2cRRAV wf2QJp4ENCBfzwLqoEFP2WEZrS7rX00KxSAuS857a4Um5ggCOhvkM/OaSp2cvzmJj0dM1K3ayhwoX 4VBWVetPECokoDeBXh5vULdKFMnoeNZ3RMXTy8CUY0bbuCs2DxVU/3+QaOo4tl+9X8p4ZCMVQMizK oDgzwzr/aA8nGxX0GZaHVb9oduB3XmlZCybbmIluFw3Z5jzt7+B7RpHnJmMnF63nX3B/hI85wZbb5 6Lfdu1eGLSF0z0iQYVWQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1encJu-0000wN-Sg; Mon, 19 Feb 2018 03:40:50 +0000 Received: from lelnx193.ext.ti.com ([198.47.27.77]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1encEf-0005NZ-AS for linux-arm-kernel@lists.infradead.org; Mon, 19 Feb 2018 03:35:34 +0000 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w1J3Z8LE018307; Sun, 18 Feb 2018 21:35:08 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1519011308; bh=9FwqHQ5oQEXB60abHD+Etwhio+CBQ3uX+sb3BjLNGps=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=UO0GgeWDL+SK8hYq5KN9i49Jj8dZSQOHCWsv4vQ3WQS9Leu2+RmFD1Os2TicMOI9A 4i/PdIEn2CcxDUlmbvU0fPTqW6X4XmfM+SOICu1aET8xRcwKn55BvUA1Itc9Sr7Bk3 VZlXymf6ZZH7KdgrFFjZH6Xy7IEYmu4zKdSPXgQI= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1J3Z8Pg007607; Sun, 18 Feb 2018 21:35:08 -0600 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Sun, 18 Feb 2018 21:35:07 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Sun, 18 Feb 2018 21:35:07 -0600 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1J3Z7s2015818; Sun, 18 Feb 2018 21:35:07 -0600 Received: from localhost (uda0274052.dhcp.ti.com [128.247.59.203]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id w1J3Z7x23068; Sun, 18 Feb 2018 21:35:07 -0600 (CST) From: Dave Gerlach To: Tony Lindgren Subject: [PATCH 1/9] ARM: dts: am33xx: Reserve pm code and data regions in ocmcram sram node Date: Sun, 18 Feb 2018 21:34:57 -0600 Message-ID: <1519011305-17822-2-git-send-email-d-gerlach@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1519011305-17822-1-git-send-email-d-gerlach@ti.com> References: <1519011305-17822-1-git-send-email-d-gerlach@ti.com> 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-20180218_193525_472956_06D913D2 X-CRM114-Status: GOOD ( 17.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Dave Gerlach , Keerthy J , Johan Hovold , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add a 'pm_sram_code' reserved region to the ocmcram node to be exposed by the mmio-sram driver as a pool but also mark it protect-exec so that it can run code copied to it using sram_exec_copy. Add another 'pm_sram_data' reserved region to the ocmcram node to act as the data space for any code running from the 'pm_sram_code' region that is exposed as a regular pool. Signed-off-by: Dave Gerlach --- arch/arm/boot/dts/am33xx.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index 628c77b0b386..a9bbf68db077 100644 --- a/arch/arm/boot/dts/am33xx.dtsi +++ b/arch/arm/boot/dts/am33xx.dtsi @@ -905,6 +905,21 @@ ocmcram: ocmcram@40300000 { compatible = "mmio-sram"; reg = <0x40300000 0x10000>; /* 64k */ + ranges = <0x0 0x40300000 0x10000>; + #address-cells = <1>; + #size-cells = <1>; + + pm_sram_code: pm-sram-code@0 { + compatible = "ti,sram"; + reg = <0x0 0x1000>; + protect-exec; + }; + + pm_sram_data: pm-sram-data@1000 { + compatible = "ti,sram"; + reg = <0x1000 0x1000>; + pool; + }; }; elm: elm@48080000 {