From patchwork Tue May 9 09:04:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Elwell X-Patchwork-Id: 9717365 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 E669B60365 for ; Tue, 9 May 2017 09:05:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3002283FB for ; Tue, 9 May 2017 09:05:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C70F828408; Tue, 9 May 2017 09:05:02 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID 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 42D34283FB for ; Tue, 9 May 2017 09:05:02 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:Subject: From:To:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=4yXiMbQ0CLentNXWWSOOf3BfsD6VsvvvEFGYBCYUgrQ=; b=nqmgCVDVgPDoRa YpgxIHHNFxXieT5YJltGeNgT/SklmD6O2L1HEZjp8SMTpCOavaQCwJoCTqgmG92JWihZDcGBPaFj3 iIk5w3LS76oQEp6EJY99piDVoz8rKevA6ieiXstjwyHQt5dN1wPe2p3rVxprahgKr6TM1XGEO7Gmb XOmWCt+x+DKLDje8ofl/VEz5/ptyPc3nyflh48tHndIUxeT/iW+7xFsC4skjM3hsh9K5pBERvNNSe FRMJnIv4U7kI8MCyWNP4r8mnAFDxqi3azXzwyrQmYyEqIfttae5wsSmd0sy27R9ezBhozuLLgf3Wz vWSh33C6qPfrQ2mUAHqw==; 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 1d814m-0008IH-KO; Tue, 09 May 2017 09:05:00 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d814k-0008HL-5R for linux-arm-kernel@bombadil.infradead.org; Tue, 09 May 2017 09:04:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Date:Message-ID:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=eLPpdnwoPNl4QvsezFhHSeP7Kh5jBp47/NLlXMwN6tk=; b=HgbY+QZqLDwCUjGePWVMk7DIlm Igf+/ROJui7ij1s87f88Ymape//051ZmfAGUF+gvyPXnH1hzsQPB6LZqjLceM4B59RZE2yqq/+M49 ANuuzIH67JvwqATsMKRfhKYtJtQAIPo4mwJ/AseDtrRY7eUi3mZpAJA1Cb5NFngNB6kh1sx/jR1fm PlI7JpfMhufbFI3t2TY/ILGjPct2f9mOyJHSZOrZ/CY6OM50TOcec7blVnbQ77fUM+nBnWQRvvD2N 63sEXwXvK8xw7ZcS+Br5OYsgR2H+Uc6qPbiN2QvEqtPJr2a2mfwthW9acH5DNti5WsbN2KgMp2pRz xpMVb2UQ==; Received: from mx07-00252a01.pphosted.com ([62.209.51.214]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d814h-0005WW-UD for linux-arm-kernel@lists.infradead.org; Tue, 09 May 2017 09:04:57 +0000 Received: from pps.filterd (m0102628.ppops.net [127.0.0.1]) by mx07-00252a01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v4993bb3024842 for ; Tue, 9 May 2017 10:04:31 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.org; h=to : from : subject : message-id : date : mime-version : content-type : content-transfer-encoding; s=pp; bh=eLPpdnwoPNl4QvsezFhHSeP7Kh5jBp47/NLlXMwN6tk=; b=q9sPpFKBCfCTvSE2hdDHjr4VugsiaNjsMc5yUQDb5kK0cH160kszgkVH1Qfkr6SDYTED CEFC8SN7MaTCz01P1VLWWE0zeZD8U5nq6LIPLs5mY9LkerjmVqSWYRVJaalLFPApE6iY 96UZJ6IfIvkGU/lvrZanXc0TdA3wDa5Ki8padFzDWc6o5rz4a5zLHXNRIFzKlQbbq4H/ geLjtsT2jyvYcARuN3LWEuPH7eujQQm1ZIwQp1jPpkZwGMpeSk6RUE/xRZKMwSOXIhNH kxqtwtq24n4qRvdosMg0SiY/KgdrxUUS3SBjseZBMxFnG31V8KazNmPwz7jUXrn1/Gn0 eg== Received: from mail-wr0-f197.google.com (mail-wr0-f197.google.com [209.85.128.197]) by mx07-00252a01.pphosted.com with ESMTP id 2a93w09fb8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK) for ; Tue, 09 May 2017 10:04:30 +0100 Received: by mail-wr0-f197.google.com with SMTP id z88so17781024wrc.9 for ; Tue, 09 May 2017 02:04:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi-org.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=eLPpdnwoPNl4QvsezFhHSeP7Kh5jBp47/NLlXMwN6tk=; b=U8vqam1YMFh8gK6259mnrYinm3RGaPDovXEpVnXhRzPw4slmlN4uzgdg+c9T7ooolQ ew7ntN3Tvrm7osUUURVwcWT8jRF8O1KePWmsQ6G/0Lppq/aNDq/ElJbdgLTdJcCzjy6k 7P87clM0cT5o/5C5guZlSqRmt/ujt8M+usbuQL2SJR9lxbtJn9+6lCDvbOcelcQUYFDZ N/66NuqT4Vg9ukBQhx6KA0ThLceF6eG0T0ptZR/142KzYBnH+TjDKG00WIhyyDnEfmAA g9graKHJnWNLjjfbjttZoo0QSdhvng1unAS1/V/0aPYjnhqM6GoQooRB4tMoC9DF5jDr 6MEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=eLPpdnwoPNl4QvsezFhHSeP7Kh5jBp47/NLlXMwN6tk=; b=T/nLOwwDseacjJaSnF8GW9mb4voO00312EUL7mYFaS2GWf5pwR2ihwsxsWZPEY30tt dxVL+LcGs9izE3PXpcfLJZq0VwnySgJrQuMTstld3glHdhR2nzN4wrIo1DhxpdcMtyBr QZbqOxELsktQE+K1y7fqYiekNp35DdwswTHFRRsrSQSlyLblj8yHNSAfbcV4P39xp3Yx cFOs8qxozKHZUwUVlbVfZDMbIgZgZBr8xIiV/pZpARFfvZiZOGuKGcEtqhVU5LGMnDUX 6H1yI7mHYGaV7wiKffz3jAIAU80nN92n5f5zNbl8tYmb61ZrczrsuyIKxRXk7viQWnaL CxUw== X-Gm-Message-State: AN3rC/7BuS7nZ2x+UPg95GGLSFi7rvO3iWFRAtTmCsz5ettod3mOmwlX RdiLlM1qHKlEzBI4isvPj4LxwP1FnRqGUeNWUvNHUkGA/AOQBIX5ZZgBf7uqoJitKuCng8s+BXZ vc1xvEzPkGWW3+SvA/elNYvdnDw== X-Received: by 10.223.128.208 with SMTP id 74mr28202548wrl.2.1494320670125; Tue, 09 May 2017 02:04:30 -0700 (PDT) X-Received: by 10.223.128.208 with SMTP id 74mr28202537wrl.2.1494320669946; Tue, 09 May 2017 02:04:29 -0700 (PDT) Received: from ?IPv6:2a00:2381:fdf7:14:e08d:8399:99bd:3b24? ([2a00:2381:fdf7:14:e08d:8399:99bd:3b24]) by smtp.gmail.com with ESMTPSA id b93sm18758205wrd.29.2017.05.09.02.04.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 May 2017 02:04:29 -0700 (PDT) To: Rob Herring , Mark Rutland , Russell King , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org From: Phil Elwell Subject: [PATCH V2] ARM: dts: bcm283x: Reserve first page for firmware Message-ID: Date: Tue, 9 May 2017 10:04:30 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-05-09_07:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1705090047 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170509_050456_170258_2AFF41C1 X-CRM114-Status: GOOD ( 15.45 ) 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: , 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 The Raspberry Pi startup stub files for multi-core BCM27XX 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 --- Changes in V2: - Rebase against linux-next - Drop downstream-only patch arch/arm/boot/dts/bcm283x.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi index a3106aa..6d12c3e8 100644 --- a/arch/arm/boot/dts/bcm283x.dtsi +++ b/arch/arm/boot/dts/bcm283x.dtsi @@ -3,6 +3,8 @@ #include #include +/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.