From patchwork Tue Nov 28 15:52:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumanth Korikkar X-Patchwork-Id: 13471401 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 9834DC4167B for ; Tue, 28 Nov 2023 15:52:51 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6DD876B02F4; Tue, 28 Nov 2023 10:52:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6660E6B02FF; Tue, 28 Nov 2023 10:52:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4DF246B030D; Tue, 28 Nov 2023 10:52:48 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 2AA1D6B02FF for ; Tue, 28 Nov 2023 10:52:48 -0500 (EST) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 04392A02A9 for ; Tue, 28 Nov 2023 15:52:47 +0000 (UTC) X-FDA: 81507806016.28.54C35E1 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf07.hostedemail.com (Postfix) with ESMTP id AC4314001C for ; Tue, 28 Nov 2023 15:52:45 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=lsBp21Kw; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf07.hostedemail.com: domain of sumanthk@linux.ibm.com designates 148.163.156.1 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=1701186765; 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=Cm2kBu10/crAz7hjALxzzgDUCTarIQ7awoilJd5IcDM=; b=b0JCB4TJrkK8Xe+dz02GxX4f9Wqbx0QT0gTmLEwM7xqaKOwlFybka6jtD880qsoTvohu3E sd7KyuvCyJ1cBUeiZX0I8ktNbr9hIdPsqb3XCsXAb5sjMarQWp1Cw40eoepBc6FNb8yx1e T9p0x9KKnHCJMwOUUIXmbfdZizm8g5g= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=lsBp21Kw; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf07.hostedemail.com: domain of sumanthk@linux.ibm.com designates 148.163.156.1 as permitted sender) smtp.mailfrom=sumanthk@linux.ibm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1701186765; a=rsa-sha256; cv=none; b=LAUILribg6+D/tLfSdPEFmjrxabm35cc4mWqJKHuC0Yxpu60YAoklSygEw83KRDTT4TP+z VcpfTPm6KbD01RUQxtbakDWCZ7o18WcyJtMxxSzTY34wDTs6Ok8EZx63ejEYekn543pc5F Q8g8926r5IG3cg445JiDNVHCB4TYdr0= Received: from pps.filterd (m0353727.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3ASFqCPM025885; Tue, 28 Nov 2023 15:52:42 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=Cm2kBu10/crAz7hjALxzzgDUCTarIQ7awoilJd5IcDM=; b=lsBp21KwStlw6XrQFYASez5C70A3vFWM03+xSS01HzXLvdL9smyzWGLkRIEXFYlhxO5U 5g7ovBh1micQNkripG9TNX8J9HcvjxrSoo+YLl3WoE/EUUIS8nDWzAJ6pKIy4bJ0Vcbx H8nEu7LA2anFHZyQ9rzIBTWKxV0hy0fczGRQg7oivEkTu5QUsxXB95OGmTR5JrbW24Rv IfjzVzaX0woHcKY2QFG6z//+zNVKrZYdlGkv1moEYiHt6MJkur1yzBxirMYsUXfHHFjo ukLY5+lkvS6gJTUSekcv49I9DjuIsZFENdytBX2Q3OfOCPcXpY9xDNw2Pwxpn1ps4nwe QQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3unk7n00fp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Nov 2023 15:52:41 +0000 Received: from m0353727.ppops.net (m0353727.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 3ASFqdSn027778; Tue, 28 Nov 2023 15:52:41 GMT Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3unk7n00ew-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Nov 2023 15:52:41 +0000 Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3ASDWgHH027615; Tue, 28 Nov 2023 15:52:39 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3ukumygvqc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Nov 2023 15:52:39 +0000 Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3ASFqa6H44237304 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 Nov 2023 15:52:36 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 73B592004B; Tue, 28 Nov 2023 15:52:36 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0FBAA20043; Tue, 28 Nov 2023 15:52:36 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 28 Nov 2023 15:52:36 +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 Subject: [PATCH v5 5/5] s390: enable MHP_MEMMAP_ON_MEMORY Date: Tue, 28 Nov 2023 16:52:27 +0100 Message-Id: <20231128155227.1315063-6-sumanthk@linux.ibm.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231128155227.1315063-1-sumanthk@linux.ibm.com> References: <20231128155227.1315063-1-sumanthk@linux.ibm.com> MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: 72oYHmBtD8V8cC-V7__1SJlCwtMhaffb X-Proofpoint-GUID: ahQakfVu2sUSETONBDWJwRpWQWItLUtf 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=2023-11-28_18,2023-11-27_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 mlxlogscore=798 impostorscore=0 suspectscore=0 mlxscore=0 clxscore=1015 adultscore=0 bulkscore=0 priorityscore=1501 spamscore=0 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311280127 X-Rspamd-Queue-Id: AC4314001C X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: s9tpcat7itxdn6hxpgmsicyn9zihufnh X-HE-Tag: 1701186765-552117 X-HE-Meta: U2FsdGVkX18eCnSj6uQuTL978D9n826xM58VoG0BwS1bV/jkd26l/Ff0q8q272iG4VNg8tHnx31g0+a+S/Fvrmi2LaeK1NYmixqh0h87KbOpwhMJXvNitQA4dp7QO3e+n/YY6mxdI8RvFx2xY2uFMwrDne/cLphEhdYcLfG+Mk+LD7yMg6LTw1QiaSarFcjmbHabPdZF11+ztoPD3YOuj3fPvcJMJJWy4o8a0RED9P1OJ0psFSzl060zAdRpdPU9yXr/kkweNbUjvRpmYulYC1h+ETSYJdwMJY+ivsh9i2B8aNesxH2OXOOfFeqYS2+l2AuP9yUAIEyAFNvqR9uYLhq2mks7XMUE6ASAL/GGTqHsbXolcOotTIoiYJpJpW21nXC5CTEr2c+IwYrbHpv4/goG5HUcyr2dPYRAVnNzq40HFUhmSYc4nPrDdnViy2oh/JFXK92vVwblaF0W2Gpd8eRiQfcXfErPaUvUwx4fahAXY+mZuNRSeSsMOfaUbdQkckffK/SmYYCqTKnj+jkbqObOuBJF/U09FCVpkDZtAMsTvCoUJlXrP1ZdKUB4CqJkwNlIcggZ7k88hWJhOMwO+srpi7wP/XqNMxRoT+wO2/0sIZBAcvnSRB6vRSThNZTXS0MoCZbWDORN1X1xSQRbNHviuYNkI3r+q4spLrsQ4NWNgPHca3QNpsNUSCzxDOi2/v9hVSDGiXJQO9z07bkyfmnYv0+WwolivR8wnbyB+Qs+Dr8rSjbH1J+zO7gH+RIzQRpRNiAhl7sbK3Kc+dQjH6O3ECsxdek3XaDTXvYKUCRIi3HwLoaS2dBFlLzHb0RCkaiO3AuMhG34ZoMqZIlTHSFniQf7Pi2p9HLrc4tu2fZj46BskdZbRoURryR3ebA3QK//jquwBkKjNdJuOou6W3VI9VXBLIm6Y1yhC4L7IC6v4OtgY4FWl1ZhcxzaWHOMKM/5rbLuiQB3nTDrNUf zMUsL52y ZtQqBm/Qg7gX6A4MUmbwleU0ST2BgCoPoiTzDiv/qVXYoNE5/xN3/VrSgktXnnUfhAucirxC8JFdyUey+VD/xmuLhHuOS3T0A/XXvF5b6/JFfNC9VnZxTuxbTDuRit/8BBNxZnmK5e/K+rMGtlj23IzwATK8j51Osw+U1qAthP/87t6XyBCw+/gs2L8+8IJ4PlT97Z8BlR3mBl92TpK8pJrPfxcBsrjc5ZotnIKHjaIULcnIT1C8FvoGDT9x8/iv5JZGWc4wTrEkHMqo= 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: 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 3bec98d20283..4b9b0f947ddb 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