Received: by 10.213.65.68 with SMTP id h4csp437250imn; Fri, 6 Apr 2018 02:58:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/tf34RmaJfIClHcrmu1c/lQSeD27rqBsksXjCUZh8F5MP67zsPwJ7IjF6zVyK+PPLyER6f X-Received: by 10.98.11.144 with SMTP id 16mr19861476pfl.228.1523008705810; Fri, 06 Apr 2018 02:58:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523008705; cv=none; d=google.com; s=arc-20160816; b=cLwxaNhNk7N0kQDv1VJgxQUcb71Tgm4eWIPp/RzDBPDoR/TCnfZ910LqvKg0JF1z2O SVzGTnEAN+TftQbzKfZBD0ZZXUZidAMcwq5HUbXWFVsNBAwhhdpYdrBZzH8eAK0XNpqi pXSdnUXXmBh50DtpD5o2kwfchqFSeCi3Q+BfA1z5u4J4xBNJ1PeLnINBlwgZJzfwSSlU nS1vsPpzxTMHQoij+mPVS6jLrfzjZym1sCyW+eVV/HqZ1ww+xzBJKToDWNRtz7nsO7D9 D7sAuPYMq1uwHYG6fMUPROuNuvDbdMnG3JmhQEOkHaCoamdG4wpV3HLqtu7iR1AEzQxR Hygw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=eUbnXpuMWvBYlOsDOV9a7gn8ymb8B8QOPvLOVs23lPo=; b=0vLBn4DBErVMtnVJpg5qcUZ3Dnub9oMzXoQWO+OBHLK052XHpWUHMfnYyHJDugXS7a hkC9UISrDAG3jnK5T19ToCgcmrGv7gHraMQ/a91J+ytTEGbyCtYifBTtl7idlESZaLv3 o50VGZt8091okI8gBcg0TpIwAcyyIt5tM8zUFdVf28wyQxxDduH0Y2gN2gmrjIR+g+dh s1pVxq51Dc++78R84vgMH0yMiUeQ65VMQJVyEtLcnwnGj6nN/ie/vdxPyKpmWQUWGImM MHVKIlpmsov6FWSZl8iGCBIhY2oKkfzZ75xtnhnZAhMeFJenXQFIgUnWxyMzipTMc5Oi yxSg== ARC-Authentication-Results: i=1; mx.google.com; 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 j11-v6si7506775plt.472.2018.04.06.02.58.11; Fri, 06 Apr 2018 02:58:25 -0700 (PDT) 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; 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 S1751696AbeDFJ5A (ORCPT + 99 others); Fri, 6 Apr 2018 05:57:00 -0400 Received: from mx2.suse.de ([195.135.220.15]:56412 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751367AbeDFJ47 (ORCPT ); Fri, 6 Apr 2018 05:56:59 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 82F40AFAF; Fri, 6 Apr 2018 09:56:57 +0000 (UTC) Date: Fri, 6 Apr 2018 11:56:56 +0200 From: Michal Hocko To: Russell King - ARM Linux Cc: LKML Subject: Re: arch/arm/kernel/setup.c fails to compile for NOMMU Message-ID: <20180406095656.GJ8286@dhcp22.suse.cz> References: <20170818112402.GB18499@dhcp22.suse.cz> <20170824161741.GX20805@n2100.armlinux.org.uk> <20170825064540.GB25498@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170825064540.GB25498@dhcp22.suse.cz> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 25-08-17 08:45:40, Michal Hocko wrote: > On Thu 24-08-17 17:17:41, Russell King - ARM Linux wrote: > > On Fri, Aug 18, 2017 at 01:24:02PM +0200, Michal Hocko wrote: > > > Hi Russel, > > > I have a battery of configs for compile testing and for some time I've > > > been seeing the following compilation error with nommu config (attached) > > > > > > arch/arm/kernel/setup.c: In function 'reserve_crashkernel': > > > arch/arm/kernel/setup.c:1005:25: error: 'SECTION_SIZE' undeclared (first > > > use in this function) > > > crash_size, SECTION_SIZE); > > > > > > I didn't get to look what is going on here, maybe my config is just too > > > artificial but the primary reason is that SECTION_SIZE is not defined in > > > pgtable-nommu.h. To be honest I am not familiar with nommu very much and > > > it smells like the whole reserve_crashkernel doesn't really make any > > > sense on those configs. Could you have a look what is the best fix > > > please? > > > > Hi, > > > > I suspect that mach-netx has never been tested in nommu configurations > > (ditto for many of the older platforms, which pre-date merging nommu > > support.) > > > > Maybe the best solution is to make these old platforms depend on MMU. > > > > However, I'm wondering whether kexec makes sense for !MMU - that's > > probably something that hasn't been tested and doesn't actually work. > > So maybe another approach would be to make kexec depend on MMU for > > ARM - but I'm afraid I don't really know. > > Yeah, I've disabled KEXEC in my testing config. All I do care about is > to test nommu specific code paths in MM code. > > > I only have very limited nommu experience. > > me too > > So what would you say about the following? It's been some time and it seems this has fallen between cracks. Is this worth puruing or I should just forget about it and drop it on the floor? > --- > From 2707f3bf00181bbc9dcf6a1f287eb7369141e955 Mon Sep 17 00:00:00 2001 > From: Michal Hocko > Date: Fri, 25 Aug 2017 08:40:09 +0200 > Subject: [PATCH] arm: make kexec depend on MMU > > arm nommu config with KEXEC enabled doesn't compile > arch/arm/kernel/setup.c: In function 'reserve_crashkernel': > arch/arm/kernel/setup.c:1005:25: error: 'SECTION_SIZE' undeclared (first > use in this function) > crash_size, SECTION_SIZE); > > since 61603016e212 ("ARM: kexec: fix crashkernel= handling") which is > over one year without anybody noticing. I have only noticed beause of > my testing nommu config which somehow gained CONFIG_KEXEC without > an intention. This suggests that nobody is actually using KEXEC > on nommu ARM configs. It is even a question whether kexec works with > nommu. > > Make KEXEC depend on MMU to make this clear. If somebody wants to enable > there will be probably more things to take care. > > Signed-off-by: Michal Hocko > --- > arch/arm/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index 3f4aa9179337..c8603195d7fc 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -2003,6 +2003,7 @@ 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 > -- > 2.13.2 > > -- > Michal Hocko > SUSE Labs -- Michal Hocko SUSE Labs