Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4186801rwi; Wed, 12 Oct 2022 11:54:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7UIcJgLGtem4IcN/4rk6xTz53EYTHHPzB+VixSQHTfKO12NGLxFdhP7CT3p7zEAcf5hgMM X-Received: by 2002:a05:6402:14ce:b0:45c:2c81:e144 with SMTP id f14-20020a05640214ce00b0045c2c81e144mr14415983edx.90.1665600868066; Wed, 12 Oct 2022 11:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665600868; cv=none; d=google.com; s=arc-20160816; b=JjYDIW928wCMN04vU1MtyPnL2QOYuuDm1KExsbU2T6q6c2dNqQTAnJY+WmqHsLsb4A Dis+WIeptefj6QVJWkP4BjjO0HV+rJ6fXXFpRKSHjeSuhSqraM73soI2ojM7oX7e01Sx tNBLKrhd6JWo1KU4Rpy5gUAjpWxszImDSNR8dd3HBqm+ebORespZeb28Rneigwlt1H8Y MiBsDeVvj7VHoChU1erL1bVHoYVKXpjBS6nJlCbjUQPhxTcXXzv3BWmbqz7CBo5sjL5c FbF0XSXoW8rx98nBGCpynvNjECPFNJvLY6qxZ22QzI+uUmS/i1PQHiufWISbCqDjmuvZ wAyw== 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=Meljy89lAYExQlzfDo2HCH7IawAQ8LDvQAy651p5TKE=; b=RNu+qnSGBbPtPUbL4e3jU5CV0SqD6fshZw68A+IFXKtniSVPZe6Jxms/aPRDueXcWE ofleqPL67dbuC957ou11791LwH4dD75tmE2UUVvIhu9MEf7zjsU2TldEuNktq9Mxyk/z Q/mBJDzAm951FmaoYOP1+RP8lE8e7MauxzJ4qcHVp1TrzM2e9k7zLnwgrsUr3J1R9Fd8 XyNPt4eqxuTxG3VrnsGD92c6xryCOKo2tAXg5IdBYiWefQrlLnaCdgBqnzjyFu/fqCdT ovPWE0PSeLQmkeX5f3VaTzdAZykVP/zeDraWwVUx+4IfUqokEEVfota+mZYlqaupC3sF 4vDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=eZymPjEF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l18-20020a056402255200b0045a0e3905e0si18072924edb.577.2022.10.12.11.54.01; Wed, 12 Oct 2022 11:54:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=eZymPjEF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229487AbiJLRq3 (ORCPT + 99 others); Wed, 12 Oct 2022 13:46:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbiJLRq2 (ORCPT ); Wed, 12 Oct 2022 13:46:28 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F2B4C97F4 for ; Wed, 12 Oct 2022 10:46:27 -0700 (PDT) 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: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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