Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp77620rdb; Wed, 7 Feb 2024 22:19:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IGbEAHJBvgTNdGP1j5D74cJYK5NjZu32VWJnsLkOyg+Cqr9mUfztdMJzYYxlNNkkAZO9W4q X-Received: by 2002:a05:6870:170e:b0:218:f761:91b7 with SMTP id h14-20020a056870170e00b00218f76191b7mr8420559oae.56.1707373179907; Wed, 07 Feb 2024 22:19:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707373179; cv=pass; d=google.com; s=arc-20160816; b=E8wTVYmcOlbhlcuHD+vvzZZd2WgRxQ4c7FomeY9Ya/bE/s4Hbq2L9zSM0cmw8jPTQ6 O3DmBnO2ZdgwIS1ACqRQc9O2Bwq4+K/3Ibd71s4D6ftJcQGQa0rGqDRdL2aURJAir2Bw lZO3SjL12beUSWRwJR8Lp2zr2zu7moEZ0UMInPfftgspWZ6h5dG/b3eC6rCuIkMn0md6 KvRrV6yZDRHy75B2KuJH5gYoJqgwyRjMWasVC4H/Ye2KffgxgDwNk6xE0ZCqpJg3SY9f uZ8RqE1MpoBFwOm4N/N834Aan1XgjHTxZ6bqjJNSP9IY1hjFX7YfVePV0Fytl0kHSsA9 Biiw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KxDf3QJwhNx45ZCQx2OEWx+sXKhiLlcrvHDZl10tZKM=; fh=OA0N2i1YI/CajvMHehY2+dTl4JPVzohvZftAkk3NfHA=; b=NrXPksQTy7LgVhl7fJ5KjkvT9g32nPL2KRbXqjX1XpUy23OV1Z4lBvZjILtM8OF2xP 8+yAvEO4BJt5uO9x5Jb6Krky6rbUCJQrg8PSkjlgoJX2tuNr8Q3Lkz+16hZ4BgSkS+S1 hKec3JNiAnJCJ44p+1lU4LOvNHAceEhQmpAgJS4d3jL6JibME31H+fjYypB7BoMxcHVX aNJgculJms/fj4MTucvuIUIqvefD/wkrEuuX3P3Z1BGv8DD2hDLvFaX22tyT/n6T6ZlA 8E9yhzsO6Xe1J/y0nLe3JhUtQ2T5qBacn+FJEk99B3GwliOi1LTYDy11P+4wxj5tG2Kc hteA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jIr3HcQ5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-57505-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCWQRsPTogl+dErymB8jJqKU5JO5eCAiRMg3uhSc+VitBPiG5EuzxZ4f3dUkVcDSyZ1rBoaFH5pHDie1yCW8CnCJ7vep8HaoLskhP/9xSw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ch2-20020a056a0208c200b005c65eb2bc63si3517633pgb.608.2024.02.07.22.19.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 22:19:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57505-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jIr3HcQ5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-57505-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57505-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 84F65282CB0 for ; Thu, 8 Feb 2024 06:19:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 956F867E84; Thu, 8 Feb 2024 06:19:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jIr3HcQ5" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA74167E7B; Thu, 8 Feb 2024 06:19:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707373160; cv=none; b=IFHmM4X+kLSW8XfOcS/ZsF3m1sMABzAbkhDef4i2yQAgHTMY96TRXeZ0sEpSyo5U3/5WRtFLYtPnDpLhTUBme+uIZ15GToOzqrMfylqVPhoDUI8bUVQXEcJomB7iRS31jslX45ljWYd/uPnMv9plq2OG1XJYfoXLCcYwAHaDrE0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707373160; c=relaxed/simple; bh=sykn19xSWWObW9qLEcBLaerZOcbUqhpMGC17aR+qXjA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=e02FKEkE/TU0Q/Yow4pde60lkq6r2YdBWvGx5Dc1V4+mwdrML08RemCkcAukewPWgWR+RVQTAU2waXLMAd2ELGv4qJ64ot5J9zl4HRY8EpyB6+QKOWjaEJaG6VxqpmLYq+bHusaaOuvRH4pKAY9XQRQYSAt5U58TipPNCPbJr9M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jIr3HcQ5; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E073C433C7; Thu, 8 Feb 2024 06:19:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707373160; bh=sykn19xSWWObW9qLEcBLaerZOcbUqhpMGC17aR+qXjA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jIr3HcQ5b0bG8W1uCJ8Xs3AwCdkv1B8MN9avDtnOskKLP0MGsSA5FdVe/qlbwHlcW ij75Se4Sr0M/mlXPbTkg0ExM3s0WbaPDmBB2z0afJU/DgLRzJylJTpMBlkaFq6genb UGrNOEd0VDk8McWIYbPInEhmtVwApod8E7+c/sGa2tGsu8eSLCSRKoYuzxYXt8WRCQ 9cQouplzvU1R7Agn51n6p8mDjqipAaZ8nccLsae0oyB1d4PDPTePnX+SGrmuqMGd6I jV18g7gasEz+BfWfvdqPK2SfzN57x1dswOCBjsVrob3m65Q37nQIWq9pBNrosyAwa/ 8XrfQqz5PFmrw== Date: Thu, 8 Feb 2024 08:18:55 +0200 From: Mike Rapoport To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, 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: Re: [PATCH v3 07/15] sparc/pgtable: define PFN_PTE_SHIFT Message-ID: References: <20240129124649.189745-1-david@redhat.com> <20240129124649.189745-8-david@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240129124649.189745-8-david@redhat.com> On Mon, Jan 29, 2024 at 01:46:41PM +0100, David Hildenbrand wrote: > 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/sparc/include/asm/pgtable_64.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/sparc/include/asm/pgtable_64.h b/arch/sparc/include/asm/pgtable_64.h > index a8c871b7d786..652af9d63fa2 100644 > --- a/arch/sparc/include/asm/pgtable_64.h > +++ b/arch/sparc/include/asm/pgtable_64.h > @@ -929,6 +929,8 @@ static inline void __set_pte_at(struct mm_struct *mm, unsigned long addr, > maybe_tlb_batch_add(mm, addr, ptep, orig, fullmm, PAGE_SHIFT); > } > > +#define PFN_PTE_SHIFT PAGE_SHIFT > + > static inline void set_ptes(struct mm_struct *mm, unsigned long addr, > pte_t *ptep, pte_t pte, unsigned int nr) > { > -- > 2.43.0 > > -- Sincerely yours, Mike.