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: 9999927 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 33B93602BF for ; Wed, 11 Oct 2017 15:23:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C29C28A83 for ; Wed, 11 Oct 2017 15:23:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1100028A86; Wed, 11 Oct 2017 15:23:44 +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 1CDC628A83 for ; Wed, 11 Oct 2017 15:23:43 +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=alpCZWpj8FcCCXXEbGJG3obHr4gQbU1U3tFzEWh5MRg=; b=VcT rOUEcnaQNxVlQqbdI57dMXEMg3dp64BpEFoQ37Mq9HtJruSf+HJA8NimZdWpvVmrco2OeZG9GqENM u1hqphyhQ9jFK8Vh5tqmILVLDKL8FqV2bfszekA/64RnKyKZgeFVJcqWUrWVWlX431I62SBlJwumR E7NjTblAtVOUt/l+2Idm1tWETS3YjVUs0BZ8kFypWBa0QFlUOvnYir1vn638yQ+SAZ7OM2g2it+/C a90usvjhFZGr2pS1h117h9tA/vmmTjJiV6d1LPJx1ASFj6ydhBjtyt8b+vJQd74ENvUAbQDzHS6f9 XhvSvKn2+0YrBi50+xno112OcR5BlGQ==; 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 1e2IrE-0003BD-Vg; Wed, 11 Oct 2017 15:23:40 +0000 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e2IrA-00035n-S0 for linux-arm-kernel@lists.infradead.org; Wed, 11 Oct 2017 15:23:39 +0000 Received: by mail-wm0-x22c.google.com with SMTP id q124so5798949wmb.0 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=AbnjXf+PhyJS/1Uxx4MWsCvnovHRkgJrxpIrUEbOaLgZW2pAHFtWDomCLLy5t9c4FV fueURzc0I1nb6jDxxrPA5arZoyjgiM28TOWTrHO4tCGByq1ks2ziVDqiWlVB9YcQm5IJ Z5SYwRaXNM1JGllyMmykLe18nlAba9tZDWVQr7SELvwzy4Fwf/YDsHAhyQlpwoX6y3kM raQYcAbd3xNchMB1OuTQAtHgGTnGqFMFRmPaFWNSIJnDWBRett9hDalkJQ9MkKAe+8VA wn0dqsKUUwFTqxJC4nZDp0Js6ryez/coNB+ywe4FHG1BihAdj/uMjMD/1l2zC4hEV63v +E0w== X-Gm-Message-State: AMCzsaVZkktkEl5nEznIcj6CGc6C8/zBU8h3qw+yQY88y5HDCGo0XNdi 762L818FF3k62hvL+tkdW9BOng== 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_077405_3B962CBA X-CRM114-Status: UNSURE ( 9.50 ) X-CRM114-Notice: Please train this message. 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: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong MIME-Version: 1.0 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 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 {