From patchwork Wed Nov 23 16:07:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Murzin X-Patchwork-Id: 9443705 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 4A0FF600BA for ; Wed, 23 Nov 2016 16:09:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4985E27BFC for ; Wed, 23 Nov 2016 16:09:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3BEE027BFF; Wed, 23 Nov 2016 16:09:45 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AEF0D276D7 for ; Wed, 23 Nov 2016 16:09:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c9a5j-0005Ml-EV; Wed, 23 Nov 2016 16:08:11 +0000 Received: from foss.arm.com ([217.140.101.70]) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c9a5f-00055s-TO for linux-arm-kernel@lists.infradead.org; Wed, 23 Nov 2016 16:08:08 +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 C4F6BC14; Wed, 23 Nov 2016 08:07:46 -0800 (PST) Received: from [10.1.79.0] (e103136-lin.cambridge.arm.com [10.1.79.0]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7B35B3F220; Wed, 23 Nov 2016 08:07:45 -0800 (PST) Subject: Re: [RFC PATCH 11/11] ARM: Allow ARCH_MULTIPLATFORM to be selected for NOMMU To: Afzal Mohammed References: <1479806768-39911-1-git-send-email-vladimir.murzin@arm.com> <1479806768-39911-12-git-send-email-vladimir.murzin@arm.com> <16587553.f9R1mxJih5@wuerfel> <583478FB.4020008@arm.com> <20161123154829.GA2489@afzalpc> From: Vladimir Murzin Message-ID: <5835BEBA.8050905@arm.com> Date: Wed, 23 Nov 2016 16:07:22 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20161123154829.GA2489@afzalpc> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161123_080808_005239_59B8566A X-CRM114-Status: GOOD ( 13.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ryan Mallon , Arnd Bergmann , Tony Lindgren , Russell King , Hartley Sweeten , Thierry Reding , linux-arm-kernel@lists.infradead.org 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 On 23/11/16 15:48, Afzal Mohammed wrote: > Hi, > > On Tue, Nov 22, 2016 at 04:57:31PM +0000, Vladimir Murzin wrote: > >> I used defconfigs > > Which defconfig was used ? > I had a script to traverse config directory, but seems that I messed things up. Now I'm running allmodconfig per Arnd suggestion. > multi_v7_defconfig, MMU & SMP disabled - thus spake the compiler, > > kernel/built-in.o: In function `kimage_free_entry': > memremap.c:(.text+0x4dafc): undefined reference to > `arch_phys_to_idmap_offset' > memremap.c:(.text+0x4db04): undefined reference to > `arch_phys_to_idmap_offset' > kernel/built-in.o: In function `kimage_alloc_page': > memremap.c:(.text+0x4dbc0): undefined reference to > `arch_phys_to_idmap_offset' > memremap.c:(.text+0x4dbc8): undefined reference to > `arch_phys_to_idmap_offset' > memremap.c:(.text+0x4dc1c): undefined reference to > `arch_phys_to_idmap_offset' > kernel/built-in.o:memremap.c:(.text+0x4dc30): more undefined > references to `arch_phys_to_idmap_offset' follow I think this one is fixed by but there are others I'm working on. > > multi_v7_defconfig & MMU disabled, stderr was more verbose and was > unhappy with Kconfig dependencies, > > warning: (SOC_IMX31 && SOC_IMX35 && SOC_VF610 && REALVIEW_DT) selects > SMP_ON_UP which has unmet direct dependencies (SMP && !XIP_KERNEL && > MMU) > warning: (SOC_IMX31 && SOC_IMX35 && SOC_VF610 && REALVIEW_DT) selects > SMP_ON_UP which has unmet direct dependencies (SMP && !XIP_KERNEL && > MMU) These we fixed in 9001214 ("ARM: imx: no need to select SMP_ON_UP explicitly") > > Ulterior motive here is to try !MMU on Cortex A > Thanks for trying it. Just a gentle remainder not to forget to set DRAM_BASE and DRAM_SIZE ;) > Regards > afzal > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 8e7496c..c3349b9 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -2019,7 +2019,7 @@ config XIP_PHYS_ADDR config KEXEC bool "Kexec system call (EXPERIMENTAL)" depends on (!SMP || PM_SLEEP_SMP) - depends on !CPU_V7M + depends on MMU select KEXEC_CORE help kexec is a system call that implements the ability to shutdown your