From patchwork Thu Jun 21 15:59:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 932790 Return-Path: X-Original-To: incoming-imx@patchwork.ozlabs.org Delivered-To: patchwork-incoming-imx@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZJs6+rBT"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41BRGj122sz9s2R for ; Fri, 22 Jun 2018 01:59:41 +1000 (AEST) 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=0/r/zUitqVyNEwYM+Uf/y7k5X0URjqJIWiFKxWI+czw=; b=ZJs6+rBTvWwm0k pqJmPwXLl6qJNDJWZHFhBrvsYVD6LTwBwmBWWUorTCme4qaFHQEA32MWRynHRuBIifgz/KIzY+Q6Y lvOjRtps7KPd/dZoGE4c6C84dcOu1mwRoDJ3h1CNY1EoZKmp0hGa7MvIm65jT88uG59+kFEnGbcyK iL2kIDRuFfs0nWk6POVyBArFC2BzixomrmleTBOfGrmtJ46SIP2M3NLZIMqT2xWyoJNY6cxfOaeiQ KGe+GMaxn0evb4QGgQ7TyyqLPqJEKifHI7vndHjA4fSCB52RZSsZpdSCIEmgsU+9HlvOhP+2nH+4u OfVjP0eC7e2Y99mo3Y/g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fW1zk-0004ij-KY; Thu, 21 Jun 2018 15:59:36 +0000 Received: from michel.telenet-ops.be ([2a02:1800:110:4::f00:18]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fW1zd-0004gv-Ov for linux-arm-kernel@lists.infradead.org; Thu, 21 Jun 2018 15:59:33 +0000 Received: from ayla.of.borg ([84.194.111.163]) by michel.telenet-ops.be with bizsmtp id 1Tz71y00o3XaVaC06Tz72i; Thu, 21 Jun 2018 17:59:10 +0200 Received: from rox.of.borg ([192.168.97.57]) by ayla.of.borg with esmtp (Exim 4.86_2) (envelope-from ) id 1fW1zH-0002fs-RM; Thu, 21 Jun 2018 17:59:07 +0200 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1fW1zH-0003LW-Om; Thu, 21 Jun 2018 17:59:07 +0200 From: Geert Uytterhoeven To: Russell King , Greg Ungerer , Chris Brandt , Nicolas Pitre , Arnd Bergmann , Vladimir Murzin , Simon Horman , Magnus Damm Subject: [PATCH] [RFC] arm: Replace "multiple platforms" by "common platform" Date: Thu, 21 Jun 2018 17:59:06 +0200 Message-Id: <20180621155906.12821-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180621_085929_979022_2D8BD24E X-CRM114-Status: GOOD ( 12.16 ) X-Spam-Score: -0.5 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.5 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a02:1800:110:4:0:0:f00:18 listed in] [list.dnswl.org] 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Geert Uytterhoeven , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+incoming-imx=patchwork.ozlabs.org@lists.infradead.org List-Id: linux-imx-kernel.lists.patchwork.ozlabs.org "ARM multiplatform" has actually two meanings:   1. It groups platforms that follow the "ARM multiplatform" software framework,   2. It allows to build a single kernel that can be booted on multiple      platforms. Currently support for XIP and/or NOMMU cannot be enabled on platforms that follow the "ARM multiplatform" framework, without duplicating their machine selection logic under a new Kconfig symbol. As (in theory) all platforms can be used with XIP and/or NOMMU, this is not sustainable. Hence clarify the meaning of ARCH_MULTIPLATFORM: 1. Replace "multiple platforms" by "common platform", as it allows to select one or more platforms adhering to the common framework, 2. Note that a single kernel may not boot on all platforms if XIP or NOMMU is enabled. Signed-off-by: Geert Uytterhoeven --- References: - "[PATCHv4 0/4] arm/versatile: no-MMU support" (http://lists.infradead.org/pipermail/linux-arm-kernel/2018-June/584555.html) - "[PATCH 0/2] ARM: ARMv7 (with MMU) XIP without ARCH_MULTIPLATFORM" (http://lists.infradead.org/pipermail/linux-arm-kernel/2017-February/486835.html) arch/arm/Kconfig | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 54eeb8d00bc62a9f..6b286c018cf748c7 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -329,7 +329,7 @@ choice default ARCH_MULTIPLATFORM if MMU config ARCH_MULTIPLATFORM - bool "Allow multiple platforms to be selected" + bool "Common platforms (\"multiplatform\")" depends on MMU select ARM_HAS_SG_CHAIN select ARM_PATCH_PHYS_VIRT @@ -342,6 +342,13 @@ config ARCH_MULTIPLATFORM select PCI_DOMAINS if PCI select SPARSE_IRQ select USE_OF + help + Support for systems implemented using the common "multiplatform" + framework. + + Unless specialized options depending on intimate platform + details, like XIP or NOMMU, are enabled, this allows to build a + single kernel that boots on multiple platforms. config ARM_SINGLE_ARMV7M bool "ARMv7-M based platforms (Cortex-M0/M3/M4)"