From patchwork Wed Oct 11 15:23:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9999929 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 9E0FB602BF for ; Wed, 11 Oct 2017 15:24:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 86A8128928 for ; Wed, 11 Oct 2017 15:24:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 799502894A; Wed, 11 Oct 2017 15:24:15 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 1382B28928 for ; Wed, 11 Oct 2017 15:24:15 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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:In-Reply-To: References:List-Owner; bh=I1pt2ggoMfW9pdAJJ+ZFdK93PnRYv5OzePMOcXXZ2cU=; b=awB 9GJSuHDDh3p2J+Z+KOFOXl/+41UF/uuCvStMDuBWS9R6w4e+NdhJXhOWSjfqOUHlQMTQXtK3RRlWv 5kGYEMQpUjhRojspFarP3dFWN7lHxzJKlti3aRpNzE//o2cUkmH0Iw+zbKDYzWMl8BIa6xTkYomD0 KyWG4G4kmNp0L+rRAnvRbgM+iEUAPMkmW4mANO2AuibicsX2l5Tlrx/2LQzIJV8+iYlbF9mXLxwvR TVJUOLt/STnljoaojJJNr1+LnpX7TBv1r/NwXmas6nUGjx5qKXao5SzHdaaW5/JMQINpKEXWkQn2N AB5a2cbQ/1RYal2ffa6nsWdXhYL7wVQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e2IrW-0003RZ-0F; Wed, 11 Oct 2017 15:23:58 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e2IrA-00035o-Ro for linux-amlogic@lists.infradead.org; Wed, 11 Oct 2017 15:23:40 +0000 Received: by mail-wm0-x229.google.com with SMTP id i124so5716359wmf.3 for ; Wed, 11 Oct 2017 08:23:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=zplGOD6NigTgm1pB+Etbp0F+UcMUxpzSL/hwma3v0bQ=; b=Br29YZf3bR3T5TswELi61hObYVzV0RLOqwq9SeAnRTFplwn+aE+f2y/bTsjNa/C3lK z8YOsb3rk9ZH7dOiIZXYO925VzvCozLVRlMf6zzq95xSYaXGx8JCDYHMiHqcgWwbjTKG lzsy9yROBY6QVbAARRo4L6c9bKqXjpADLuvAG/4Y3WwRWTC1uxceJXBUQelhvJfYwx0n Z+oVr3VLE8XxZMr7sitlIDlosNO/nB3AqT1T3bDFfZONz6PvfU4iSlzBfCLgqdstM597 hEVU/NhfYy2kPbYiQGrO+m6gdz4wISYz+jXKMsaNQvdAlZfK8KcDbwx2IKy3fUe9EMK+ rMow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=zplGOD6NigTgm1pB+Etbp0F+UcMUxpzSL/hwma3v0bQ=; b=Z3M+i3FikC+bxPgbRQNmgNvBRQHMGIixTivcsW3wE/LkkkDUm+ZDKgTgVsTt6rq6iJ Az1Oq4MAeZeI3Keb76mgND9kF1aEN/64MWH2MolZa0xEbam47yEXuNx4bQGWzQAR86k7 eHce+gAfS7VWW6rBkTkV+S0f8ZG+yccpyjFun+7WPYcmz0zribVIYxpRNdFdcrsczdmd /xNG/Cd4jLCR7DElhpIfbfc53lyoV9BnO/qXi9q0FBqH9ttwXeHJNEowS9QbXy07VGP4 PWwdfa7fxMKCYOwmn+bDRh6MTB37hMmZ+PMVmawJHZYZF6SIfEBEnnuvP5pEdZBpzLdv iaqg== X-Gm-Message-State: AMCzsaXfFlSAuQHDjeTMjkHyyQNOzOnjg5PYYYrfu+Wd3npCcj1YWhe7 Va5P2BDsO50bHIJenn7Apl+NTQ== X-Google-Smtp-Source: AOwi7QBg5B9b6Ag439NGZ2hCndzgIUHlrgQYivUGVW5/UQ8+uT6Q1Cz40w2NmI9ioq059zuTOb6i0A== X-Received: by 10.28.74.80 with SMTP id x77mr12908070wma.79.1507735394536; Wed, 11 Oct 2017 08:23:14 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id d18sm7134491wra.50.2017.10.11.08.23.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 11 Oct 2017 08:23:14 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com, carlo@caione.org Subject: [PATCH] ARM64: dts: meson-gxl: Add alternate ARM Trusted Firmware reserved memory zone Date: Wed, 11 Oct 2017 17:23:12 +0200 Message-Id: <1507735392-20005-1-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171011_082337_059779_6CAAFEEA X-CRM114-Status: UNSURE ( 7.95 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This year, Amlogic updated the ARM Trusted Firmware reserved memory mapping for Meson GXL SoCs and products sold since May 2017 uses this alternate reserved memory mapping. But products had been sold using the previous mapping. This issue has been explained in [1] and a dynamic solution is yet to be found to avoid loosing another 3Mbytes of reservable memory. In the meantime, this patch adds this alternate memory zone only for the GXL and GXM SoCs since GXBB based new products stopped earlier. [1] http://lists.infradead.org/pipermail/linux-amlogic/2017-October/004860.html Fixes: bba8e3f42736 ("ARM64: dts: meson-gx: Add firmware reserved memory zones") Reported-by: Jerome Brunet Signed-off-by: Neil Armstrong Acked-by: Will Deacon Tested-by: Will Deacon --- arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi index d8dd329..fb8d76a 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi @@ -49,6 +49,14 @@ / { compatible = "amlogic,meson-gxl"; + + reserved-memory { + /* Alternate 3 MiB reserved for ARM Trusted Firmware (BL31) */ + secmon_reserved_alt: secmon@05000000 { + reg = <0x0 0x05000000 0x0 0x300000>; + no-map; + }; + }; }; ðmac {