Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp43840imu; Thu, 8 Nov 2018 14:27:30 -0800 (PST) X-Google-Smtp-Source: AJdET5dv/8sriXKbQbZw9bQckeuUm5jAts/yMMBKmYFb4VBPA7bYHvHKGOP6hyWM6Bxr/sQUJkCU X-Received: by 2002:a63:4b18:: with SMTP id y24-v6mr5437609pga.181.1541716050624; Thu, 08 Nov 2018 14:27:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541716050; cv=none; d=google.com; s=arc-20160816; b=ilkP+PDkX69oBU0HfzJkTl6a0eihlYifXHx8Tcteoe5I30vLAOXF/UHxuAAQiuBPH1 XVOt0vrwnI6taxTACd/MKvdlF5dHzXqgGmuPJcsnFkt+Zw8WvzyBjRlzP6zpMxR3e5MN Xt9iNb5ilO7t8CZm8izbLKm/FSiy+IoNvP/KNmYwYJ21KzeqU/gCAfqQKpoioDcjuGBE 3mqXaoH8kSGeUXM31LaVj/rxNEqNIDbwBYyDoZgLX8DIT9v6c6U1RpxO5e3rSpQdvdbn VW1hlDp/hvEoics45v3JckQPnB4zrgys9UTJUhAKzfyvkeaabzCuS/qY7Z7ePduyNmmr dp0w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=BAxNDkBSayX0CFok/GGTS7zVk+26B3q9LKC7tbSL1Ds=; b=X2uU4/kVTOSatLW0c9YH0x5gMJJPgW23JXmXdvuLUB4+qvYaiTybl55Git9nEESIoH NAE6dbvSnWNsK+m5jbzmDNNUiDMKQr6wdXRF86nWV+TRgGaZNXh9GoDumlmDkYbwt3Ck /ieT9NlJbemxAjMehLqAm9UMb7bCmDkCrieJDjO06k6h6lRJhEADTgeGy8o1GzNJwJ9o eYIO5rQ8sN6qJB26d9JfNG8hJ0Kho2Q1uE7WHEj3PKslVJbcQOsgTlOMHfuGoYQoQgGW Mg++mPMYfIkZBDAz8FpQmIBdkb/h3tBZyIqUDxSz3FfmbKNPg9Qhpiu+2OGacrKEuAhy DE2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Fw++toYZ; 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 c85-v6si5744036pfe.60.2018.11.08.14.27.12; Thu, 08 Nov 2018 14:27:30 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Fw++toYZ; 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 S1731368AbeKIHlr (ORCPT + 99 others); Fri, 9 Nov 2018 02:41:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:33458 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730305AbeKIHlr (ORCPT ); Fri, 9 Nov 2018 02:41:47 -0500 Received: from localhost (unknown [208.72.13.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C636F208A3; Thu, 8 Nov 2018 22:04:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714656; bh=F3jrL2jwmsiLxXXIKCcJTywJZZ9z9376IycS1RLYVk0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Fw++toYZ5s7UV3C+QqoriYXXYAHwuf85lFaPh832vMe0dhTLVceE5OYi78F+IVJnY GHtQ3UYFnQ1y1pmO29H2f45DNGt9oppU3PT14023cYOjtTBNK9gDZe9upiHnsp+ITs KB4tCKVaQj4Lh7jtNfmQZYoHyeW2Mca6dG8sxJzQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Phil Elwell , Eric Anholt , Sasha Levin Subject: [PATCH 4.9 056/171] ARM: dts: bcm283x: Reserve first page for firmware Date: Thu, 8 Nov 2018 13:50:26 -0800 Message-Id: <20181108215131.551748040@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215127.257643509@linuxfoundation.org> References: <20181108215127.257643509@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ [ 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