From patchwork Mon Jun 26 10:22:11 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: 13292605 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 BE6C1EB64DA for ; Mon, 26 Jun 2023 10:22:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2AC338D0007; Mon, 26 Jun 2023 06:22:51 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 25C7B8D0001; Mon, 26 Jun 2023 06:22:51 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0FE248D0007; Mon, 26 Jun 2023 06:22:51 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 0203A8D0001 for ; Mon, 26 Jun 2023 06:22:50 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id D13C71A064E for ; Mon, 26 Jun 2023 10:22:50 +0000 (UTC) X-FDA: 80944510500.16.D1C23C8 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf05.hostedemail.com (Postfix) with ESMTP id 7C70A100006 for ; Mon, 26 Jun 2023 10:22:48 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=F28rI3rV; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf05.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=1687774968; 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=FNKFW8wpqigijfCWM3rq6GFS2HxCr8bUTxnaXbps4Mg=; b=vEggBZDlM42pMwJAikW1BN1z6xtbjOf4dviC6rbeY7e80OoF66l7Xy4qePRXYXnR08JmDu v58rEwsUUeWimbru/ckYZUmUMjKyQan/s1ZDUwSAdYccPrWNpML7mFzEj+G24TotHvXg8R t3pu7uBkj+173Zao3rkW6DV/Akb2Ef8= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=F28rI3rV; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf05.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=1687774968; a=rsa-sha256; cv=none; b=4SCV/NOrN0ZMHk6aAch93B8Z8e/Z9MkU2F3g15LAa65cXKO3gtRizzIZ3ZXNf6AtGF1XOs v3Y5T6ge6kjPlc+CB13Z9yGr+7xb7Lqqwo/6ma4SbLV2eWeHJ/t/b48+/+IOSRA03t2UP7 zc+oQshXsi20qSN8LzW4hn9HaoJGK0M= Received: from pps.filterd (m0353723.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35QAFtmO004017; Mon, 26 Jun 2023 10:22:41 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=FNKFW8wpqigijfCWM3rq6GFS2HxCr8bUTxnaXbps4Mg=; b=F28rI3rVSMQswrNHAjTiH+3esxHT5jBfbkgfVircyMShJG6J4z9G9JVc6JeDki/9GfQk NlnIIVRsLWYxP7zc3piIzrOngUtktPd9qWgaodBlNFMCezumb0BFAB8kwfmF9H/E5myf 5uSnwx0gkdeP1CZBcu9C/kHqmEfRJ0uLJZzZCs+0yed+0nd/eGoR9gQ5tdgjW/xdtJAH XyU2YjvQmq6b+ivCh9NiYm4/gUMMTN3rpuH2CH9Te5o1xnGteIhPk6uTYeyJOpKEzDwj w7N829ZzioOyXw8AxisoDZrlAX9uIosOAgklaW3OiiQYTMXprWlvv6DGzDOsgQ0KZ7qx QA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rf8s3891h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Jun 2023 10:22:41 +0000 Received: from m0353723.ppops.net (m0353723.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 35QAG5x6004786; Mon, 26 Jun 2023 10:22:40 GMT Received: from ppma05wdc.us.ibm.com (1b.90.2fa9.ip4.static.sl-reverse.com [169.47.144.27]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rf8s3891a-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Jun 2023 10:22:40 +0000 Received: from pps.filterd (ppma05wdc.us.ibm.com [127.0.0.1]) by ppma05wdc.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 35Q860SQ005910; Mon, 26 Jun 2023 10:22:40 GMT Received: from smtprelay07.wdc07v.mail.ibm.com ([9.208.129.116]) by ppma05wdc.us.ibm.com (PPS) with ESMTPS id 3rdr45je4g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Jun 2023 10:22:39 +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 35QAMc7S64946600 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Jun 2023 10:22:38 GMT Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 89E885805D; Mon, 26 Jun 2023 10:22:38 +0000 (GMT) Received: from smtpav01.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8B86A58057; Mon, 26 Jun 2023 10:22:34 +0000 (GMT) Received: from skywalker.ibmuc.com (unknown [9.43.116.175]) by smtpav01.dal12v.mail.ibm.com (Postfix) with ESMTP; Mon, 26 Jun 2023 10:22:34 +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: [RFC PATCH 4/5] mm/hotplug: Simplify ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE kconfig Date: Mon, 26 Jun 2023 15:52:11 +0530 Message-ID: <20230626102212.119919-5-aneesh.kumar@linux.ibm.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230626102212.119919-1-aneesh.kumar@linux.ibm.com> References: <20230626102212.119919-1-aneesh.kumar@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: SHxV05aMKYlcglcpEURiQCZBI62mDQhi X-Proofpoint-GUID: WUlkGdbUQF-vEJOX82TZaIZwuFJyTfKA 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-06-26_06,2023-06-22_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxlogscore=472 spamscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 clxscore=1015 malwarescore=0 impostorscore=0 priorityscore=1501 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306260091 X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 7C70A100006 X-Stat-Signature: i1rx46hynub67zb7o1w6hype711mfqi5 X-HE-Tag: 1687774968-876592 X-HE-Meta: U2FsdGVkX1+oYuyqocEBU+DPEuxmpCQdXOi9g2UYwfXg+v4sTKUs+gQjl1PRMjMXOQXydLEVmQO7E93vcprCHXPgq6x6uaGUPdQ1/rCh/B5I9xUsD4kBD4Tk2JF0lDfaS6/YoouhkZ1s3Twm6eE2Y5tKM/pxLv/tAls2MqL3cJ04a1FWQTRGfTdB5tffz3sN9LrsxkZpBarWGxP43OKokz0B/tm1bGx9yeKiQ6n46h0mEJhho/zlMPIOXpuvkpchjYxwy636K5OSyU4WZ16uLQeZ2UtcQ10Wkf4OdoiDZ4bp19wAx1sYjl80Hw8i/eLgdKByJfwJtSXsEe1Jtht7s6k2gAL57uJgcivQjxsxST+hE5TzOTvMYeXI31JCqeSZGhrvxqWFK2+vfcY82la/bxO5GH9bQgf6pFoxQO9JAFo/xspgTTXvwONDbN2AqbEXTm6K5DkFBXRJtOe1WVyk7OwzBRGujNp+aFj/bPAEwISgYp9UYbhe75ydjsLf3o+crls5wKh8GOJt58gVm9J2hCWhwahzUc6TmmLEZwcGndLIUT8TVq8VXk5leDJ4cjRKtICnXRVVgriswo6zj7YJqdlX1hCnIm6niht9Rn2OoiC8p90DkIv0imGTD36xjqU30QOQ3ihrkjip+eLDoAECr/Gr/zWGRTSqHXA/Z6y8GZiER6nnZAP4lVNCWdHXtjrQPypaLZ3kB5ZXJfh5UzOszR2RpkGcr6OZY9E5kfCd0oFcgTSAq2Rh4cpFwB5WRU4RGVymFriU+UOEsKd2+PUHdvSuGbFJRxoGmB/kZ9uf3y3BB6qVPNQyYcqKmXnKS4rBE4RF7gBZDS/4NlAFUgPGs8zSc2O1U/E5e0jeOMLd8Rhodno/QC88pO7T+HrcaHgZhbpdgqQmfUfueceLLLGobyIv481Ub5jvxZT0WZzKy253jyY4GF0ROssjM+a4WK++k0BcSrbo8ypFd5Vuzjf MEIWf9/Q RjvHitDUMP8ZZHI2SYEScezpaR+heC0io/c7aDaKH5BcUykJDaFybVMyHUiN9hcjCBW58mLezZC/iGfIw9ugfTeiJzvUS+290CsVyNRjFpN4KS0wMO3gGkNo8PuPsRksYc5w+KGGtGfwuNxr8Gmc9iLx7rF7y/7W9U/hF03rImO30OZikpocqiaOxs2XIYdyjAoez 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 --- 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 343e1e1cae10..20e909dac7ab 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 @@ -338,9 +339,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 eb383960b6ee..c77c881e35da 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -101,6 +101,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 @@ -2656,9 +2657,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 7b388c10baab..4e5862c001e4 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -544,6 +544,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