From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B23E1C4332F for ; Wed, 12 Oct 2022 17:46:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 449336B0071; Wed, 12 Oct 2022 13:46:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3F816900002; Wed, 12 Oct 2022 13:46:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2E7906B0074; Wed, 12 Oct 2022 13:46:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 1C2FD6B0071 for ; Wed, 12 Oct 2022 13:46:37 -0400 (EDT) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id C512F1A0464 for ; Wed, 12 Oct 2022 17:46:36 +0000 (UTC) X-FDA: 80013027192.11.05B4061 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by imf10.hostedemail.com (Postfix) with ESMTP id BC9CCC0023 for ; Wed, 12 Oct 2022 17:46:30 +0000 (UTC) Received: from zn.tnic (p200300ea9733e705329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9733:e705:329c:23ff:fea6:a903]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id E58A01EC0230; Wed, 12 Oct 2022 19:46:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1665596782; 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: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=Meljy89lAYExQlzfDo2HCH7IawAQ8LDvQAy651p5TKE=; b=eZymPjEFV/FwQ8Rxc+xKEUGadAuWqwhaK1hnhI9q3UT0JUCatTADf74Y4LJuMtCmnplwLu WT5stDquCviENtkSPoBEDcHALazjwMlGx+sYEsBNZc2KpzhrIxBA6tBl91O1i1n1GT0EKD 9PU6VGgv4181HTIajDnoQoTkcA1qhXo= Date: Wed, 12 Oct 2022 19:46:18 +0200 From: Borislav Petkov To: Baoquan He Cc: Eric DeVolder , Oscar Salvador , Andrew Morton , david@redhat.com, linux-kernel@vger.kernel.org, x86@kernel.org, kexec@lists.infradead.org, ebiederm@xmission.com, dyoung@redhat.com, vgoyal@redhat.com, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, hpa@zytor.com, nramas@linux.microsoft.com, thomas.lendacky@amd.com, robh@kernel.org, efault@gmx.de, rppt@kernel.org, sourabhjain@linux.ibm.com, linux-mm@kvack.org Subject: Re: [PATCH v12 7/7] x86/crash: Add x86 crash hotplug support Message-ID: References: <20220909210509.6286-1-eric.devolder@oracle.com> <20220909210509.6286-8-eric.devolder@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=temperror ("DNS error when getting key") header.d=alien8.de header.s=dkim header.b=eZymPjEF; spf=temperror (imf10.hostedemail.com: error in processing during lookup of bp@alien8.de: DNS error) smtp.mailfrom=bp@alien8.de; dmarc=temperror reason="SPF/DKIM temp error" header.from=alien8.de (policy=temperror) ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1665596795; a=rsa-sha256; cv=none; b=EonyeqqCUNvgN8a9U9IXQ9+0iWupTyMRDV9zqVlpHjsRyV4yjL3Xlbv5Zt8bLB0dDluAOt 0t/tXDdQUuZktdSCUmGNixA4r+qrhn4eKuupgZMNtOpKbAf5Ls+THHCorV78DMPE6kmWmv 3XUnbd7nH9WmmViEbFL7B4WJPoEVzdQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1665596795; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=Meljy89lAYExQlzfDo2HCH7IawAQ8LDvQAy651p5TKE=; b=X4kmnm+J6wmLmZZCDIKfu/o6gtumPVWIsY8vTlhpnV86iyBlfbTqtbAclJhK/sM1pL6uIV 0heXskn/JDiccAT4J2x8Grku7VJAhd3e9Ciw+c75i7dphSIaBLvQeZeDpmdX6VLtNMrnHq DEZUBXL1jB7STz2cFGymE6L5ck3TWl0= X-Rspam-User: Authentication-Results: imf10.hostedemail.com; dkim=temperror ("DNS error when getting key") header.d=alien8.de header.s=dkim header.b=eZymPjEF; spf=temperror (imf10.hostedemail.com: error in processing during lookup of bp@alien8.de: DNS error) smtp.mailfrom=bp@alien8.de; dmarc=temperror reason="SPF/DKIM temp error" header.from=alien8.de (policy=temperror) X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: BC9CCC0023 X-Stat-Signature: mq6qsjjtagojp5xdbgstjz7agdsamms6 X-HE-Tag: 1665596790-629348 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Sat, Oct 08, 2022 at 10:35:14AM +0800, Baoquan He wrote: > Memory hptlug is not limited by a certin or a max number of memory > regions, but limited by how large of the linear mapping range which > physical can be mapped into. Memory hotplug is not limited by some abstract range but by the *actual* possibility of how many DIMM slots on any motherboard can hotplug memory. Certainly not 32K. So you can choose a sane default which covers *all* actual systems out there. > For the Kconfig CRASH_MAX_MEMORY_RANGES Eric added, it's meaningful to > me to set a fixed value which is enough in reality. Yes, exactly. > For extreme testing with special purpose, it could be broken easily, > people need decide by self whether the CONFIG_CRASH_MAX_MEMORY_RANGES > is enlarged or not. I don't want for people to decide on one more thing where they have to go and read a bunch of specs just to know what is a good value. So we should set a sane, *practical* upper limit and simply go with it. Everything else is testing stuff and if you test the kernel, then you can change limits and values and so on as you want to. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette