From patchwork Thu Jan 25 19:32:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Hildenbrand X-Patchwork-Id: 13531547 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 7D1DDC47422 for ; Thu, 25 Jan 2024 19:33:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 109236B0071; Thu, 25 Jan 2024 14:33:18 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 0B8E728000C; Thu, 25 Jan 2024 14:33:18 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E73A1280004; Thu, 25 Jan 2024 14:33:17 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id D369B6B006E for ; Thu, 25 Jan 2024 14:33:17 -0500 (EST) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id AA9311C0C50 for ; Thu, 25 Jan 2024 19:33:17 +0000 (UTC) X-FDA: 81718832034.12.EF0D6A2 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf21.hostedemail.com (Postfix) with ESMTP id EEEB61C0010 for ; Thu, 25 Jan 2024 19:33:15 +0000 (UTC) Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=E74NMjr0; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf21.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706211196; a=rsa-sha256; cv=none; b=Ra6AJf+lBU72iBx1AN4g7GTSSYvVYnlIY3xoDpYEEE5KN6O0NdUrad2mPlPUl7G4QJgFFY CDzvGvYkNXyL3bwRWavETMeu/qKcucC1IOAz86bT08olMr7KHwHJQ+5vABk5sAicGNBCTY e37K5P44IvJBuA4gAj+Tvdj2rRqAdHo= ARC-Authentication-Results: i=1; imf21.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=E74NMjr0; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf21.hostedemail.com: domain of david@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=david@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706211196; 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=HOFElmHyy38IK1/HVpenWSDjKK2a/ajysR8u0SxNo40=; b=8QXtRUBxsDlyUV6XIKMplCVaUpMmhfO0FL3G2aQEk69dtoH6RnlWI9UlSRQu5oOFPpDvOg YZJKWiale7EY5umUIAZwGy0EjMj16mUDzg0L2ZEeUpVP3ItoNMw+HKRKJV9/VNYYXruGRM Tx753oBuz2ysawCdSQYn1fmCvRds4oU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706211195; 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=HOFElmHyy38IK1/HVpenWSDjKK2a/ajysR8u0SxNo40=; b=E74NMjr0bMiZtzwo03lC+5koX1sAFA/zjL3NoWlDftAMwKlaOXQZT/Fl/HkttiIWm6JbBy HjxxDDf1KwneBAhVJf4Z3GG7bKfJYALiWm+2AMzvxeFHCmRD7QUwPhgkeBa1OFE7BKBvKW AyqRYXQknsj54Nc3jhG10dTY1K+TCrw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-213-Hevm4ONKNRujmourt_4mew-1; Thu, 25 Jan 2024 14:33:10 -0500 X-MC-Unique: Hevm4ONKNRujmourt_4mew-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (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 708AB8350EB; Thu, 25 Jan 2024 19:33:09 +0000 (UTC) Received: from t14s.redhat.com (unknown [10.39.193.154]) by smtp.corp.redhat.com (Postfix) with ESMTP id 644EE492BC6; Thu, 25 Jan 2024 19:33:04 +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 v2 06/15] s390/pgtable: define PFN_PTE_SHIFT Date: Thu, 25 Jan 2024 20:32:18 +0100 Message-ID: <20240125193227.444072-7-david@redhat.com> In-Reply-To: <20240125193227.444072-1-david@redhat.com> References: <20240125193227.444072-1-david@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: EEEB61C0010 X-Stat-Signature: jf4a36a38t6341yht3a8wgpy65rq3ju7 X-HE-Tag: 1706211195-329988 X-HE-Meta: U2FsdGVkX19pfPlUs8CMnri4rAh27MVJWgZs6U0icqezzBhp2IQf+neASJG3yMYZ2kM2dXjbj0dz+wDEhvXTYUlyrTwjXxskJ52ub3gMWaBTKMoIlAyVYaWIfSkWi6z29Xoq5n2HXnhU1R0MTHooXt/vd1u+eRnGU0rE/u5j95PK3ciuQn4mEKWcPO0T7YoB4lwQsA4xRP/XEBS5RtFF8AYXDSad60sfw7sqWwjD6ZQ+bhoVHUMeEFC5GhRx505M9UexTCM/XW6gm9MtsbqQTF55NRnoIvytZiMAvcn02mHA4CymUzIRo+1RTkMLqkGTJUlQOlX7cSsAdKifrUg6LY4079tg91RN5b2+ey+ytnzUxisrFcTfhqUlC03IiRON86RGW2R0NoRWUhExyJUiQ4svP2kxDmIaV3DIplFKxuJzlydJiXIOmAyA3wSzd9k5dsk21Y7OyQlFIcx6WPfg52JSbh9nbtVGreMyJb1D2WlqGeCVXyr7zID8lDQ8qB4KX+nWs9cp1hTFOGqlvOVlizQnWNAZerY99F2wqV2LkeOheywOgosO+aWhVOHMNydSMJX/KtWmfm+7hpJlgCwoaQaIGAAG8o9BfyuYNnRjF1nVk8PMRbK1etMnkl3xMIJtNCeC3cYmbAm+oIVbP6RFR4+rNqak4kBN9OgEqKKwVqy3Wk++wCklMQ0drR9xTdbyBi6tmG+ab7Mc0wLov5mahOdA6QWVTdnfi4NQPsFN+Slqu/8yxZpamaqI060kHPWat+NMXyFIKDa79r022tCmWx0ac+uFA/jjmeszwvnHmPsq3izCP3k31yV6pVbD1n/OW6HOt4WrQWfsvYbPie+CryPEs+7WZOSbLvAoHFbuPXUyQlHy3vCymHVHEENpli6wB8s+RgkCn1bN18yFJuu/why/ByZ+9t7Owm506n20PUFnARX2G7gHY0lL/QRTP7IsRjl9Blall2ehW5o1YWd 7F2k2a9F Mf7wDlxKLLQIr3Ds/cLu4BvPrn+tCbKxKfSUG6NtaPHe5riF3fLHfNrAWfwzzuHZPfqSCanDNXS/6QmtUWEDZAnNhK9frIvcTico05XdOtMEzHu1KhkUoSgg0nN955LUKvH8YK/40eeHKYBkq069gtEcQMhpIeiH0Eh+skyZgI9UNYNed6K7GMJDIHYMPEfzha/wcryDyu85cN/LS2wZaMmy3TAyo8Efn6vsm 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 --- 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 1299b56e43f6f..4b91e65c85d97 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.