Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5388041imu; Tue, 13 Nov 2018 05:55:56 -0800 (PST) X-Google-Smtp-Source: AJdET5dcC6o9YOoWTaQxnXC+o9av/NxASgEBdBAEyOjEVtxkcOQkA6/YkNq9I29/knnHRZSul/3E X-Received: by 2002:a63:de04:: with SMTP id f4mr4780465pgg.292.1542117356007; Tue, 13 Nov 2018 05:55:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542117355; cv=none; d=google.com; s=arc-20160816; b=mwgOBVMigeNlnNHCvu/0g3mnGEtYlfgDtIdRQkuAI37AtgsBfjoNWAZRZ/SxRonuid +3ZuIoAGiyte3tkoe9JhokEbTY9NfrdcDj72iEzFnGcDdD+gPr/s3KjalBhDsOXTU1Xs mjq9CoPC8lKHUz46UAitcjitEDHBIWaTzhB2aAIw+16Ge/nhAbSMpu657K9eBtFJkowM UFtGH5MQdi7uc8rla24C+/c8KnZODLn2HB0ZrAhFswr41Me49xPRX/jLRYIQFKWcgBoU KNy8CII4N8RSFMU5yV/7HmGDkLu83V+l0N5s7FWH6BPErXcBui1aOP46xu2zYtWGrcUj i8KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=30qra+0IzGBqPxS423gp/49OCzULxhp2Nn1ERK8iD8k=; b=apt7xBSFBYdfEzUOSqN/dKCWzmWuB3GFG1sYJlmYgIO+u5igYW5jc7YllU564shwnG /WULCq2B7g4ERAOXJGaX/ITCDs8A/cylJARv+DCOK6KvK9yuA2ZN4QKFZ5ZKkfNJc+eC 6mBR7awLleP6mGiUPvu+Sr2iVEkZ3fYRYsk1OJcU/va1dvzVQPSBXhoumDAPfRooR9Bd B+N0UZWPvpnaH/YAGTiNNMLuKtI5rgEDsjMfY31HJfZOWSl1BLn5d+/OjtuAeg6LuPrV lc16mEBfAndZ8gV9JFb7WEjZEG6oB5MVtlAdul8YLN6NXznRK+V6la1XiEEMhH/qCmUM I5LQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b76-v6si23937806pfb.89.2018.11.13.05.55.40; Tue, 13 Nov 2018 05:55:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387519AbeKMXxQ (ORCPT + 99 others); Tue, 13 Nov 2018 18:53:16 -0500 Received: from mx2.freebsd.org ([8.8.178.116]:20963 "EHLO mx2.freebsd.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733235AbeKMXxQ (ORCPT ); Tue, 13 Nov 2018 18:53:16 -0500 X-Greylist: delayed 405 seconds by postgrey-1.27 at vger.kernel.org; Tue, 13 Nov 2018 18:53:15 EST Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx2.freebsd.org (Postfix) with ESMTPS id 857CC7F135; Tue, 13 Nov 2018 13:48:17 +0000 (UTC) (envelope-from manu@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C295B84C75; Tue, 13 Nov 2018 13:48:15 +0000 (UTC) (envelope-from manu@freebsd.org) Received: from skull.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: manu) by smtp.freebsd.org (Postfix) with ESMTPSA id A59D02203B; Tue, 13 Nov 2018 13:48:14 +0000 (UTC) (envelope-from manu@freebsd.org) From: Emmanuel Vadot To: jason@lakedaemon.net, andrew@lunn.ch, gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Emmanuel Vadot Subject: [PATCH] arm64: dts: marvell: armada_8k: reserve memory for ATF Date: Tue, 13 Nov 2018 14:48:07 +0100 Message-Id: <20181113134807.53292-1-manu@freebsd.org> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: C295B84C75 X-Spamd-Result: default: False [-101.82 / 200.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ALLOW_DOMAIN_WHITELIST(-100.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TAGGED_RCPT(0.00)[dt]; MIME_GOOD(-0.10)[text/plain]; BROKEN_CONTENT_TYPE(1.50)[]; R_SPF_SOFTFAIL(0.00)[~all]; R_MISSING_CHARSET(2.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[freebsd.org]; MX_GOOD(-0.01)[cached: mx66.freebsd.org]; NEURAL_HAM_SHORT(-1.00)[-1.000,0]; MID_CONTAINS_FROM(1.00)[]; RCPT_COUNT_SEVEN(0.00)[10]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; IP_SCORE(-3.71)[ip: (-9.74), ipnet: 96.47.64.0/20(-4.83), asn: 11403(-3.91), country: US(-0.09)]; ASN(0.00)[asn:11403, ipnet:96.47.64.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Server: mx1.freebsd.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Like 4436a371 for 37xx, reserve the PSCI area memory region so kernels can call the code there. Region address is taken from the ATF code [1] and is 2MiB aligned. [1] plat/marvell/a8k/common/include/platform_def.h Signed-off-by: Emmanuel Vadot --- arch/arm64/boot/dts/marvell/armada-ap806.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/armada-ap806.dtsi b/arch/arm64/boot/dts/marvell/armada-ap806.dtsi index 073610ac0a53..d8a79bb69de1 100644 --- a/arch/arm64/boot/dts/marvell/armada-ap806.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-ap806.dtsi @@ -23,6 +23,21 @@ spi0 = &spi0; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* + * The PSCI firmware region depicted below is the default one + * and should be updated by the bootloader. + */ + psci-area@4000000 { + reg = <0 0x4000000 0 0x200000>; + no-map; + }; + }; + psci { compatible = "arm,psci-0.2"; method = "smc"; -- 2.19.0