From patchwork Fri Feb 2 08:07:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ryan Roberts X-Patchwork-Id: 195679 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp278444dyc; Fri, 2 Feb 2024 00:09:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IHYyZiZhuwAGvVkGiUlLumJsdk7aqA1A+N4S9TCG1o4xTSmVvdP6cy97nHCAL0KzDVGOZ9d X-Received: by 2002:a17:907:4d0:b0:a36:d2e8:df1a with SMTP id vz16-20020a17090704d000b00a36d2e8df1amr859674ejb.2.1706861399520; Fri, 02 Feb 2024 00:09:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706861399; cv=pass; d=google.com; s=arc-20160816; b=hxem2Sw1ca/VQkRHWUf8x70zyuUEa9zmQ+iPnA0sQCiMs+RrmDmONRU+7030KZ1n91 vLRIbdjaHij1P405bwB41xFlgMRJC0V5mkN7/23Y8bCHtK0O3BzP4/iGx5N9YykTU+bv DGHwjf6nE4Suj4fQb+36h/aiHU2sRcqzt1v8Dc3JFAy4TbUIWGU2Og9kc3cUoXwJR7Kg 9kO4zqZyj7zYU5VkFrzguT56uicwGKSKaaqlSj/mUPvSC4viwAu2b0LTdnsa7x2hm3vV JUwuAab5+oytQHFT+CG5B5uDtYZrCNn5OhhHxm3wxQPtgwpZAi32Kxe/TJKxLEnJ0OHO hFDg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=4B3QQ0hn6W/OOMuAWwXMBnWBKPLPbfhbIhE+WOA0G6Q=; fh=BM0sVI4iJRQncmzMjfuP72Cx13uibYbEX3g7VxHYklw=; b=dOihhEMToDPvFgk+ZbeXSxVCoVl7yHtf77dPAs7dZsn5oTtHZ5Mw2VZeEBlNqMqo5G UfSmKrIhGajueVGZGV3Vdjw+7LhOHxdtl0ZUcmGR+9ITooAcKcqZFR6axlfz+yKVmDqA 4iPu+NnBZQdTinLGOxlrlviRSXBIt4e/rHM8xJJdH04M2LCKVSjSAlIVf5qDJGQRmwlv DJMmYja044QZwz+j0JQtisznxk3XpQTECvSAtxk1mATeJhXrUin5QNF7QHIOMko23aaI i+HxidTSK6LBQqBEZNfdFYbhSzX1CyWjs6irLEoa6NXbTpXkqkOvECA9teJEC50NIUn/ Q18Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-49416-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49416-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com X-Forwarded-Encrypted: i=1; AJvYcCXmxDRF75psiX5F300mg/0uW6tsDAM6GY5LNRRZ+VnHK58AnfiMaT1kb6jbpU7k3ox222GiyZme8MD4m33URGd/wXpOJQ== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id xo14-20020a170907bb8e00b00a36fa4909c0si521896ejc.198.2024.02.02.00.09.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 00:09:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49416-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel+bounces-49416-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49416-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 119141F2A7C9 for ; Fri, 2 Feb 2024 08:09:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 82A961B298; Fri, 2 Feb 2024 08:08:35 +0000 (UTC) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 318FC1A27D for ; Fri, 2 Feb 2024 08:08:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706861313; cv=none; b=fGLTUyEPGLD6aEMGwpmmwolvc3Q60Vv/z8dgv9v0RMHrHrg14gnO7IueDgw8MYG8Yt+evBMWclVhUQKEx+dKvIlPb4YofIWVOTG8jbxdWDysuuucRUZzfnSpX9jzbeSctbBy6PoIF7JXlOSHkXah8+ABCMGUXTK/r/XVwly1mQU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706861313; c=relaxed/simple; bh=FKzPIlVxJLftEA3Ucgm1Tjm8StZy0DFAb3I7Ol8B7VQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=t03/781d0A+0y2QaH7venAnNA6vVEEUsHZV5k6IgiW+VoqgEXhS1UuOdekUZjaQCH7a93s7bCsa/nxCgsoYw3Oc9Kpu6u/BFo7M5/4cJh3VKic/SbuTqvGdJIs25MMhFgkTtFbfp+iUBJb7gH1DXKU1fV60fUfrP5p6zbbAEk7o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EDFB71763; Fri, 2 Feb 2024 00:09:13 -0800 (PST) Received: from e125769.cambridge.arm.com (e125769.cambridge.arm.com [10.1.196.26]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0E4093F5A1; Fri, 2 Feb 2024 00:08:27 -0800 (PST) From: Ryan Roberts To: Catalin Marinas , Will Deacon , Ard Biesheuvel , Marc Zyngier , James Morse , Andrey Ryabinin , Andrew Morton , Matthew Wilcox , Mark Rutland , David Hildenbrand , Kefeng Wang , John Hubbard , Zi Yan , Barry Song <21cnbao@gmail.com>, Alistair Popple , Yang Shi , Nicholas Piggin , Christophe Leroy , "Aneesh Kumar K.V" , "Naveen N. Rao" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Cc: Ryan Roberts , linux-arm-kernel@lists.infradead.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 04/25] arm/mm: Convert pte_next_pfn() to pte_advance_pfn() Date: Fri, 2 Feb 2024 08:07:35 +0000 Message-Id: <20240202080756.1453939-5-ryan.roberts@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240202080756.1453939-1-ryan.roberts@arm.com> References: <20240202080756.1453939-1-ryan.roberts@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789773898586363231 X-GMAIL-MSGID: 1789773898586363231 Core-mm needs to be able to advance the pfn by an arbitrary amount, so improve the API to do so and change the name. Signed-off-by: Ryan Roberts --- arch/arm/mm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index c24e29c0b9a4..137711c68f2f 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -1814,6 +1814,6 @@ void set_ptes(struct mm_struct *mm, unsigned long addr, if (--nr == 0) break; ptep++; - pteval = pte_next_pfn(pteval); + pteval = pte_advance_pfn(pteval, 1); } }