Re: [PATCH 08/12] gup: Don't allow FOLL_LONGTERM pinning of FS DAX pages

2024-09-26 Thread Dan Williams
Dan Williams wrote: > Alistair Popple wrote: > > Longterm pinning of FS DAX pages should already be disallowed by > > various pXX_devmap checks. However a future change will cause these > > checks to be invalid for FS DAX pages so make > > folio_is_longterm_pinnable() return false for FS DAX pages.

Re: [PATCH 07/12] huge_memory: Allow mappings of PMD sized pages

2024-09-26 Thread Dan Williams
Alistair Popple wrote: > Currently DAX folio/page reference counts are managed differently to > normal pages. To allow these to be managed the same as normal pages > introduce dax_insert_pfn_pmd. This will map the entire PMD-sized folio > and take references as it would for a normally mapped page.

[PATCH 07/20] soc/qman: test: Use kthread_run_on_cpu()

2024-09-26 Thread Frederic Weisbecker
Use the proper API instead of open coding it. However it looks like kthreads here could be replaced by the use of a per-cpu workqueue instead. Signed-off-by: Frederic Weisbecker --- drivers/soc/fsl/qbman/qman_test_stash.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a

Re: [PATCH v5 14/16] modules: Support extended MODVERSIONS info

2024-09-26 Thread Sami Tolvanen
On Thu, Sep 26, 2024 at 5:22 AM Christophe Leroy wrote: > > > > Le 26/09/2024 à 01:38, Matthew Maurer a écrit : > > Adds a new format for MODVERSIONS which stores each field in a separate > > ELF section. This initially adds support for variable length names, but > > could later be used to add add

Re: [PATCH 5/5] [RFC] mm: Remove MAP_UNINITIALIZED support

2024-09-26 Thread Arnd Bergmann
On Thu, Sep 26, 2024, at 08:46, David Hildenbrand wrote: > On 25.09.24 23:06, Arnd Bergmann wrote: > > The first, uncontroversial step could indeed be to make > MAP_UNINITIALIZED a nop, but still leave the definitions in mman.h etc > around. > > This is the same we did with MAP_DENYWRITE. There m

Re: [PATCH v5 14/16] modules: Support extended MODVERSIONS info

2024-09-26 Thread Christophe Leroy
Le 26/09/2024 à 01:38, Matthew Maurer a écrit : Adds a new format for MODVERSIONS which stores each field in a separate ELF section. This initially adds support for variable length names, but could later be used to add additional fields to MODVERSIONS in a backwards compatible way if needed. A

Re: [PATCH v5 00/11] KVM: PPC: Nested APIv2 guest support

2024-09-26 Thread Michal Suchánek
On Thu, Sep 26, 2024 at 10:53:45AM +0530, Vaibhav Jain wrote: > Hi Michal, > > Michal Suchánek writes: > > > > > Hello, > > > > are there any machines on which this is supposed to work? > > > > On a 9105-22A with ML1050_fw1050.20 (78) and > > On 9105-22A you need atleast: > Firmware level: FW

Re: [PATCH 1/5] asm-generic: cosmetic updates to uapi/asm/mman.h

2024-09-26 Thread Arnd Bergmann
On Thu, Sep 26, 2024, at 09:21, Helge Deller wrote: > On 9/25/24 23:06, Arnd Bergmann wrote: >> -/* not used by linux, but here to make sure we don't clash with OSF/1 >> defines */ >> -#define _MAP_HASSEMAPHORE 0x0200 >> -#define _MAP_INHERIT0x0400 >> -#define _MAP_UNALIGNED 0x0800 >

[PATCH v2] powerpc/xive: Use cpumask_intersects()

2024-09-26 Thread Costa Shulyupin
Replace `cpumask_any_and(a, b) >= nr_cpu_ids` with the more readable `!cpumask_intersects(a, b)`. Comparison between cpumask_any_and() and cpumask_intersects() The cpumask_any_and() function expands using FIND_FIRST_BIT(), resulting in a loop that iterates through each bit of the bitmask: for (i

Re: [PATCH 5/5] [RFC] mm: Remove MAP_UNINITIALIZED support

2024-09-26 Thread Helge Deller
On 9/25/24 23:06, Arnd Bergmann wrote: From: Arnd Bergmann MAP_UNINITIALIZED was added back in 2009 for NOMMU kernels, specifically for blackfin, which is long gone. MAP_HUGE_SHIFT/MAP_HUGE_MASK were added in 2012 for architectures supporting hugepages, which at the time did not overlap with th

Re: [PATCH 1/5] asm-generic: cosmetic updates to uapi/asm/mman.h

2024-09-26 Thread Helge Deller
On 9/25/24 23:06, Arnd Bergmann wrote: From: Arnd Bergmann All but four architectures use asm-generic/mman-common.h, and the differences between these are mostly accidental. Rearrange them slightly to make it possible to 'vimdiff' them to see the actual relevant differences: - Move MADV_HWPO

Re: [PATCH 5/5] [RFC] mm: Remove MAP_UNINITIALIZED support

2024-09-26 Thread David Hildenbrand
On 25.09.24 23:06, Arnd Bergmann wrote: From: Arnd Bergmann MAP_UNINITIALIZED was added back in 2009 for NOMMU kernels, specifically for blackfin, which is long gone. MAP_HUGE_SHIFT/MAP_HUGE_MASK were added in 2012 for architectures supporting hugepages, which at the time did not overlap with t

Re: [PATCH v5 10/13] mm: page_vma_mapped_walk: map_pte() use pte_offset_map_rw_nolock()

2024-09-26 Thread Muchun Song
> On Sep 26, 2024, at 14:46, Qi Zheng wrote: > > In the caller of map_pte(), we may modify the pvmw->pte after acquiring > the pvmw->ptl, so convert it to using pte_offset_map_rw_nolock(). At > this time, the pte_same() check is not performed after the pvmw->ptl held, > so we should get pmdval

Re: [PATCH v5 07/13] mm: khugepaged: collapse_pte_mapped_thp() use pte_offset_map_rw_nolock()

2024-09-26 Thread Muchun Song
> On Sep 26, 2024, at 14:46, Qi Zheng wrote: > > In collapse_pte_mapped_thp(), we may modify the pte and pmd entry after > acquring the ptl, so convert it to using pte_offset_map_rw_nolock(). At > this time, the pte_same() check is not performed after the PTL held. So we > should get pgt_pmd a