Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1360908ybv; Thu, 6 Feb 2020 02:46:32 -0800 (PST) X-Google-Smtp-Source: APXvYqxn8KysiBoSDdqALhbeWPS+733rwST9WIQuniftomdVkhICTm99mOfzCaqT33TGfHEtobcB X-Received: by 2002:a9d:6d10:: with SMTP id o16mr30776561otp.28.1580985992529; Thu, 06 Feb 2020 02:46:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580985992; cv=none; d=google.com; s=arc-20160816; b=oWvDdvdtkJ19/zHoB+OIp/u71x0L0mpl3Ikz7nL/ICQ3xp6SzYriKT6vhOFTbc0K1x ++anmcwL86nzPmTjjMeB859nHHiOuDkmlYhYQDl1AgHkww626WB4nN+OoZGvsQjYt+i/ PnD8WOKUX52tPksmHqVw4vrTZFa+o1B+sfcbPrry9clQcwbZRIeeAHoWltZRroYy+D9z jpFU03mdp+dm9mZRh/Knqe24XjMarizKx6GbUqsoicmSzCPzOcqO96PijZh0yFf0GLee C95HMKafkaQOglh9c95ML9Um0vNIt+fMAUkkxpD9walJvLQaUM0gN4IYjbBjpkbTz1KR Sv1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=SKRbN1lVdcfmcKhpqqMz5YKRziNfgwD+BaQdX6uHB28=; b=djf54rwpQjBkFHX7YNTRubvMfutKJfn0fVav/hu2UrOuxHpuq0Kov5Bo9CYOQP15yg 5nRJW7MptD0r1SJFxnoOeH2gbK3tygnhduvlTI/xC9yzcAIFQ/QqQAiTbyzupfhu7EbQ +snsgxyqUOosiZy/VkF4AKf4Yu6DRmcZHjQGAXC6JusQwpSDSTqJRAf0BgiFOej+QUie +OjbRjSYAiRm+YwaTt0U8haSzjm2VqrLGqWDS4P9craK4C/0IhZ4J1e39ZoDDzD04FBu 5NB/xPbbwo6PMQxcHLDw+IlUNmNUcM28wHanGEreW8JRzbxuK7imPNmh5DFDZuKFZ9cj zCHA== 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 j71si1641702oib.213.2020.02.06.02.46.20; Thu, 06 Feb 2020 02:46:32 -0800 (PST) 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 S1728258AbgBFKA3 (ORCPT + 99 others); Thu, 6 Feb 2020 05:00:29 -0500 Received: from foss.arm.com ([217.140.110.172]:56630 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727768AbgBFKA3 (ORCPT ); Thu, 6 Feb 2020 05:00:29 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id CF7581FB; Thu, 6 Feb 2020 02:00:28 -0800 (PST) Received: from [10.1.36.209] (e121487-lin.cambridge.arm.com [10.1.36.209]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 315B43F6CF; Thu, 6 Feb 2020 02:00:26 -0800 (PST) Subject: Re: [PATCH] arm: make kexec depend on MMU To: Stefan Agner , linux@armlinux.org.uk Cc: Michal Hocko , arnd@arndb.de, linus.walleij@linaro.org, nsekhar@ti.com, linux-kernel@vger.kernel.org, bgolaszewski@baylibre.com, benjamin.gaignard@linaro.org, mchehab+samsung@kernel.org, armlinux@m.disordat.com, akpm@linux-foundation.org, linux-arm-kernel@lists.infradead.org, Vincenzo Frascino References: <5b595d37283f043df78259221f2b7d18e0cb0ce5.1580942558.git.stefan@agner.ch> From: Vladimir Murzin Message-ID: <14e4919a-0089-c2e7-567c-1e7fcfef9769@arm.com> Date: Thu, 6 Feb 2020 10:00:23 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <5b595d37283f043df78259221f2b7d18e0cb0ce5.1580942558.git.stefan@agner.ch> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/5/20 10:43 PM, Stefan Agner wrote: > From: Michal Hocko > > 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 > Reviewed-by: Stefan Agner > Signed-off-by: Stefan Agner > --- > arch/arm/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index 96dab76da3b3..59ce8943151f 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -1906,6 +1906,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 > Vincenzo sent similar patch [1] some time ago. I prefer his patch since CPU_V7M already imply !MMU. [1] https://lore.kernel.org/linux-arm-kernel/20200110123125.51092-1-vincenzo.frascino@arm.com/T/ Cheers Vladimir