Message ID | 20240122194200.381241-4-david@redhat.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 AF1D2C47DD3 for <linux-mm@archiver.kernel.org>; Mon, 22 Jan 2024 19:42:35 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 379EB6B009D; Mon, 22 Jan 2024 14:42:35 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 32A3F6B009E; Mon, 22 Jan 2024 14:42:35 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1CC056B009F; Mon, 22 Jan 2024 14:42:35 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 0461A6B009D for <linux-mm@kvack.org>; Mon, 22 Jan 2024 14:42:35 -0500 (EST) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 9F2A41C13F2 for <linux-mm@kvack.org>; Mon, 22 Jan 2024 19:42:34 +0000 (UTC) X-FDA: 81707969028.22.DDE15F9 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf08.hostedemail.com (Postfix) with ESMTP id D8D02160002 for <linux-mm@kvack.org>; Mon, 22 Jan 2024 19:42:32 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=SJk1ZGFR; spf=pass (imf08.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1705952552; 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=7CvT91MHkJr0ioIf++HrmdTETO7/LeECE+2pAFvObkA=; b=YZkAYRs7P7WuhbC5e0Gf4wImpPy9tXfL94DRRes0vaBWPCIIWeOz8Iwx85q5P8jkhXXqYx s2OXymif8HcmD+PFxO1zwLe1NSpneEeEe3LHjnVqoaJzEamMMCb2YB4GibEctNQcR/6u9z h6SS6OTmxQgMEhegyGTwO3AmgvH5RuU= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1705952552; a=rsa-sha256; cv=none; b=WIs5RJ4qUJOSuZ0YgviPapocnrwUWsaUoLTNhBjRtsdzryWICWLSbgOmUxh+VsqQHpY65v rCfwqLgHJ9pf22AHonF1+1C/jb/YGm54qmHGCYvoenoOTWG48xf7ywTG2a1a707Biu3Ju5 7v0kKKCI/Kg5/sepUEIDshd6YPhRw7Q= ARC-Authentication-Results: i=1; imf08.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=SJk1ZGFR; spf=pass (imf08.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com; dmarc=pass (policy=none) header.from=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705952552; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7CvT91MHkJr0ioIf++HrmdTETO7/LeECE+2pAFvObkA=; b=SJk1ZGFRhcimqto1w9cvlaH/iewCDCszBtBCP4ayn0HEVvCQ8/j5LKqLXhcTiMn8oGL/jm uxXZuVuWgM8tbzqVpfO6bAtpdcKsjgv8YIBOu5XQiTWLhDAr5tNuGQAHY3Q2z4zHfQ4Wwu eQkhcTkSd+xrYXfrLnSfRMW59IcrLgw= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-79-mRFmOKJDPVaGmmWPnrJHKA-1; Mon, 22 Jan 2024 14:42:28 -0500 X-MC-Unique: mRFmOKJDPVaGmmWPnrJHKA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 634743C00084; Mon, 22 Jan 2024 19:42:26 +0000 (UTC) Received: from t14s.redhat.com (unknown [10.39.195.114]) by smtp.corp.redhat.com (Postfix) with ESMTP id ADD273C2E; Mon, 22 Jan 2024 19:42:20 +0000 (UTC) From: David Hildenbrand <david@redhat.com> To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, David Hildenbrand <david@redhat.com>, Andrew Morton <akpm@linux-foundation.org>, Matthew Wilcox <willy@infradead.org>, Ryan Roberts <ryan.roberts@arm.com>, Russell King <linux@armlinux.org.uk>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Dinh Nguyen <dinguyen@kernel.org>, Michael Ellerman <mpe@ellerman.id.au>, Nicholas Piggin <npiggin@gmail.com>, Christophe Leroy <christophe.leroy@csgroup.eu>, "Aneesh Kumar K.V" <aneesh.kumar@kernel.org>, "Naveen N. Rao" <naveen.n.rao@linux.ibm.com>, Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, Alexander Gordeev <agordeev@linux.ibm.com>, Gerald Schaefer <gerald.schaefer@linux.ibm.com>, Heiko Carstens <hca@linux.ibm.com>, Vasily Gorbik <gor@linux.ibm.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, Sven Schnelle <svens@linux.ibm.com>, "David S. Miller" <davem@davemloft.net>, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org Subject: [PATCH v1 03/11] powerpc/pgtable: define PFN_PTE_SHIFT Date: Mon, 22 Jan 2024 20:41:52 +0100 Message-ID: <20240122194200.381241-4-david@redhat.com> In-Reply-To: <20240122194200.381241-1-david@redhat.com> References: <20240122194200.381241-1-david@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 X-Rspamd-Queue-Id: D8D02160002 X-Rspam-User: X-Stat-Signature: j7spjp9rgfk39idrj5ubidpg6ez8u7ds X-Rspamd-Server: rspam03 X-HE-Tag: 1705952552-458302 X-HE-Meta: U2FsdGVkX1/5nGktqKEOswJ7BKIY2l8CkWocQnGcpekBtWP02+oHlaNNdsYUmNwYBr/R9zZB6M/Bac74ItBAE8HQvR4c/02F/+8mwaA1A/Biv5E1kMca2B2TYpO7aoHfMwLIMxZKQJfG9Y6S+I11b548JtuS/BEaKoGj4rSuolCa6oqw6vPImh4k7c865bWoit+NLECkMI+LcOrkuPqxaMGehMbGcaFzItAUvE6j9qIuDekoLSy0gnFHekbz7u7QHliB5KlneRlrPeCnEuskSWTDI52ER2PiO4GoFOuJcf8JLTeeh2B03FqesS4T7NaMESv8IypM3caD2NPXUIW/6/II3GUfPuG62sLMtlXzc560a91yqjqxo5q6SuNxAbEGKU9bttsQ9npj2j5/ANqDBRDqQRhOFwes0bIZnfQnvcaEApA2NlPJAEFDxMz4iQRJJPrNZeqbR9eSayz3YcC/pgD9s/r/3h2H8wzFsAyeifVgXqFjjCHzy7006ey8MsLajYLE7b5IS+u0LF//1YWKtmNdBhZPI/9IMRqy3s8+f8zAhoiJsugZ3JXJDz2RW8jMUqqwtJ8ZzcVYQu5ItREnkWw/SNlmwSaVHdQzHb7rKeNkRwDgRxoxWgjnW9YvKUgNmJVmJVHJ3d36g7dDdcfYr2is/5SZUzVkKSDnOb598jLcZFQRJ5kMkN5zyuhZk5y/vsgtVlniMMF+Kw8Y24yPgaRyVdfaioUDg6RIHFVAu4BXylBV8+u9xEGgSsIm8hIbJDYXmZNJQY3muy8z9vXVZcUkJdzso1kEtTwIwuWzFU1SGycoyDIQ5F1tdx56Upri30v+wl3hK0/wSF97o5JXO14HykT1Co87IXUJ8R+jcdSlaRNSVMOTVNTAErOcGgk+yyet9CiH8fqpVBlV8iWll462PlCxlK3Zg/4RFFcR3WCkRNszhfT3SBK7LGggRFjuv4Qd3KjalV/eSKBUn+S bMqr112n 2vY0bKHL4jxBXEvz9xV/yLoHWsR3GH1F3V+fK6uyONT28sJ/4Mux1dgCy0SFfs+dcbQ5haaEL/uWzqOMq5JoOXMJYuFq05lfoPomnYpKAbIaLIuZSbD5JnA8Pvc+ugtYmQy7awNS8mvwSfWJ+GytqzdjOpbfvG74t7kkBfHwHjJBxvhUAiq+/Wy5MeRYIWX9oR75apvdpNL8c6dZGscZB939tT5zBy5HBfz0C 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
mm/memory: optimize fork() with PTE-mapped THP
|
expand
|
diff --git a/arch/powerpc/include/asm/pgtable.h b/arch/powerpc/include/asm/pgtable.h index 9224f23065fff..7a1ba8889aeae 100644 --- a/arch/powerpc/include/asm/pgtable.h +++ b/arch/powerpc/include/asm/pgtable.h @@ -41,6 +41,8 @@ struct mm_struct; #ifndef __ASSEMBLY__ +#define PFN_PTE_SHIFT PTE_RPN_SHIFT + void set_ptes(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte_t pte, unsigned int nr); #define set_ptes set_ptes
We want to make use of pte_next_pfn() outside of set_ptes(). Let's simpliy define PFN_PTE_SHIFT, required by pte_next_pfn(). Signed-off-by: David Hildenbrand <david@redhat.com> --- arch/powerpc/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+)