From mboxrd@z Thu Jan 1 00:00:00 1970 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 6ED4A2E764D for ; Wed, 3 Sep 2025 20:51:36 +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=1756932696; cv=none; b=EZqoyJ8lA4pQygGP12MHGpb4aYlM/sh4efEnfHBIH3QRRLJzmTWecqsjR7pO3IrqwMftPrFwFqbxaHrcK0odznGHixrV2AVEhHJaLNgxK6YjgKxKuXyky9fW6kUYdcpgBrl9+V6equliOVwk3KZCAatO5rY2vJHCsOVCarjn+gA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756932696; c=relaxed/simple; bh=DKNHy/icQSX4btz8FRJzfmZKu/MTYpvESD83QrWcy6E=; h=Date:To:From:Subject:Message-Id; b=D7E+YiKx7/pyH8xISqAtkqqau3L9aIdyH0sDQnhAFFVdDrQ4tc3aqawkisi+0qDfARexjqGaj1h7Eb7bjzWwSvs/n0Nnl9RCYah43zvMR3qbTdR3wNXMIBytNs+HY2Cfpj8IujlKw1k6BfpJBShzlmT7F0L/XrUfgvj5vcE0Ha4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=qLcm72H2; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="qLcm72H2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43199C4CEE7; Wed, 3 Sep 2025 20:51:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1756932696; bh=DKNHy/icQSX4btz8FRJzfmZKu/MTYpvESD83QrWcy6E=; h=Date:To:From:Subject:From; b=qLcm72H2wzq5Vre7llFeniBvKQEUXb1f+WXkHFrVkzmqVUnElLxrSnNi1HrLfZVbh qlCrifNp0tY+dfgdtJrx4ID/ZYNjamqnMmMOSoQ3TYlHq5WelYn0O8NHOsbtfhlac1 xXuQv+Sdtm3/zbGvpV4WvybslBkFDBnRudt4sGb8= Date: Wed, 03 Sep 2025 13:51:35 -0700 To: mm-commits@vger.kernel.org,willy@infradead.org,will@kernel.org,sj@kernel.org,ritesh.list@gmail.com,peterz@infradead.org,paul.walmsley@sifive.com,palmer@dabbelt.com,mst@redhat.com,mpe@ellerman.id.au,maddy@linux.ibm.com,luto@kernel.org,justin@coraid.com,david@redhat.com,dave.hansen@linux.intel.com,catalin.marinas@arm.com,axboe@kernel.dk,aou@eecs.berkeley.edu,vishal.moola@gmail.com,akpm@linux-foundation.org From: Andrew Morton Subject: + arm64-stop-calling-page_address-in-free_pages.patch added to mm-new branch Message-Id: <20250903205136.43199C4CEE7@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: arm64: stop calling page_address() in free_pages() has been added to the -mm mm-new branch. Its filename is arm64-stop-calling-page_address-in-free_pages.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/arm64-stop-calling-page_address-in-free_pages.patch This patch will later appear in the mm-new branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Note, mm-new is a provisional staging ground for work-in-progress patches, and acceptance into mm-new is a notification for others take notice and to finish up reviews. Please do not hesitate to respond to review feedback and post updated versions to replace or incrementally fixup patches in mm-new. Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: "Vishal Moola (Oracle)" Subject: arm64: stop calling page_address() in free_pages() Date: Wed, 3 Sep 2025 11:59:20 -0700 free_pages() should be used when we only have a virtual address. We should call __free_pages() directly on our page instead. Link: https://lkml.kernel.org/r/20250903185921.1785167-7-vishal.moola@gmail.com Signed-off-by: Vishal Moola (Oracle) Acked-by: Catalin Marinas Acked-by: David Hildenbrand Cc: Albert Ou Cc: Andy Lutomirski Cc: Dave Hansen Cc: Jens Axboe Cc: Justin Sanders Cc: Madhavan Srinivasan Cc: Matthew Wilcox (Oracle) Cc: Michael Ellerman Cc: "Michael S. Tsirkin" Cc: Palmer Dabbelt Cc: Paul Walmsley Cc: Peter Zijlstra Cc: Ritesh Harjani (IBM) Cc: SeongJae Park Cc: Will Deacon Signed-off-by: Andrew Morton --- arch/arm64/mm/mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/arm64/mm/mmu.c~arm64-stop-calling-page_address-in-free_pages +++ a/arch/arm64/mm/mmu.c @@ -836,7 +836,7 @@ static void free_hotplug_page_range(stru vmem_altmap_free(altmap, size >> PAGE_SHIFT); } else { WARN_ON(PageReserved(page)); - free_pages((unsigned long)page_address(page), get_order(size)); + __free_pages(page, get_order(size)); } } _ Patches currently in -mm which might be from vishal.moola@gmail.com are mm-tag-kernel-stack-pages.patch mm-page_alloc-add-kernel-docs-for-free_pages.patch aoe-stop-calling-page_address-in-free_page.patch x86-stop-calling-page_address-in-free_pages.patch riscv-stop-calling-page_address-in-free_pages.patch powerpc-stop-calling-page_address-in-free_pages.patch arm64-stop-calling-page_address-in-free_pages.patch virtio_balloon-stop-calling-page_address-in-free_pages.patch