From patchwork Tue Jul 18 02:44:04 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: 13316689 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 8B6E9C001DE for ; Tue, 18 Jul 2023 02:44:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id EEB796B0075; Mon, 17 Jul 2023 22:44:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E9C058D0001; Mon, 17 Jul 2023 22:44:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CEEEF6B007B; Mon, 17 Jul 2023 22:44:33 -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 C19116B0075 for ; Mon, 17 Jul 2023 22:44:33 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 921591606CA for ; Tue, 18 Jul 2023 02:44:33 +0000 (UTC) X-FDA: 81023189226.19.9DB4E4F Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf26.hostedemail.com (Postfix) with ESMTP id 3DB26140017 for ; Tue, 18 Jul 2023 02:44:31 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=a1XHBgOL; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf26.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=1689648271; a=rsa-sha256; cv=none; b=R4m5AsVfYIpwVO/9IOuGOHkktozEryMwqBl/hFXMEd475N/9XBQIJtAEYPNs6zdf3vY0Dz RsYxeGV0JPz5cRsqffALnujeyg7vxHlZm2YjBA/xjM77wDA8x7Z300cznq4tXOVUTAXEA9 YQ0N/5lU96dDd1LnGFJ4gQC7GZpk6cs= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=a1XHBgOL; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf26.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=1689648271; 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=j29IKbCWlUhdnBH/cY4p5rzuLemg+tF2hTex1PFnhYg=; b=0o6DT8JfUXJPWRvFrMQpM1iGbPeBB++VAQIJMSkXFDLMoyvXe1P9ewxGxYCs+2RmdR2YZo FlB4gb7fCUhcYNJIJjprhyarIz6WOaSfNW6IKE8rhXA7EfZhMUfLLpQwAOsLMl+/CtsLUQ 8Q+3LZm+Nicx+wFqomRTvNSn1alyM0M= 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 36I2ePF9012292; Tue, 18 Jul 2023 02:44:25 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=j29IKbCWlUhdnBH/cY4p5rzuLemg+tF2hTex1PFnhYg=; b=a1XHBgOLVsp3owDM0Ux4zj00G0sU+za9ovFkH1QfM5Vn+/tIkMv/WuSr7kThZCygX6zC iqJDAQxJ1wesoqrP6TuTRzSezS2FA20fBsRu13dby12epXM3Vbi7jPDwzNjjj7TDhLGI MM2hHo2pxUQv5xXI2/r4+AJoxzJ7H+POyLSx+GWj/MMdF4ApxVjUdHr7fakU88J87YGI /4D76ziJP41j2I5l3+jkD2WcRPGJ07Jl3zXz2pBT9XkYzjMLiNtTeX7Uy0XdsOE1avxM 9kTO6n6KErmch5jH4yFxTumNmUIe8KGB68jrzsrsG1qsyOg5s0EFbRug16FPEbE8+Xwb iQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rwhwhg8sr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Jul 2023 02:44:24 +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 36I2iNsU021816; Tue, 18 Jul 2023 02:44:24 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rwhwhg8sf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Jul 2023 02:44:23 +0000 Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36HK25A0030570; Tue, 18 Jul 2023 02:44:23 GMT Received: from smtprelay04.dal12v.mail.ibm.com ([172.16.1.6]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3rv79jhhj5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Jul 2023 02:44:23 +0000 Received: from smtpav02.dal12v.mail.ibm.com (smtpav02.dal12v.mail.ibm.com [10.241.53.101]) by smtprelay04.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36I2iMGb21562002 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Jul 2023 02:44:22 GMT Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 545D45805F; Tue, 18 Jul 2023 02:44:22 +0000 (GMT) Received: from smtpav02.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3EA0658051; Tue, 18 Jul 2023 02:44:18 +0000 (GMT) Received: from skywalker.ibmuc.com (unknown [9.43.62.199]) by smtpav02.dal12v.mail.ibm.com (Postfix) with ESMTP; Tue, 18 Jul 2023 02:44:17 +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 v4 1/6] mm/hotplug: Simplify ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE kconfig Date: Tue, 18 Jul 2023 08:14:04 +0530 Message-ID: <20230718024409.95742-2-aneesh.kumar@linux.ibm.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230718024409.95742-1-aneesh.kumar@linux.ibm.com> References: <20230718024409.95742-1-aneesh.kumar@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: ogiL3HqwUQQPAuM12j1l9HP9aVH4WLEi X-Proofpoint-ORIG-GUID: mjI6BMUL8WFpSWDsybOGjIf3rNJlkN_B 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-17_15,2023-07-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 priorityscore=1501 spamscore=0 mlxlogscore=697 impostorscore=0 lowpriorityscore=0 clxscore=1015 adultscore=0 mlxscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307180022 X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 3DB26140017 X-Stat-Signature: 364zxa11p84a54ooewfxeymfue9iz4fb X-HE-Tag: 1689648271-473540 X-HE-Meta: U2FsdGVkX1/onKp1O3RShuFk2rpWZ4ONmYe1l8TYLNYv8yfQfYi/FNiAfS+BzSdih3ZwR35jkrkkbyN6t1Eg9XrbSchLp7SpFho6+bYCX7/j5spfv54ngwx7Kyf48A+YOxkB0OTpBylSD5WGdO6wHPsyTqDGI3ySUR3Dl326+dMko28FMJn4QYclDDqz/zee4R2YBLumtog9q10g+LnBhd8DJcSBMmdD/8yiwy7djTzvd1J4F2DybL/u5A5bnBtx6QQy85ZlNOqRNI9wtAie35b2xcBK3RL9YCOh7FXP+spcoAXGSb13x3Jo8anB+3CiC92+t6PfRC2ZrgiFA/uxuHjg9gVoqLmFBMKSn4SBflMZpGoRG0MjyzW87TCVfLu4IsPnGaZZHBqcC46uVsi3j6qNVM0SYr3KIU0JgW+oIPcQXTdOIJetrBkPgSOP+o6vA+qSsagttAJVf87FfnyV0Gym1PrXk7nURWTDjlyuGay5Eq0EdeRpROFeeEDvN21oiH5m//tGO450uIl6iYoRb6apCiZdbBt+/IxvQO+uu4/Gj+u62Jpl30dGgiV0NSNNfjyRgijR8tETEQPmN9nlWEInvfFl1HGJR0SKQZ3hpWiAAYfWeq7GSzoiOSI/wCJy0ia0RTXPkjuJ1b9tFZX1Awyyac8aeBcdq4mB5mbve9baOPvFsBtVHvCmdvmNISKZzN3/tqIEfB0wKIMvG9wEBaLboplugCRxmv5YakEN7as4S5ouDoBZK9s5NlWtztl0+QdDn2cJ1Mn7PwqDw+l9wSHrKAQsEETOeU10WpUvGzC99ODi6ZMgcJb+UoldhlOjz0m226KKiMKNWjkm+MwFIhORD9ykHoTP6Zvw4kbc+ODajDZg+bXyMTaxj4WkJusJLgKruRUVrVMyCQuhChurBXo4rLcBwfPTwEFV7q5yfD3W5dbZzf31QoE4BZmMtuaIgpsJkXgrEYGq34G5stf HhtyvIxH otGiGA25Ux9034S2lpD0qnzaQisTwJx1JA6HRo7f1wRG3Wz29+64Havq6W/q75OGUxrSt7AmLmGYRZQMXIAfD2GZNg4kF4ge7okl/C3NHLhtAVMSDtqRdP4LFQyEEFESwasqx0KtGB8HzXQeNWKG76fkZwxUbaTdMyV+j6eEw5xz3o7tpswKtFGf5oskjIkjOLs6HwTIK1gK+ws7dEgC3UZgm2A== 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. Acked-by: David Hildenbrand 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 a2511b30d0f6..20245bd72b8f 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 @@ -348,9 +349,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..932349271e28 100644 --- a/mm/Kconfig +++ b/mm/Kconfig @@ -572,6 +572,9 @@ config MHP_MEMMAP_ON_MEMORY endif # MEMORY_HOTPLUG +config ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE + bool + # Heavily threaded applications may benefit from splitting the mm-wide # page_table_lock, so that faults on different parts of the user address # space can be handled with less contention: split it at this NR_CPUS.