Message ID | 20230616110826.344417-2-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 7BF4EEB64D8 for <linux-mm@archiver.kernel.org>; Fri, 16 Jun 2023 11:09:07 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A717D6B0075; Fri, 16 Jun 2023 07:09:06 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A1F908E0001; Fri, 16 Jun 2023 07:09:06 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8E8666B007B; Fri, 16 Jun 2023 07:09:06 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 7B7786B0075 for <linux-mm@kvack.org>; Fri, 16 Jun 2023 07:09:06 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 3C639A0BEA for <linux-mm@kvack.org>; Fri, 16 Jun 2023 11:09:06 +0000 (UTC) X-FDA: 80908339092.03.F0D2CE0 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by imf21.hostedemail.com (Postfix) with ESMTP id D14321C0014 for <linux-mm@kvack.org>; Fri, 16 Jun 2023 11:09:03 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=XVwPhqRw; spf=pass (imf21.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.156.1 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com; dmarc=pass (policy=none) header.from=ibm.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1686913744; a=rsa-sha256; cv=none; b=tmOcruHPOWiuMSDPSMwwnCh7Jc8RMGk365XStyNFmNhr885N0maHXRmCk5heEUspKTX38P ebSUygCXHdmEP2QWu0BgdigxWyl3Ng+I0kPX2vFIM5uv3N+g42UpPO0xBjmYnEzyNJLCYm uUDRoD1kX+o4nY4SWkDEdlFxljNAdcw= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=ibm.com header.s=pp1 header.b=XVwPhqRw; spf=pass (imf21.hostedemail.com: domain of aneesh.kumar@linux.ibm.com designates 148.163.156.1 as permitted sender) smtp.mailfrom=aneesh.kumar@linux.ibm.com; dmarc=pass (policy=none) header.from=ibm.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1686913744; 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=xtQrMo4AYLeio8end8gS7yq8+iUqWQYcit2hc/5pCeQ=; b=EQXyDgBVIMSzvjPhgSC4ZBojnNmKODhhXsugAlW22S/DgZAFugs5fRrQTTN6AvEpOdZdpd kcb5q6rblBTmwv9ftlAcVTzHbVmCizOICM3O325EliJZmHBfuBb6VasZvv9BMVqVVO+0Hc QMQQVz1m+mMNrDQSx/Wy9O++AreEIng= Received: from pps.filterd (m0353728.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35GAow1I018729; Fri, 16 Jun 2023 11:08:53 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=xtQrMo4AYLeio8end8gS7yq8+iUqWQYcit2hc/5pCeQ=; b=XVwPhqRw3p4SrJ5IcH5PoeqFn2RPfqqC6b4LTaX0eJG91/kiG0HdjUvLEhpnWgbYI+5U LtX9JHWfCTB25nhi765A0xBoJGS81s0j1Z4pXIXaFdcKbznlVEUz1MLsyQfEYMi1Gvt1 6nhFNf+XWrLLld8X1Wfd5IEiVOpmet53XStDVVLbOEYh2AWkReED1aeh0v/m1FvnnIrp AgGTMmfXUcvb7A8Yw3fuaHB2pzsSp36S4vt/t3Jp0Fa/JdC1/2LyhSVTVUx/ztFtAsAw NK9fjEpANgGCQtq+R2+x30AHseOx6JZzm4yePyKdL/4fM6oL9XRaBRryCHPGfRwDPgzu cw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3r8pbm0eh8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Jun 2023 11:08:52 +0000 Received: from m0353728.ppops.net (m0353728.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 35GApC47019250; Fri, 16 Jun 2023 11:08:51 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 3r8pbm0egn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Jun 2023 11:08:51 +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 35G7QPPY014531; Fri, 16 Jun 2023 11:08:50 GMT Received: from smtprelay05.dal12v.mail.ibm.com ([9.208.130.101]) by ppma02wdc.us.ibm.com (PPS) with ESMTPS id 3r4gt5yjvf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Jun 2023 11:08:50 +0000 Received: from smtpav02.wdc07v.mail.ibm.com (smtpav02.wdc07v.mail.ibm.com [10.39.53.229]) by smtprelay05.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 35GB8nYa60162416 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 16 Jun 2023 11:08:49 GMT Received: from smtpav02.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 661095805B; Fri, 16 Jun 2023 11:08:49 +0000 (GMT) Received: from smtpav02.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B96A558059; Fri, 16 Jun 2023 11:08:42 +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:08:42 +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 01/16] powerpc/mm/book3s64: Use pmdp_ptep helper instead of typecasting. Date: Fri, 16 Jun 2023 16:38:11 +0530 Message-Id: <20230616110826.344417-2-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: ksD9Yy4yvUoitJrCWbkOKROPOgwte6dL X-Proofpoint-ORIG-GUID: 5vi4Ev013f7LObh82qNDVa2uIIhIsZro 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_06,2023-06-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 malwarescore=0 bulkscore=0 spamscore=0 mlxlogscore=889 phishscore=0 adultscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306160099 X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: D14321C0014 X-Stat-Signature: q8ufi6afhm61zqjayim8y5nti5m7x1or X-Rspam-User: X-HE-Tag: 1686913743-430307 X-HE-Meta: U2FsdGVkX1+IMgpAb7Wx2tSjab2z+ZMrWcCYB/cY3UkuobuhS+lTueV+EKmBSbN8J6g/WaacStXzMO+6V2L6iy+5NhCGAavl9QZnLf4+Wx03oC2H9pMAEpj0MOq/8CT94pIP0nJqEZCge3lRlAFi0Mw7cOX7EI9Ebs0k1itxskIYkbN7Q1ouOioch/1m44bFDC31/ktZl2FrWxnSfVCt8MgG1392mniBJp0AS6o/PI2yIR/gw8aIWIDdji9WwnU2MA2IGWbF62+0zRXzt9Wm+OUNfhsie2GBX9x86NVqtEYVbNm8ESIffvjbsdibTtA6YdPDyOlizki66AWUbb9WT3qNdWq08HRPNLVNOZtWV+mwHlYsSbGymmXIjw5WlJHg41HrDeMB7tL64HohVFLzw60ElII8T9vbTsHhz6FyT0DHd3pF0QET5B36II/6QFmLYLNputN9xqmRiTpkotfVk0FVmcaY3Q9gpsyc6Ae5xy3A8orVWfu7jpnef/+bCWeLAzKOu4XXMIWqPklRpcYAASuetXFYwo40Id1s107ztiB0Tm6WwBy+EjdHAV/4Z4aZ0rWrI5aIdyZ++D/dG8l5+jIfb0DZts4Nc+fvx88JeSCMp1AY18OjxFRcZT4Y7ZORW72F+KrztFFTyF0rkBL00sp2k6r8Oqezc02WkN3U8ZPI07H1Nd1z8Y1CiGjJANjkaXniC4bCaUaOExbxlBxOavwpmetADJWxCKZjw0oGY2cu2VEv4R1nMklcxA5KJGgkAVwpMM4geg3SDHZTiZE4EuHHMBlnXKXzBHW7kiNEup2H1CYJ9U1NEqG/nV3XjcHfpg/uiCkk+uVb6I2LLUsurs157M525bCv8BH3R1pFgBbmvuzm4Y3Z2Yi9v2v8vFtqDyO5rQedgHPH3G7wHFSeHWntAYC0zzzLyLh/elObudfVuk0M0rasyjZCE1DdGmWV9souAw1pU/ZbDaEcjuO Q/9eGJb/ mlRmC/MZEIeJQhRbnYXl2zZgHjaKFaxeD+fGBUHAtCUvAvmhAynrDM0Y+/pun6tG6plFpPtDL1FKm2U24X5tMCv+QliQVMESEZmkcL/GCnCa2i24P1SwvSChlllvMQXPLquM52LKeutfTKAb92GIXD/osHn7/FA6wboG7ACFp+YAU5ABs90FC1UvXvU4PeN86LBj69/YMo+JTeHoq/q8y2+JaAQ== 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 2297aa764ecd..5f8c6fbe8a69 100644 --- a/arch/powerpc/mm/book3s64/radix_pgtable.c +++ b/arch/powerpc/mm/book3s64/radix_pgtable.c @@ -952,7 +952,7 @@ unsigned long radix__pmd_hugepage_update(struct mm_struct *mm, unsigned long add assert_spin_locked(pmd_lockptr(mm, pmdp)); #endif - old = radix__pte_update(mm, addr, (pte_t *)pmdp, clr, set, 1); + old = radix__pte_update(mm, addr, pmdp_ptep(pmdp), clr, set, 1); trace_hugepage_update(addr, old, clr, set); return old;
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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)