Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1529975pxb; Fri, 22 Jan 2021 19:54:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJwqITdKZPMy7GA1mX2fQTQbh/CBb617SiVe2i8k8J9S8l4BjcWpGoR5ZriX/cl/RvNPK1xu X-Received: by 2002:a17:906:c18:: with SMTP id s24mr1395201ejf.419.1611374070594; Fri, 22 Jan 2021 19:54:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611374070; cv=none; d=google.com; s=arc-20160816; b=i8RWIoEFWT4CrXjE7ZhMBTSM0wBw3ed5ZgLMbMTnUj38Ms68QQFNE4PCdqpdkaDLzR f15E/tqvVEBL+bpt2hEQkCspMsUFT6JuFRuToBf7M2wikt18aQddDWXUUbkj1PysTxWt P/gora72Tpt6sUEXFsk+Dr8spbMrx7/EOOawGITk0IFoiwoBmmjIKDnuC115q5LZ03l1 VoExm4cOTMRIveM2k/mdql6TBfQi3r7UkAcbiaHMM07/Dw2ujh50SDt5cyNZQidgMWfM Q22YGQEg92MIItpeH+FOeAs7P6jiLYhXJXEwj0bsZ12XHxYq1Aq1yqD3TpA0mn8l6CEG Dz1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xln2F9zU83moxT6uQSRhk72kBSBZVWL6x1MOWrHDUBE=; b=rEECaAUTZMQsaMppPeol1bp+KwZ0F1P6SxGxpGMSYh2o8Q4nPPK+RuRfrjKXYH9gAn +SFBhO2HnPkjr4vdGVHh8GS14eVIDzjh9gZgKU4yz17EfZukYk2LCOShKY+VqYcOxdTP z1ZMRYTR20Mi50d3xx4LEY7cL1EaF9XlfVxFNyKA4w6L7eJWl9PJIMWQOlPSxiHYFWdL blVSEmh9Fw9NWJaZQQXxuC5EtEL3NBadFnIaKPgImkcEt4avSnKZrXf0B8rdu3YwATst oETZSgh0kAeBFAUJpDHS0jFAQCU3ERvCxgN9NImjH6AhtnVxzyelhTgDJDMiJOYwrnaM h9Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HhVKJrLa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n2si4456913edi.136.2021.01.22.19.54.07; Fri, 22 Jan 2021 19:54:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=HhVKJrLa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726779AbhAWDxX (ORCPT + 99 others); Fri, 22 Jan 2021 22:53:23 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:23744 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726781AbhAWDxR (ORCPT ); Fri, 22 Jan 2021 22:53:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611373910; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=xln2F9zU83moxT6uQSRhk72kBSBZVWL6x1MOWrHDUBE=; b=HhVKJrLaijwl4S+eJ1DxaQJnupOvkAiNJKDWxGilGIboniGbvMSwCnUklZmsZwffAALLKG SbnqMCT/ovwfiPFMlVqL7H1FuY8zBP5ZeocanZqKUlNU8Ufy0wqaQBauD9aC+tNBbJSROM ZfuenFpWEGzxOpwm+Q+si9+ObsdclO4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-510-RCbVKZX0Ppe4N7jxIYoXkA-1; Fri, 22 Jan 2021 22:51:47 -0500 X-MC-Unique: RCbVKZX0Ppe4N7jxIYoXkA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 710698066E6; Sat, 23 Jan 2021 03:51:42 +0000 (UTC) Received: from dhcp-128-65.nay.redhat.com (ovpn-12-54.pek2.redhat.com [10.72.12.54]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3C0E45DA33; Sat, 23 Jan 2021 03:51:29 +0000 (UTC) Date: Sat, 23 Jan 2021 11:51:26 +0800 From: Dave Young To: Saeed Mirzamohammadi Cc: John Donnelly , Guilherme Piccoli , Kairui Song , Geert Uytterhoeven , linux-doc@vger.kernel.org, Catalin Marinas , Bjorn Andersson , "H. Peter Anvin" , Will Deacon , Anson Huang , Jonathan Corbet , the arch/x86 maintainers , Michael Walle , Krzysztof Kozlowski , Ingo Molnar , Vivek Goyal , Arnd Bergmann , Borislav Petkov , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Baoquan He , "Martin K. Petersen" , Randy Dunlap , kexec mailing list , Linux Kernel Mailing List , "# v4 . 16+" , Li Yang , Miguel Ojeda , Vinod Koul , Diego Elio =?iso-8859-1?Q?Petten=F2?= , Olof Johansson , Shawn Guo Subject: Re: [PATCH 1/1] kernel/crash_core.c - Add crashkernel=auto for x86 and ARM Message-ID: <20210123035126.GA6539@dhcp-128-65.nay.redhat.com> References: <20201118232431.21832-1-saeed.mirzamohammadi@oracle.com> <20201123034705.GA5908@dhcp-128-65.nay.redhat.com> <20210122012254.GA3174@dhcp-128-65.nay.redhat.com> <20210122031244.GA4717@dhcp-128-65.nay.redhat.com> <730EBE33-5571-49C0-AF38-08C49736EB70@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <730EBE33-5571-49C0-AF38-08C49736EB70@oracle.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Saeed, On 01/22/21 at 05:14pm, Saeed Mirzamohammadi wrote: > Hi, > > > On Jan 21, 2021, at 7:12 PM, Dave Young wrote: > > > > On 01/22/21 at 09:22am, Dave Young wrote: > >> Hi John, > >> > >> On 01/21/21 at 09:32am, john.p.donnelly@oracle.com wrote: > >>> On 11/22/20 9:47 PM, Dave Young wrote: > >>>> Hi Guilherme, > >>>> On 11/22/20 at 12:32pm, Guilherme Piccoli wrote: > >>>>> Hi Dave and Kairui, thanks for your responses! OK, if that makes sense > >>>>> to you I'm fine with it. I'd just recommend to test recent kernels in > >>>>> multiple distros with the minimum "range" to see if 64M is enough for > >>>>> crashkernel, maybe we'd need to bump that. > >>>> > >>>> Giving the different kernel configs and the different userspace > >>>> initramfs setup it is hard to get an uniform value for all distributions, > >>>> but we can have an interface/kconfig-option for them to provide a value like this patch > >>>> is doing. And it could be improved like Kairui said about some known > >>>> kernel added extra values later, probably some more improvements if > >>>> doable. > >>>> > >>>> Thanks > >>>> Dave > >>>> > >>> > >>> Hi. > >>> > >>> Are we going to move forward with implementing this for X86 and Arm ? > >>> > >>> If other platform maintainers want to include this CONFIG option in their > >>> configuration settings they have a starting point. > >> > >> I would expect this become arch independent. > > > > Clarify a bit, it can be a general config option under arch/Kconfig and > > just put the code in general arch independent part. > > Does this mean that we need to add the option to def_configs in all archs as well? > I think we do not need to add defconfig, something like this will just work? BTW, it should depend on CRASH_CORE instead of CRASH_DUMP, the logic of parsing crashkernel is in kernel/crash_core.c diff --git a/arch/Kconfig b/arch/Kconfig index af14a567b493..fa6efeb52dc5 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -14,6 +14,11 @@ menu "General architecture-dependent options" config CRASH_CORE bool +config CRASH_AUTO_STR + depends on CRASH_CORE + string "Memory reserved for crash kernel" + default "1G-:128M" + ... help text [snip] ... + config KEXEC_CORE select CRASH_CORE bool [...] > Thanks, > Saeed > > > > >> > >> Saeed, Kairui, would any of you like to update the patch? > >> > >>> > >>> Thank you, > >>> > >>> John. > >>> > >>> ( I am not currently on many of the included dist lists in this email, so > >>> hopefully key contributors are included in this exchange ) > >>> > >> > >> Thanks > >> Dave > Thanks Dave