Message ID | 20230616110826.344417-5-aneesh.kumar@linux.ibm.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 3DD84EB64D8 for <linux-mm@archiver.kernel.org>; Fri, 16 Jun 2023 11:09:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D30896B007E; Fri, 16 Jun 2023 07:09:26 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CDEDB6B0080; Fri, 16 Jun 2023 07:09:26 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B58F48E0001; Fri, 16 Jun 2023 07:09:26 -0400 (EDT) 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 A4D616B007E for <linux-mm@kvack.org>; Fri, 16 Jun 2023 07:09:26 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 77DE21A0C84 for <linux-mm@kvack.org>; Fri, 16 Jun 2023 11:09:26 +0000 (UTC) X-FDA: 80908339932.20.6C20B9A Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf04.hostedemail.com (Postfix) with ESMTP id E677640014 for <linux-mm@kvack.org>; Fri, 16 Jun 2023 11:09:23 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=n9+LU627; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf04.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=1686913764; 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=3CRbUlsyj23kEwLD5Yk+bodTH+0qoV6U/+q1tWG5790=; b=JST/eCbHyFX9Ob6IYc9/3GA8+yHItyFursS7hQAr5hn6icCYCLQ1kLW+KyNcvxS0vpQJ8O 9WLpzquZ9UNVHjdO+rpMXZEkvW0j3BWDgNyZEBItgFlobZqmVk1YWPVEW+KdxeeqU9EchE zXHJx+ocfZPOE+Wo897SrauqPB8V44k= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=n9+LU627; dmarc=pass (policy=none) header.from=ibm.com; spf=pass (imf04.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=1686913764; a=rsa-sha256; cv=none; b=vsRY+lwWCEWcr5t6edCqOg310sXwaZ/nrzhDS40/akcL0oUZumwqHYL2ksBMOFawLEZybp 0kQtKEA1P1uyNkJSRpTjx0UrnvE+mWLxGtytDODM6UYqFGQHRAVgC33/ql2B02J2TKFt6R EvkhoUT9SuvdI762CVn0Q/0H1G4orDM= 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 35GAl4wM026232; Fri, 16 Jun 2023 11:09:14 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=3CRbUlsyj23kEwLD5Yk+bodTH+0qoV6U/+q1tWG5790=; b=n9+LU627WXjYwgcTEGejqSRxEv+m9VCK1iQxgR7wBQM6MLQJQyCjG21fxmzAd2R2Ne9w uSrBwWgWeFVlx2vdXsoQXpyO3MqiBObTUhI5NG8x7YYKRe08TfnmlZN4Y9K0w8mojC8a fybBT3xcGcXm34/e/9/AS77WQGDKh5OUjW/s+ds5Cam+7HblKcwwj9plLa7IiM94fe4U rQYrkTb28uVE3nprnurwugJvK06wF0AgGtjsI+41gyDRnx1IuCwaq00DkDXpDky9dp9V b0WyEOVvKHZj2zPAleotAVWjGy5m95M/ieBci13+Bx9LpkaAxZi4m0y5kwBFmH6WDGdD RQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3r8p9nggay-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Jun 2023 11:09:13 +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 35GAlVuc026890; Fri, 16 Jun 2023 11:09:12 GMT Received: from ppma04wdc.us.ibm.com (1a.90.2fa9.ip4.static.sl-reverse.com [169.47.144.26]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3r8p9nggad-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Jun 2023 11:09:12 +0000 Received: from pps.filterd (ppma04wdc.us.ibm.com [127.0.0.1]) by ppma04wdc.us.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 35GADA8Q010728; Fri, 16 Jun 2023 11:09:11 GMT Received: from smtprelay04.wdc07v.mail.ibm.com ([9.208.129.114]) by ppma04wdc.us.ibm.com (PPS) with ESMTPS id 3r4gt5yhc4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Jun 2023 11:09:11 +0000 Received: from smtpav02.wdc07v.mail.ibm.com (smtpav02.wdc07v.mail.ibm.com [10.39.53.229]) by smtprelay04.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 35GB9ABD35389774 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 16 Jun 2023 11:09:10 GMT Received: from smtpav02.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 31CD658059; Fri, 16 Jun 2023 11:09:10 +0000 (GMT) Received: from smtpav02.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 30D7358058; Fri, 16 Jun 2023 11:09:04 +0000 (GMT) Received: from skywalker.ibmuc.com (unknown [9.43.52.24]) by smtpav02.wdc07v.mail.ibm.com (Postfix) with ESMTP; Fri, 16 Jun 2023 11:09:03 +0000 (GMT) From: "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com> 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 <osalvador@suse.de>, Mike Kravetz <mike.kravetz@oracle.com>, Dan Williams <dan.j.williams@intel.com>, Joao Martins <joao.m.martins@oracle.com>, Catalin Marinas <catalin.marinas@arm.com>, Muchun Song <muchun.song@linux.dev>, Will Deacon <will@kernel.org>, "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com> Subject: [PATCH v2 04/16] powerpc/book3s64/mm: Use PAGE_KERNEL instead of opencoding Date: Fri, 16 Jun 2023 16:38:14 +0530 Message-Id: <20230616110826.344417-5-aneesh.kumar@linux.ibm.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230616110826.344417-1-aneesh.kumar@linux.ibm.com> References: <20230616110826.344417-1-aneesh.kumar@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: regFUQ7mHQyBSD4iIRzSNwcE4y9xCHVy X-Proofpoint-ORIG-GUID: yEls3uj9Mwd25etv8ICU9HXImIr80LcB 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-16_07,2023-06-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 bulkscore=0 mlxlogscore=999 priorityscore=1501 phishscore=0 suspectscore=0 adultscore=0 malwarescore=0 lowpriorityscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306160099 X-Rspamd-Queue-Id: E677640014 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: 659y17zfams49yo1z3rch163bieapk4k X-HE-Tag: 1686913763-594240 X-HE-Meta: U2FsdGVkX19rV/ZZhh9UhD7MD3RoL5ANixlBxmKeylrVc+x83Vc0YHW76DU2x27PPV3zkF0YVLi/mx8l82CJzKwbGnr6FZ1FpnhBIirAHw6xrqIBanVcCh0HlNMxBKfzHLFtz7bVIRF9cqSAtWUk3kKczFEfovpjLg9/6nz7Rg1JJ2iusW+DX6wBjPBuLoSczORQbEVeOCgO5bfUEd+ZpKICLqVzM7VxU83LRYZbkb8z/Bg8IgQ5h1jKrVr/NfNg1lrYJQUffAEIt0xdMmWpzigW551CJhO1QcCqk+mAYBTS2UG9baqdOLkcMau4hfIKc2+PA9XitnJSIccpwwYK+RQfA8Dh9TANkmPx6Khw+0RXp9Z/PqacxyaRP9jALdAe/mS3buOh7eg8kXumMdhXCL6H45DrAMydjk2ACjadGkxlnrXVpQqleDQwvP/Pa8+XRH7keqPfH/0lJWOzbBRqE9SmttByfqcD9jHtQrrTfAcwUUzrMt6UTd9dJthuu6YwLzNDUQcb0Jrs76I0DcppqlDsdOeq5ZP79tn6mUkfgDaqtdo7TglDIF8+ScV52eTOErOJNB4SM6aPqQG6FPyJWz+h3rvzoDAAnl2UBR5yu7DcTCG3TU+x5QZlpmunZ7GVtUdlz0fPQmv8MoHAEsMjO7dx52qgLH/YWh8Uhx6FPpl5k+YRJQbpF/DGMI1PO4ks1mlEyEH/nbqbY6BwS1uK2Qjjnx8/NBoP/v9iDjk6TOAwn6eSammQHtnaItCM/G7+9eObgCYbTYwL6oXIlESJ9yIZmrb0GxcIuQDObgFDaEGbYipkZeYW7bR1RF4fFOHInvt8YXL/Kpx2NgfKVAkAJVm+WEKVs40lYhX9RaFz6+ujDJyeS9j1GxC8YTnlW1f2FTHj7z7HXqUWz43GL8sosRBx2WGFsX/8fBCUYTHTA/u0JfuT1S7xLJNug2tiPRJdNPHrC6R21QHcYCOcpY/ jNMJ9yNr CIEFeUdW0EKvQWcIPb4wyXajUQEo/rTFeHN+I5KmWeMdnVDGQcHenPVo5B35uLSLdHIIpbE39qmlSFhsJccTdCEr/IA/CCn0AbIP7C0TYFBA4r6O3FTO7pHqfzGbU+0ppCkwmBTHgJNEzFsiyK2Jrr2C8QwS4MxY5DBOvx8keM2/fdX72PLl+RxkGJzxl9ndRyRDw 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: <linux-mm.kvack.org> |
Series |
Add support for DAX vmemmap optimization for ppc64
|
expand
|
diff --git a/arch/powerpc/mm/book3s64/radix_pgtable.c b/arch/powerpc/mm/book3s64/radix_pgtable.c index 15a099e53cde..76f6a1f3b9d8 100644 --- a/arch/powerpc/mm/book3s64/radix_pgtable.c +++ b/arch/powerpc/mm/book3s64/radix_pgtable.c @@ -910,7 +910,6 @@ int __meminit radix__vmemmap_create_mapping(unsigned long start, unsigned long phys) { /* Create a PTE encoding */ - unsigned long flags = _PAGE_PRESENT | _PAGE_ACCESSED | _PAGE_KERNEL_RW; int nid = early_pfn_to_nid(phys >> PAGE_SHIFT); int ret; @@ -919,7 +918,7 @@ int __meminit radix__vmemmap_create_mapping(unsigned long start, return -1; } - ret = __map_kernel_page_nid(start, phys, __pgprot(flags), page_size, nid); + ret = __map_kernel_page_nid(start, phys, PAGE_KERNEL, page_size, nid); BUG_ON(ret); return 0;
No functional change in this patch. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> --- arch/powerpc/mm/book3s64/radix_pgtable.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)