From patchwork Mon Jan 8 13:27:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumanth Korikkar X-Patchwork-Id: 13513478 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 A5B0FC47079 for ; Mon, 8 Jan 2024 13:28:11 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 12D286B007E; Mon, 8 Jan 2024 08:28:11 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 0B6A16B0080; Mon, 8 Jan 2024 08:28:11 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E98826B0081; Mon, 8 Jan 2024 08:28:10 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id D6C4B6B007E for ; Mon, 8 Jan 2024 08:28:10 -0500 (EST) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id AD1D71A07ED for ; Mon, 8 Jan 2024 13:28:10 +0000 (UTC) X-FDA: 81656222340.29.05BAAC5 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by imf03.hostedemail.com (Postfix) with ESMTP id 604CF2000A for ; Mon, 8 Jan 2024 13:28:08 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=m29gQuog; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf03.hostedemail.com: domain of sumanthk@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=sumanthk@linux.ibm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1704720488; 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=bZr0uh2TIhBQHlP6zzh6imGygSvSmLj2O03i+ZWmVIw=; b=dLMB0HGPZKxBq4jRqlPjfA+srWIG8Tk4ZKC5WtNkB4dTQ3jLJbMnRoJWJJUr3TRXRL3l0O fOj+UHSeSLkHYG00usXHHk6Me40jYxdqaAuE6xbWrieWYVprcFjpdFEaBmDMTejwj+ThEq B1wB02bsP88pF2eI3Qu+bd2ThqU+xKA= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=m29gQuog; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf03.hostedemail.com: domain of sumanthk@linux.ibm.com designates 148.163.158.5 as permitted sender) smtp.mailfrom=sumanthk@linux.ibm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1704720488; a=rsa-sha256; cv=none; b=Vj1YABcuY+kBJfkM+abcNXFW0LH2yVJzY8eYHOBxQP8RvshgdXN86P8CkDf/oe51T7ZqtS VWPBgiXVms8hxGbfNpMhyfmy8WrgcEZD9YPuZN2sG7wv0DNntbPbfOwHF+yhpFikjXl8lG DJQECqoib3myukrYHltmshVJF3HeMus= Received: from pps.filterd (m0353725.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 408CawAA030836; Mon, 8 Jan 2024 13:28:05 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=bZr0uh2TIhBQHlP6zzh6imGygSvSmLj2O03i+ZWmVIw=; b=m29gQuogVahBtnQlr85NavufcHM2iKdugqCWdypLg4pYi59nwzCKn2HMlAxwj2BuULX6 8qX5q9X7WK9u+xeMJn2JHD8CxyOXvYGAb1Qi8DfLRnRMyWusFRjPQqBlMApDEUXjTrTB Vtfp0/I7gyAiEOcEb9HkNHmGGOUgCXkmzixPGrvmbVB2RZPZEDKHtHFdlv96PRxPkUS6 VJ5ltwLwbJf2L5uLWkHYQOo5OLgnKcH84wuvuAyiPq0HvVZKJ/hnyC5u0wBM+o40fMMB uKPYovImJL3aNOe5sihgv5b11hcS5U4BmADfsr6EGXH/TJwZsWrLNlVMMJi8S4V93hGd qQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3vg9jjksu7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 Jan 2024 13:28:05 +0000 Received: from m0353725.ppops.net (m0353725.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 408ClbZi005423; Mon, 8 Jan 2024 13:28:04 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3vg9jjkstm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 Jan 2024 13:28:04 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 408CbnCm022882; Mon, 8 Jan 2024 13:28:03 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3vfj6n82ka-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 08 Jan 2024 13:28:03 +0000 Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 408DS0ix5833280 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 8 Jan 2024 13:28:00 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2E25420074; Mon, 8 Jan 2024 13:28:00 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BE32D20063; Mon, 8 Jan 2024 13:27:59 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTP; Mon, 8 Jan 2024 13:27:59 +0000 (GMT) From: Sumanth Korikkar To: linux-mm , Andrew Morton , David Hildenbrand Cc: Oscar Salvador , Michal Hocko , "Aneesh Kumar K.V" , Anshuman Khandual , Gerald Schaefer , Alexander Gordeev , Heiko Carstens , Vasily Gorbik , linux-s390 , LKML , Sumanth Korikkar Subject: [PATCH v6 5/5] s390: enable MHP_MEMMAP_ON_MEMORY Date: Mon, 8 Jan 2024 14:27:47 +0100 Message-Id: <20240108132747.3238763-6-sumanthk@linux.ibm.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240108132747.3238763-1-sumanthk@linux.ibm.com> References: <20240108132747.3238763-1-sumanthk@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: _DsiHH1N_Ho235Pge5b6vYyYryhMe_2h X-Proofpoint-GUID: tkx2ppUorBAaLtwggV-Cge4-INFHU70C X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-08_04,2024-01-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxlogscore=743 spamscore=0 mlxscore=0 clxscore=1015 bulkscore=0 malwarescore=0 impostorscore=0 suspectscore=0 phishscore=0 lowpriorityscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401080115 X-Rspamd-Queue-Id: 604CF2000A X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: iddb4or6a5wumz6of8sk8w9cdudq7mt4 X-HE-Tag: 1704720488-636612 X-HE-Meta: U2FsdGVkX18S0HdXJmOCsEciZ746iKc9R11YTRGc1XWm9teA5w/jKa4tNja+X/LjkHWb6ej2MaT0v0ykBisWCjOzt9Gez16nNqecvlr/kZrAepDzEwVNDtrJI+reJHkyziQrDND+U5cmq3W97w/H9W4Sl/vfUxdYmCvMHmvJu5iFOzuqOiarxuyzQBvDzZRVuFxZX3yVNcaS4a3OGQRgaCAg+jpLNF0SYBPHzzI+9K0q4EP/JNu2NM6ISYtAiq/EsIUpJkGwvJ4xN0NY50Yvr/pMaLSKvFNkrcCQq3tX7xCenQGyNbDos86caX5z6XNQegQGRLksFLxLcPgzNKvYbuMF6nTTVggJ5/LDj0lkBP6UYg2+YUBVKmH1LoCW0rT9JOjuZ6+aito59g2C1ndaWDKBYHtMdH8sLuKu5lFn8XI8zi9ILVG10oVOK/iMy1yeTrFiZQf64h28+2qTZ3Cmmb/Kd5n9FX3Zw+YIfrArBypERnok196jbVvTMYQVMWku0EOG83d9m+i1i4Un3whIne3ZkYh2gXMI0rdUoFIJwV3MznX5j1BCATHwXAj0bis8H8e2AzZEqkTZlB/53LBchCyYeuY6wyfiOqgeaeaJrPCdi4XdhSbj8rT+McVG1SoybrLznxxUU3h95rgDPKsnj2L+RQe+Tq3zrCPPqGDH+vAnEmGD5LwN+ckcsJvGsq2UBGWUIxArFXenE3q85BmbbycbQEdaBzB9w7s+VBeL2WWXS7fPiv9o3NV2jr9ZCyw/yrlJXn5BexX9ZdYHb1VWApyx4Fxw+3f6qX9C1bjzeTb4WzUIbVCjVHE6swcw819T4GDETzL/NrWsh+OFsTM/XXRq3Nzp8/7dNG5ChYcS249anNE1VLTVHCpbCu9OstHOwYtglKSOkWVjXR8c3bxkeuknF0U+QtzbiE+r63C1GeoyCdB0n+dP5W5vVAm7kvUOVc2v5H2rW96Gpbvx6oN K3uBuBgB kbECn+KNIPXeQPtY2Sc81KELO05m6JxoshBoHX9X0XI2eQUtsedbPJFOpXXPboH4QIXr1iK8B09ZykbURIigaJEF5sFPiauIaju+vU8+yO5O29BXazWwEIHMbxjNRVhUcKX1N4eTWw8sqbpEGsDY6klxzbwyQRh63UdHXYuZRVXH1Fw4gKaF8ec4m7/fJRthtWsmO X-Bogosity: Ham, tests=bogofilter, spamicity=0.000005, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Enable MHP_MEMMAP_ON_MEMORY to support "memmap on memory". memory_hotplug.memmap_on_memory=true kernel parameter should be set in kernel boot option to enable the feature. Reviewed-by: Gerald Schaefer Signed-off-by: Sumanth Korikkar --- arch/s390/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index d5d8f99d1f25..747d994c6dfa 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig @@ -113,6 +113,7 @@ config S390 select ARCH_INLINE_WRITE_UNLOCK_BH select ARCH_INLINE_WRITE_UNLOCK_IRQ select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE + select ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE select ARCH_STACKWALK select ARCH_SUPPORTS_ATOMIC_RMW select ARCH_SUPPORTS_DEBUG_PAGEALLOC