Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp1971114ima; Thu, 25 Oct 2018 07:45:29 -0700 (PDT) X-Google-Smtp-Source: AJdET5dc0YCx79us9KmxijgeLww35u5x/WeTyfS8imOnb6JUSA+fH1zGmt8M6b1862zN08twYwmh X-Received: by 2002:a17:902:708a:: with SMTP id z10-v6mr1847158plk.330.1540478729702; Thu, 25 Oct 2018 07:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540478729; cv=none; d=google.com; s=arc-20160816; b=s6LNFILP5Tp9H6cem9xI1nR9W/03qqn6YaeUJYeAQDF18TQg899NoQwjvsf+hZFJh0 qSZM7ufBcA0kFwGJIbFviklDah7xa/r5Z64rDXdBLgitdD5DfIDXDyo1NXfRg89mc2Yh JF1uCFZ3yneR+2xgBsDLROgPEDLNlqrqpyotg/RFve16sEnoq2kkoVcoCNMET5v3Xtna CQIPWGcUdBAaH0j6Hu72BurQH1gPZNADmspBLKL9nYsaT+WNYjeQSG6p6rrItA2VIxUZ xypBgklyyvbtnMGzsD23V2D0YlPMkoG5lHBYWPi3e5UivZD8BPsGfbJ0m2diN02FdvTJ sP+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=3BsZozYtWBZBDe71AWcRfrytazmEFG2Cdayalon+JgE=; b=xJqEHZzOlgH0q1gpfKYXkZbJ7YK+/qEjlpI9Clo20B2a0KyvUOdp0fji97+Jfr079H DI+o2MJn43rxp2jNP1ocs6XL3GqOlUlRZ42+syk1w981XNaxq0vNTeiNddJlYvKJxBrP P7ToONAnMYJTSNFwa916Sbe4wlgBCN6FtIs/uGPzYk90WdQOZOH3LWlg1ISmkaY+lWCR TNmjWKX9mK1K5JHUxELLdwZ81CnlCLIQ2daJ8ePvikA8EUiQ2H0cHFInp/ivO7h/49Tp 8gLDAL77ASoAYEVJ34A1IZWfanKqDJhusH0XZaVqnmvneGwSleNVCnXOZ3UADIo/ahOD tW5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="XP2bKZb/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h131-v6si8046234pgc.122.2018.10.25.07.45.12; Thu, 25 Oct 2018 07:45:29 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b="XP2bKZb/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728769AbeJYWsA (ORCPT + 99 others); Thu, 25 Oct 2018 18:48:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:56342 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728499AbeJYWr7 (ORCPT ); Thu, 25 Oct 2018 18:47:59 -0400 Received: from sasha-vm.mshome.net (unknown [167.98.65.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0F3A92084A; Thu, 25 Oct 2018 14:15:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1540476903; bh=qnQJ5hsNho6Ag/ZvVtAJ28BwwYCSCa6S7y26aGX2KlM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XP2bKZb/mGi8CaRyQ9ZE9uW3hM0Ne9nC4fZJYii+ANIcsbgZurO9F+YCV0kqZ01Xj pzXKMRg9oaZxNkVnHiYsi1+Is+h9UNWRoGVPbKGAGRp4kwNTEKAr8WNj0ssF46gBGt 0JTPQX0Omlo59rjnqjW7vd4vy6mvWH/nkuf413fU= From: Sasha Levin To: stable@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Phil Elwell , Eric Anholt , Sasha Levin Subject: [PATCH AUTOSEL 4.9 25/98] ARM: dts: bcm283x: Reserve first page for firmware Date: Thu, 25 Oct 2018 10:13:10 -0400 Message-Id: <20181025141423.213774-25-sashal@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181025141423.213774-1-sashal@kernel.org> References: <20181025141423.213774-1-sashal@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Phil Elwell [ Upstream commit b0804ed0cadd7e38d94d2f15cdcc0d9695818856 ] The Raspberry Pi startup stub files for multi-core BCM283X processors make the secondary CPUs spin until the corresponding mailbox is written. These stubs are loaded at physical address 0x00000xxx (as seen by the ARMs), but this page will be reused by the kernel unless it is explicitly reserved, causing the waiting cores to execute random code. Use the /memreserve/ Device Tree directive to mark the first page as off-limits to the kernel. See: https://github.com/raspberrypi/linux/issues/1989 Signed-off-by: Phil Elwell Signed-off-by: Eric Anholt Reviewed-by: Eric Anholt Signed-off-by: Sasha Levin --- arch/arm/boot/dts/bcm283x.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi index c51b88ee3cec..31563007772c 100644 --- a/arch/arm/boot/dts/bcm283x.dtsi +++ b/arch/arm/boot/dts/bcm283x.dtsi @@ -3,6 +3,11 @@ #include #include +/* firmware-provided startup stubs live here, where the secondary CPUs are + * spinning. + */ +/memreserve/ 0x00000000 0x00001000; + /* This include file covers the common peripherals and configuration between * bcm2835 and bcm2836 implementations, leaving the CPU configuration to * bcm2835.dtsi and bcm2836.dtsi. -- 2.17.1