From patchwork Fri May 19 09:46:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Murzin X-Patchwork-Id: 9736823 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 384E6601A1 for ; Fri, 19 May 2017 09:48:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 39238285EC for ; Fri, 19 May 2017 09:48:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2DF19288F8; Fri, 19 May 2017 09:48:35 +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 B6A89285EC for ; Fri, 19 May 2017 09:48:34 +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:References: In-Reply-To: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:List-Owner; bh=PXRz4w07tMmg41+fkRQl4/B+vdYeUiFHHmuo/Kr73vk=; b=gFtrjywwWkrotp0aIMj4D9ulps LWyHtWt4/w0TwXGhtE66YfwPpo3uMMeiY6Q3T5SGlZG9nUc6DmDrNqSmPFTQjECbPobq0JWNhX9Qj 7+k6MLtZ7QjZhYypMdd7nLJH+kmxUhhQzgDmkP3OsGLvmSl1/oEJRY0MrAxm93JsIu9hNHHC2pgcL PICmc0//BzmC339UhMTQp0QoxDodW/BkudNv9YDH2M8MVt3O1wwdQ/XqvEG/0G1SvhhXebKfxGRlZ OumRiZMHHJYUe4pYoRVX1uc6isGsd1wJy1sny4ySf55N41WrF83XxkKux1ailGskVViUg673hUgIN kPJ7A3Dw==; 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 1dBeWP-0005c9-5m; Fri, 19 May 2017 09:48:33 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dBeVS-0004QZ-8L for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2017 09:47:37 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 6A97A1650; Fri, 19 May 2017 02:47:15 -0700 (PDT) Received: from bc-b2-2-14.euhpc.arm.com. (bc-b2-2-14.euhpc.arm.com [10.6.3.58]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 0C9773F23B; Fri, 19 May 2017 02:47:13 -0700 (PDT) From: Vladimir Murzin To: linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH v2 4/7] ARM: NOMMU: Disallow MPU for XIP Date: Fri, 19 May 2017 10:46:43 +0100 Message-Id: <1495187206-14303-5-git-send-email-vladimir.murzin@arm.com> X-Mailer: git-send-email 2.0.0 In-Reply-To: <1495187206-14303-1-git-send-email-vladimir.murzin@arm.com> References: <1495187206-14303-1-git-send-email-vladimir.murzin@arm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170519_024734_580193_EBCF0A9A X-CRM114-Status: UNSURE ( 7.60 ) 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: sza@esh.hu, manabian@gmail.com, linux@armlinux.org.uk, stefan@agner.ch, kbuild-all@01.org, u.kleine-koenig@pengutronix.de, alexandre.torgue@st.com 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 It seems that MPU never worked with XIP, so we just disallow such combination. Signed-off-by: Vladimir Murzin --- arch/arm/Kconfig-nommu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/Kconfig-nommu b/arch/arm/Kconfig-nommu index b757634..6d18395 100644 --- a/arch/arm/Kconfig-nommu +++ b/arch/arm/Kconfig-nommu @@ -52,7 +52,7 @@ config REMAP_VECTORS_TO_RAM config ARM_MPU bool 'Use the ARM v7 PMSA Compliant MPU' - depends on CPU_V7 + depends on !XIP_KERNEL && CPU_V7 default y help Some ARM systems without an MMU have instead a Memory Protection