Re: [GIT PULL] Please pull powerpc/linux.git powerpc-6.16-3 tag

2025-06-16 Thread pr-tracker-bot
The pull request you sent on Mon, 16 Jun 2025 15:20:48 +0530: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-6.16-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/44a5ab7a7958fbf190ae384b8ef252f23b840c1b Thank you! -- Deet-doot-d

Re: [PATCH 3/8] KVM: arm64: Move ARM specific headers in include/kvm to arch directory

2025-06-16 Thread Zenghui Yu
On 2025/6/11 8:10, Sean Christopherson wrote: > Move kvm/arm_{arch_timer,pmu,vgic}.h to arch/arm64/include/asm and drop > the "arm" prefix from all file names. Now that KVM no longer supports > 32-bit ARM, there is no reason to expose ARM specific headers to other > architectures beyond arm64. >

[PATCH v2 02/14] mm: Filter zone device pages returned from folio_walk_start()

2025-06-16 Thread Alistair Popple
Previously dax pages were skipped by the pagewalk code as pud_special() or vm_normal_page{_pmd}() would be false for DAX pages. Now that dax pages are refcounted normally that is no longer the case, so the pagewalk code will start returning them. Most callers already explicitly filter for DAX or z

[PATCH v2 13/14] mm: Remove callers of pfn_t functionality

2025-06-16 Thread Alistair Popple
All PFN_* pfn_t flags have been removed. Therefore there is no longer a need for the pfn_t type and all uses can be replaced with normal pfns. Signed-off-by: Alistair Popple Reviewed-by: Christoph Hellwig Reviewed-by: Jason Gunthorpe --- Changes since v1: - Rebased on David's cleanup[1] [1

[PATCH v2 14/14] mm/memremap: Remove unused devmap_managed_key

2025-06-16 Thread Alistair Popple
It's no longer used so remove it. Signed-off-by: Alistair Popple Reviewed-by: Jason Gunthorpe --- mm/memremap.c | 27 --- 1 file changed, 27 deletions(-) diff --git a/mm/memremap.c b/mm/memremap.c index 044a455..f75078c 100644 --- a/mm/memremap.c +++ b/mm/memremap.c @@

[PATCH v2 11/14] mm: Remove devmap related functions and page table bits

2025-06-16 Thread Alistair Popple
Now that DAX and all other reference counts to ZONE_DEVICE pages are managed normally there is no need for the special devmap PTE/PMD/PUD page table bits. So drop all references to these, freeing up a software defined page table bit on architectures supporting it. Signed-off-by: Alistair Popple A

[PATCH v2 12/14] mm: Remove PFN_MAP, PFN_SPECIAL, PFN_SG_CHAIN and PFN_SG_LAST

2025-06-16 Thread Alistair Popple
The PFN_MAP flag is no longer used for anything, so remove it. The PFN_SG_CHAIN and PFN_SG_LAST flags never appear to have been used so also remove them. The last user of PFN_SPECIAL was removed by 653d7825c149 ("dcssblk: mark DAX broken, remove FS_DAX_LIMITED support"). Acked-by: David Hildenbran

[PATCH v2 10/14] fs/dax: Remove FS_DAX_LIMITED config option

2025-06-16 Thread Alistair Popple
The dcssblk driver was the last user of FS_DAX_LIMITED. That was marked broken by 653d7825c149 ("dcssblk: mark DAX broken, remove FS_DAX_LIMITED support") to allow removal of PFN_SPECIAL. However the FS_DAX_LIMITED config option itself was not removed, so do that now. Signed-off-by: Alistair Poppl

[PATCH v2 01/14] mm: Convert pXd_devmap checks to vma_is_dax

2025-06-16 Thread Alistair Popple
Currently dax is the only user of pmd and pud mapped ZONE_DEVICE pages. Therefore page walkers that want to exclude DAX pages can check pmd_devmap or pud_devmap. However soon dax will no longer set PFN_DEV, meaning dax pages are mapped as normal pages. Ensure page walkers that currently use pXd_de

