From patchwork Thu Jul 6 08:50:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Aneesh Kumar K.V" X-Patchwork-Id: 13303370 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 E25B8EB64D9 for ; Thu, 6 Jul 2023 08:51:30 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 61E868D0006; Thu, 6 Jul 2023 04:51:30 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 580488D0001; Thu, 6 Jul 2023 04:51:30 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3D2F98D0006; Thu, 6 Jul 2023 04:51:30 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 2D28C8D0001 for ; Thu, 6 Jul 2023 04:51:30 -0400 (EDT) Received: from smtpin30.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id EAA0A140712 for ; Thu, 6 Jul 2023 08:51:29 +0000 (UTC) X-FDA: 80980568298.30.EDA200C Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf19.hostedemail.com (Postfix) with ESMTP id 81E141A001E for ; Thu, 6 Jul 2023 08:51:27 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=HMsdpxFs; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf19.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1688633487; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=YHKxaKoDkkum4zG8B/XuThKxljGD7Yu7g45RBZ6/RDU=; b=BYttUFsi4jQihpjbyzuV228gJfDYhhvrcXL+QCx8QBuAaWHQ6MvOlNNCHnUemh8cqt3o/3 yAblW8EhdR7bNE7TQ2u/FnGpFTe6DAiAbC5HSifvmnZru5/8RWxurSujPMnYbG+lv/Z5Uj QqEwnLwMZzgOyTszigeJ2BpZ3/GAMP8= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=HMsdpxFs; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf19.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1688633487; a=rsa-sha256; cv=none; b=wfMT3PazFPJN1RfWpxegNqfwmdaYAJHDijGY4L3D9/lmvuG4lSMLyW+/uks9DRxxPbNfCS LQkRMCAVmzWW/eAEUlU3flsXPyNzvRkPmsE2z6XkJx8yTByYsZvXWuNxu5MP9YxkfjAyFC po/xYaLE+TwjVIF31mo5XpIOVYXD4os= Received: from pps.filterd (m0356516.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3668nLT6027172; Thu, 6 Jul 2023 08:51:21 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=YHKxaKoDkkum4zG8B/XuThKxljGD7Yu7g45RBZ6/RDU=; b=HMsdpxFsFRiklaZgH0+9SOTTckV8E0N4oJ81isDgd935Dh2nYVsFppZJVQ7n/cJVB9mZ /4l02GST9PeGku+IdKD/VwirWWjgMj2ct5TmYFAAthCtznMQDj1akuamjDSMZ7nBYSyG 3eeKDWRm7s1A2tCBvsCYmKFQIWwQw65wudFEg+nznfWnqWlA4DFaJRJZtXdYAIYPTofr uW9vjaJi5iXxUgIvT12Vofj5L/E16Z5SuDhreqYNOiVIhwy4m39JqUgPm9UozRq01+mN sqM9E42FDeO9ZmZ/kHomwMfBIv6gr1x042xJA5HoAtLGegXBTgXHslWA3ZqeJRIIiJMy PA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rnted01q6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 08:51:20 +0000 Received: from m0356516.ppops.net (m0356516.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3668nbKP029624; Thu, 6 Jul 2023 08:51:20 GMT Received: from ppma03dal.us.ibm.com (b.bd.3ea9.ip4.static.sl-reverse.com [169.62.189.11]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rnted01pj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 08:51:20 +0000 Received: from pps.filterd (ppma03dal.us.ibm.com [127.0.0.1]) by ppma03dal.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 365KWKaC001784; Thu, 6 Jul 2023 08:51:19 GMT Received: from smtprelay07.wdc07v.mail.ibm.com ([9.208.129.116]) by ppma03dal.us.ibm.com (PPS) with ESMTPS id 3rjbs583ju-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Jul 2023 08:51:19 +0000 Received: from smtpav01.dal12v.mail.ibm.com (smtpav01.dal12v.mail.ibm.com [10.241.53.100]) by smtprelay07.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3668pHca43319640 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 6 Jul 2023 08:51:18 GMT Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5C99C58068; Thu, 6 Jul 2023 08:51:17 +0000 (GMT) Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 818B658057; Thu, 6 Jul 2023 08:51:13 +0000 (GMT) Received: from skywalker.in.ibm.com (unknown [9.109.212.144]) by smtpav01.dal12v.mail.ibm.com (Postfix) with ESMTP; Thu, 6 Jul 2023 08:51:13 +0000 (GMT) From: "Aneesh Kumar K.V" To: linux-mm@kvack.org, akpm@linux-foundation.org, mpe@ellerman.id.au, linuxppc-dev@lists.ozlabs.org, npiggin@gmail.com, christophe.leroy@csgroup.eu Cc: Oscar Salvador , David Hildenbrand , Michal Hocko , Vishal Verma , "Aneesh Kumar K.V" Subject: [PATCH v2 4/5] mm/hotplug: Simplify ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE kconfig Date: Thu, 6 Jul 2023 14:20:40 +0530 Message-ID: <20230706085041.826340-5-aneesh.kumar@linux.ibm.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230706085041.826340-1-aneesh.kumar@linux.ibm.com> References: <20230706085041.826340-1-aneesh.kumar@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: xPBw6_8DAFCu1W6iPCNVJXq3mO4EC6P4 X-Proofpoint-ORIG-GUID: JL5E_zexn2S2Qh-zaein-2edzmrVgcRI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-06_05,2023-07-06_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 phishscore=0 malwarescore=0 mlxlogscore=587 impostorscore=0 bulkscore=0 spamscore=0 clxscore=1015 adultscore=0 priorityscore=1501 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307060075 X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 81E141A001E X-Stat-Signature: mxu7rhgebz84ko4ec77f9w3nns8o3ksm X-Rspam-User: X-HE-Tag: 1688633487-210401 X-HE-Meta: U2FsdGVkX1/7o+v05Qn5cbmVKvJUSVH7tgHAY0rtRMYg0l2LxqaaJEKbU0p+8OFPAIXA9HiIqZ6ZX15mdKKqtJoh6MhPlnN6GU9B5/Hrwzr4kg8iTNXyWsrRING79UywzjtQ5+eXiBBCfFUKXlVKLvUfVxJU7UqaAl8EZCc27JZbs8kxStnMWmGdtgV0C3BSXtS19sMnM3+UVlQmSEe7pqlvg10qZIYlTFgiHeFxWYpll52ibI3C41ajGvu0ljUcjnPsYYg3WyzULHjuzCM8vX/gtE+t0EEx2XhNSc2f/uHrw6lFFztbWXVb9T8d+1u6bY9ayT3rlKG3z4adX0Z5l6CUHowKsYDyjvEoocYWHBbQS37v5XLX3zRheHJQjeZ9SssMm/unn0GpqA/QwNzABxQDt7/GhBFrkV2gkxcxMfFY2iyl/Zru2rfFGKw48wA2oCpm/HbkUQ59nam5BfW+wrFDyKLWQoKUqcGfkXoOtnhRkOep6hbPg18diBctkAoJF11FLbe7BXtWRBw5j/gFuvU898lgNIkZOhce6Qf4znMpYE2ooxNy4PIpCEQtXGhA1vtBy3np5pGYKCpOXfBUB3ZvOZMk1uBTM9ErIQjklUmRtmAYrVlu80fn4RcCe3M7hGLpSGJ79PjuYf51dYrtlbYYjsulhME8NZywrcmaEsg/R01LDvcOh5ylJuiLfN9fK7LAFPRduSfvC7AyLblM3BJUJ3Gw2CoQds/F0OauYCf0YSvfGO17flP6cDv/EHS8/hEwJECsXUssiub+t/5tCfuKXecBxoOrLnETZL9lFDXIWXGZ7tpl4Y8Bp6zMv2WOE12zp22MY1teV/XeUdxlETGprmQrujCAfKI6PdDtKmS8EU9fsI7cAWqk2kCU2/3QPbMSit3nLSJOcX+cyWimpwSzjhIE8Sm33kKBks47r8vLEvuEyjirYdGXMtIldcq6WByWtBP957Vitka+mFZ JIIC2wOk RxwE7p2uUwm/9KUPxm18ULK52JxrGO/QYupCwC+iK7262UNHomWpZRtOk2nJ63Zg7fh4VzfTgXjrF8jIrGGgjLifSodpZhilstPXr3oiIfAOkBRE5evFLPGqjOtAtl8OY50PXlETwvAThUN949cMiH1sD/oxXyIkXPvv62xPqIvFkx+X53e9Vwxq0gWIs37dLASGu91NywpuAt5Igtcziywjv8T2LFgAmMRi7w0xwKqx99MC5g9WdmxN6B5jnMr49dcMcOg3rRDof8kl5L/uDkeklIQ== 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: Instead of adding menu entry with all supported architectures, add mm/Kconfig variable and select the same from supported architectures. No functional change in this patch. Signed-off-by: Aneesh Kumar K.V Acked-by: David Hildenbrand --- arch/arm64/Kconfig | 4 +--- arch/x86/Kconfig | 4 +--- mm/Kconfig | 3 +++ 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 7856c3a3e35a..7e5985c018f8 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -78,6 +78,7 @@ config ARM64 select ARCH_INLINE_SPIN_UNLOCK_IRQ if !PREEMPTION select ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE if !PREEMPTION select ARCH_KEEP_MEMBLOCK + select ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE select ARCH_USE_CMPXCHG_LOCKREF select ARCH_USE_GNU_PROPERTY select ARCH_USE_MEMTEST @@ -346,9 +347,6 @@ config GENERIC_CSUM config GENERIC_CALIBRATE_DELAY def_bool y -config ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE - def_bool y - config SMP def_bool y diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 78224aa76409..d0258e92a8af 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -102,6 +102,7 @@ config X86 select ARCH_HAS_DEBUG_WX select ARCH_HAS_ZONE_DMA_SET if EXPERT select ARCH_HAVE_NMI_SAFE_CMPXCHG + select ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE select ARCH_MIGHT_HAVE_ACPI_PDC if ACPI select ARCH_MIGHT_HAVE_PC_PARPORT select ARCH_MIGHT_HAVE_PC_SERIO @@ -2610,9 +2611,6 @@ config ARCH_HAS_ADD_PAGES def_bool y depends on ARCH_ENABLE_MEMORY_HOTPLUG -config ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE - def_bool y - menu "Power management and ACPI options" config ARCH_HIBERNATION_HEADER diff --git a/mm/Kconfig b/mm/Kconfig index 923bd35f81f2..2f9d28fee75d 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -570,6 +570,9 @@ config MHP_MEMMAP_ON_MEMORY depends on MEMORY_HOTPLUG && SPARSEMEM_VMEMMAP depends on ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE +config ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE + bool + endif # MEMORY_HOTPLUG # Heavily threaded applications may benefit from splitting the mm-wide