From patchwork Mon Jan 29 12:46:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 13535520 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 A48F1C47422 for ; Mon, 29 Jan 2024 12:47:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 129756B0072; Mon, 29 Jan 2024 07:47:42 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 0D9CD6B009C; Mon, 29 Jan 2024 07:47:42 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E96806B009D; Mon, 29 Jan 2024 07:47:41 -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 CEB8E6B0072 for ; Mon, 29 Jan 2024 07:47:41 -0500 (EST) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id ACD5EA09BC for ; Mon, 29 Jan 2024 12:47:41 +0000 (UTC) X-FDA: 81732325122.27.1E9F656 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf17.hostedemail.com (Postfix) with ESMTP id DC45840007 for ; Mon, 29 Jan 2024 12:47:39 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=X2FXTD8H; spf=pass (imf17.hostedemail.com: domain of david@redhat.com designates 170.10.133.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=1706532459; 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=Q4tnrwU9nMLq/XRgt5SnLvg5SSqAxaQfTq+KC4Tr5Rw=; b=ql1zQPvZMg98f7EErNMBjC1V2Z0j7ZIwEi7cqo0ZhxG7wUFSrInfHrbdD41crb2W445wxM dHSUdXtVEN8/IonMJjdJ4NqSJeRvnDoJlFML0HWvv1iYIyQ6ivtAmtZtfStD7Jqpv1lRzH kRCH084AGfZ6cYOf7nWr7YY6UI+vCA0= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706532459; a=rsa-sha256; cv=none; b=jKE1m9Er+P7FawWmPmL/oBE2ILGe47U46vOe9T7Ol0/VpR3PHFxyjENLurwcCA7LsfeF/b tH7170CnSncBhe1gHXQ31RScJ762DB/Bd9P+9zZIK91nMBgXSTni+D1piqoTAhypnCNUif Ifkm7mdtKgMufTWIiEarZzsDq+4zdd0= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=X2FXTD8H; spf=pass (imf17.hostedemail.com: domain of david@redhat.com designates 170.10.133.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=1706532459; 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=Q4tnrwU9nMLq/XRgt5SnLvg5SSqAxaQfTq+KC4Tr5Rw=; b=X2FXTD8HH8ZKMDuJMuKdltbyqq5OVKXZUreB3T2nXH7etdyio6V2FaOebSW9qf2bTeQP1V /9De/JpuUYnVdwkbzDMLOjEz8EJqMul1qep1xYz7U2uFd+xOQ6PGRTZF0I95huOX59RmCV 0IUuSClYlH1xvaYbMtw2Fx+S9DzddP4= 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-626-0qzEMwiFPS-I-NbcZuBhSg-1; Mon, 29 Jan 2024 07:47:34 -0500 X-MC-Unique: 0qzEMwiFPS-I-NbcZuBhSg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (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 208913814E8C; Mon, 29 Jan 2024 12:47:33 +0000 (UTC) Received: from t14s.fritz.box (unknown [10.39.194.46]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1C9928B; Mon, 29 Jan 2024 12:47:26 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, David Hildenbrand , Andrew Morton , Matthew Wilcox , Ryan Roberts , Russell King , Catalin Marinas , Will Deacon , Dinh Nguyen , Michael Ellerman , Nicholas Piggin , Christophe Leroy , "Aneesh Kumar K.V" , "Naveen N. Rao" , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexander Gordeev , Gerald Schaefer , Heiko Carstens , Vasily Gorbik , Christian Borntraeger , Sven Schnelle , "David S. Miller" , 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 v3 06/15] s390/pgtable: define PFN_PTE_SHIFT Date: Mon, 29 Jan 2024 13:46:40 +0100 Message-ID: <20240129124649.189745-7-david@redhat.com> In-Reply-To: <20240129124649.189745-1-david@redhat.com> References: <20240129124649.189745-1-david@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Rspamd-Queue-Id: DC45840007 X-Rspam-User: X-Stat-Signature: 6enougn9sewym74tnjaofh4yo9imu5qk X-Rspamd-Server: rspam03 X-HE-Tag: 1706532459-523989 X-HE-Meta: U2FsdGVkX19BBzkCB8GKlOP3AVaBe087rSqRlRRJTNcoHwwHlDOnCFGOep2Ohp+jyqavAsIDpccJPUkZYW0p6eqiq9nsnuib+oL6xqdeotPZbMk041tDseyFWcghJWSwb6VDlMZBmMefODK321QBFoSM16/1VQm0KAIGOG32UaLUbT5CTokK1av+IYUdqpDf+Uhwo2lf2dk/FAnRhiHBIfHADz5jNnd4WmyyuHphkAVWtrnf3oyJABo2o3Wbcci8S957SQXJn6eIyGhoJ3HDa/0MQUYWSHkahqzFpzOg1Qh2gfe0euSjkMBrDEHFUOXnj6YQKRbYK5NW4odmJlgESXCcW6enArc3aXKhpnJ4GgWeScRevIF7U1T1fHa/INwYjXwj42jsCmZ6VE042gkmIllC632P37in2NhAvxPz2cAsvPjhn5mbCZ3KvlF29JpgrnW1WkstCrqjqQl9BXnZ3p0yNYaslApnLRSYoi/fh8ZqembLa8wuk4aI1rC8qVQeOEbOF8M7rBRH5HqcvITM0h+FzHQ57sGHD/j+BUqMk3qOB5bJrorgO+z+ntlAFay9GTeUaM9TKXxWc9Gh3tp4/6CcI1U6Pn2TmTM5oqpE9lv663F4cQlE0Z3WnB4xyM7pLduhU79/ygpmFyad94JjlwULAaEFZFXwl8VTmkA0KU6QvPIFro95lczyY7M7wLdQxsujeX9TRfegH/iPM3klHatFiuwEi4IF4c2SQwILyNe863cK9/LE7vEgeA3y//GiGJhrGU8LdLMF/Bq9lcLvz8BwBSGFIbaTBakw4iXzufWHnwzpl0M3q4uw7CKF5bXPfH4GqVcAlWB8ol+pEOkKf69C/t3xrJUvxEXxMsi+vKkWWH3fVIIpO29rR2DRNxSiiEFvDYyb+DGtIgT//M2USWVoFWVDK+45zTzkRmC+4Hg45C0X2EYpZafvVTjiRcKGvuf3Hw3HNHcVPi1QDPQ 7rjTRFdS VfiCUy1P/Nt2pKwVe5HMWcdk2MWRz5JE4+DQFAHWk8F0SwwzBU9qclp+aZhBQpGKFT73FiibYIKtcII/jK0nFOOkL8bEaBT/SYmpfLHMg5jVcQojPlP+q9Tw0AET/jr5SEQq/QHhT+lgdM92hRVIKKq0ZWKSD43h+EoHfi7GBTbsTikhK9i6/v2SbFv9/3HSn6DXWWf77ihSGS05A7c1SNwifmyfr7VNgzrR7 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: We want to make use of pte_next_pfn() outside of set_ptes(). Let's simply define PFN_PTE_SHIFT, required by pte_next_pfn(). Signed-off-by: David Hildenbrand Reviewed-by: Mike Rapoport (IBM) --- arch/s390/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h index 1299b56e43f6..4b91e65c85d9 100644 --- a/arch/s390/include/asm/pgtable.h +++ b/arch/s390/include/asm/pgtable.h @@ -1316,6 +1316,8 @@ pgprot_t pgprot_writecombine(pgprot_t prot); #define pgprot_writethrough pgprot_writethrough pgprot_t pgprot_writethrough(pgprot_t prot); +#define PFN_PTE_SHIFT PAGE_SHIFT + /* * Set multiple PTEs to consecutive pages with a single call. All PTEs * are within the same folio, PMD and VMA.