[PATCH v2 09/14] powerpc: Remove checks for devmap pages and PMDs/PUDs

2025-06-16 Thread Alistair Popple
PFN_DEV no longer exists. This means no devmap PMDs or PUDs will be created, so checking for them is redundant. Instead mappings of pages that would have previously returned true for pXd_devmap() will return true for pXd_trans_huge() Signed-off-by: Alistair Popple Reviewed-by: Jason Gunthorpe --

[PATCH v2 08/14] mm/khugepaged: Remove redundant pmd_devmap() check

2025-06-16 Thread Alistair Popple
The only users of pmd_devmap were device dax and fs dax. The check for pmd_devmap() in check_pmd_state() is therefore redundant as callers explicitly check for is_zone_device_page(), so this check can be dropped. Signed-off-by: Alistair Popple Acked-by: David Hildenbrand Reviewed-by: Jason Gunth

[PATCH v2 06/14] mm/huge_memory: Remove pXd_devmap usage from insert_pXd_pfn()

2025-06-16 Thread Alistair Popple
Nothing uses PFN_DEV anymore so no need to create devmap pXd's when mapping a PFN. Instead special mappings will be created which ensures vm_normal_page_pXd() will not return pages which don't have an associated page. This could change behaviour slightly on architectures where pXd_devmap() does not

[PATCH v2 07/14] mm: Remove redundant pXd_devmap calls

2025-06-16 Thread Alistair Popple
DAX was the only thing that created pmd_devmap and pud_devmap entries however it no longer does as DAX pages are now refcounted normally and pXd_trans_huge() returns true for those. Therefore checking both pXd_devmap and pXd_trans_huge() is redundant and the former can be removed without changing b

[PATCH v2 00/14] mm: Remove pXX_devmap page table bit and pfn_t type

2025-06-16 Thread Alistair Popple
Changes from v1: - Moved "mm: Remove PFN_MAP, PFN_SPECIAL, PFN_SG_CHAIN and PFN_SG_LAST" later in the series to avoid creating a temporary boot issue on RISC-V as reported by Marek[1]. - Rebased on mm-unstable which includes David's insert_pXd() fixes - Stop skipping DAX folios in folio

[PATCH v2 05/14] mm/gup: Remove pXX_devmap usage from get_user_pages()

2025-06-16 Thread Alistair Popple
GUP uses pXX_devmap() calls to see if it needs to a get a reference on the associated pgmap data structure to ensure the pages won't go away. However it's a driver responsibility to ensure that if pages are mapped (ie. discoverable by GUP) that they are not offlined or removed from the memmap so th

[PATCH v2 04/14] mm: Remove remaining uses of PFN_DEV

2025-06-16 Thread Alistair Popple
PFN_DEV was used by callers of dax_direct_access() to figure out if the returned PFN is associated with a page using pfn_t_has_page() or not. However all DAX PFNs now require an assoicated ZONE_DEVICE page so can assume a page exists. Other users of PFN_DEV were setting it before calling vmf_inser

[PATCH v2 03/14] mm: Convert vmf_insert_mixed() from using pte_devmap to pte_special

2025-06-16 Thread Alistair Popple
DAX no longer requires device PTEs as it always has a ZONE_DEVICE page associated with the PTE that can be reference counted normally. Other users of pte_devmap are drivers that set PFN_DEV when calling vmf_insert_mixed() which ensures vm_normal_page() returns NULL for these entries. There is no r

[GIT PULL] Please pull powerpc/linux.git powerpc-6.16-3 tag

2025-06-16 Thread Madhavan Srinivasan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull powerpc fixes for 6.16: The following changes since commit 0d67f0dee6c9176bc09a5482dd7346e3a0f14d0b: powerpc/vas: Return -EINVAL if the offset is non-zero in mmap() (2025-06-10 07:56:41 +0530) are available in the git rep

Re: [PATCH 6/8] KVM: PPC: Stop adding virt/kvm to the arch include path

2025-06-16 Thread Gautam Menghani
Reviewed-by: Gautam Menghani