From patchwork Tue Jul 11 04:48:27 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: 13308120 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 6F64FEB64DC for ; Tue, 11 Jul 2023 04:49:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0AC898E0002; Tue, 11 Jul 2023 00:49:07 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 05CDE8D0001; Tue, 11 Jul 2023 00:49:07 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E40028E0002; Tue, 11 Jul 2023 00:49:06 -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 D13628D0001 for ; Tue, 11 Jul 2023 00:49:06 -0400 (EDT) Received: from smtpin23.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 9D677802C4 for ; Tue, 11 Jul 2023 04:49:06 +0000 (UTC) X-FDA: 80998101492.23.72B21B9 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf05.hostedemail.com (Postfix) with ESMTP id 38C9F10000B for ; Tue, 11 Jul 2023 04:49:03 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=BG9+CEHK; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf05.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.156.1 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=1689050944; 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=AeSXwfsD9R/AsJzWBWx+hhyUJnbVc54scy/sJAAqljM=; b=YigDr7gELzg/kOD1qPCs4Uz1RMO3uN+1t7m3jfSWetlATNxqr8vs+1zfzm2mF15d5UtCeI b+1+NcE0d1ZsxQ8QSrlnAYvOCzzbdXxZhWCD1y6jc7/Q7JmabfU6lqCjYRj2i7xTDPKu1N PUE1HBfT8+t4aqtmac2oCNtHEb8IRMM= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=BG9+CEHK; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf05.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.156.1 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1689050944; a=rsa-sha256; cv=none; b=Z5mGyGIudmIke+JWd1E3SzkV+ROUWPfeA/ubG+32XeDGP5bQbnC5nGTJajYWYwNhkpxPeR dh5rX/W67K1rzv7b/aNBC/KrC2xjtwu2qkjL7QsFSsxr3GcMsJmb7bNx2Pn5DzPUNM9HCJ Nty5jm22C2oGdxf4Q752q+h2VjYmPWQ= Received: from pps.filterd (m0353726.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36B4cNCq016693; Tue, 11 Jul 2023 04:48:57 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=AeSXwfsD9R/AsJzWBWx+hhyUJnbVc54scy/sJAAqljM=; b=BG9+CEHKYKnpiXRcdJMdYkMLdpfog0TGO9biKKeP0uRwaVDqeqR1dBE4/38XkbRhJPOE YyXx34WZ8+xgl/CkUYZ58IAgA9BJPlMopAw8CmiMIt+TYvI7w46uOd+4A1epxLSOppGB mxL7J8Npx3bS7MwGC913ZIeVwFFPNXYvxjD7Yvt5fQBX/FDO+yVuyL6DsU+DH7Jil8IH HqbFipAoi/RBg4RjG4H5o9QgSJYFbIu8UU+kBAzqe+U57XOx/vlT8Ecr6m/5JTrWyxC2 JQBNhBTuoJPkVBCMQzvE3SHZmyhQDeN6Uff3FX3yR8rCwe2MYTfQv8T9lTrn25R6V6nU Pg== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rryysgg53-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Jul 2023 04:48:57 +0000 Received: from m0353726.ppops.net (m0353726.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 36B4d3dL019940; Tue, 11 Jul 2023 04:48:56 GMT Received: from ppma02wdc.us.ibm.com (aa.5b.37a9.ip4.static.sl-reverse.com [169.55.91.170]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3rryysgg4g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Jul 2023 04:48:56 +0000 Received: from pps.filterd (ppma02wdc.us.ibm.com [127.0.0.1]) by ppma02wdc.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 36B1531v027311; Tue, 11 Jul 2023 04:48:55 GMT Received: from smtprelay07.wdc07v.mail.ibm.com ([9.208.129.116]) by ppma02wdc.us.ibm.com (PPS) with ESMTPS id 3rpye654tu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Jul 2023 04:48:55 +0000 Received: from smtpav01.wdc07v.mail.ibm.com (smtpav01.wdc07v.mail.ibm.com [10.39.53.228]) by smtprelay07.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 36B4msdG41812418 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 11 Jul 2023 04:48:54 GMT Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4860B5804B; Tue, 11 Jul 2023 04:48:54 +0000 (GMT) Received: from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8E18D58059; Tue, 11 Jul 2023 04:48:49 +0000 (GMT) Received: from skywalker.ibmuc.com (unknown [9.43.86.43]) by smtpav01.wdc07v.mail.ibm.com (Postfix) with ESMTP; Tue, 11 Jul 2023 04:48:48 +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 v3 1/7] mm/hotplug: Simplify ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE kconfig Date: Tue, 11 Jul 2023 10:18:27 +0530 Message-ID: <20230711044834.72809-2-aneesh.kumar@linux.ibm.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230711044834.72809-1-aneesh.kumar@linux.ibm.com> References: <20230711044834.72809-1-aneesh.kumar@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: xFXDG9NbJf4RJi01_1mNrozQ1gBXyn7t X-Proofpoint-ORIG-GUID: q9R3GYB00ZOcqzaUDUdfGuvVdo9VSWLh 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-11_02,2023-07-06_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 lowpriorityscore=0 clxscore=1015 mlxlogscore=731 bulkscore=0 adultscore=0 spamscore=0 priorityscore=1501 malwarescore=0 impostorscore=0 phishscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2307110040 X-Rspamd-Queue-Id: 38C9F10000B X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: 57yaewynyzu5iasnekf1wr78qmsab867 X-HE-Tag: 1689050943-486297 X-HE-Meta: U2FsdGVkX1/nJbhFM9LtlP3xWZQwyAD933LtAFPXHNRv9GHhBAHHvXPvPqPW6yxfd/8eyqGXzYrjT5JSE78V4jHUm/6NSeRLAemih+N4bfuaWp3c+OwWMGkNFwg1RDWdSalTt12MUS3rbSa8gHNdZpZ9G3H+fRaZajnGhKmx9aVL5hi68N6B77jmty8QTpSnhSyXmi+DNTNAxOv5tx1iJPkVUNnRJddp4vf0PyQbXS+kDuVKL2VvPxWtJ2wM1LlfFAmZKozqmo5vbxa5d4xc+YltiuU0oEHSWLCRhEEFDyv+2X/+bHSmxw7DESKjn6wTfZMUPlWLW9EDXVpPzgnh2NKx0oSswyskCWDPRq/kuba43NC8mu6zSYK3KydprtWRkgvYC5+uPS3VPrPURqsP1DmGAEeQJZcy/BvSqJIf6T7mbZKb0AAXn9aWOSeUpjG6zn3BgRvF/+6QfmliwXqHWsFOku2glPZlq1vG5zPjduMTrbGuVi1pNcI6ww/5hx++4zMtylSzAq0zv+yUAncJh1kr6svf2GuTFThIj5T8KTqJXzxYvJHGSfKUSTp9iKFKpO8Z1ZHq3+DPeffI78O0NZRGVl3a3wvo2VGemiv2u33cTzg0SAObBJaQstZIO71KU+QBYP+xt4HJ6JbbZv67Kzj7pPW8ymg+3+Qi2xO0dn5/EgGTSshFLrj7Fe6jOkf1GY5vlk0hkvBB4sZB7nSHT1yVyEaNL8afUFWtbh9ikFgO2OGXw6rKM6QR3SnPrrG7Bf+mgbRuBJgLAqtJd9LFRLtfQ9carWEkB04B38VtzOML4pC5aYjRXwuTq5CaJCDFO42OoefwDWGJdZwGCyJQAONf2JKdX3N3OcSIhV2LoqHsodBDnConzuOls7ynz9wFqiyCZUb+2iHYGuNgE4AwIh8baRE+u+PWuz6UUNJ/TxqSlBrMaOOJVaed0d8vOJf7WokASQVirWIiQufsFYV zKpo3237 5pacBaq829zuyKssEh93fhzUSVTK+aHvZ8Tnhi92+HqwRUIhdxo+3yOmhtUvpY9HJpSzj8CxtAZZnxz1AMZGK7+zU4wQ6Mv1447lt137sIv5A2eNsqReoZdZdUwP7JciAzPxxISB+iPsqY/lxYres44C39K+HxA2YaAu3LTzcKB8oJv4qzGkdQhDvMd51bwBYta+n7l4qlgDGNC4FbkE1lIjD2g== 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 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..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.