Re: [PATCH] kvm/arm: return 0 when the number of objects is not less than min

2018-12-07 Thread Steven Price
On 05/12/2018 08:32, Andrew Jones wrote: > On Wed, Dec 05, 2018 at 09:15:51AM +0800, Peng Hao wrote: >> Return 0 when there is enough kvm_mmu_memory_cache object. >> >> Signed-off-by: Peng Hao >> --- >> virt/kvm/arm/mmu.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a

Re: [PATCH 5/6] arm64: add sysfs vulnerability show for speculative store bypass

2018-12-14 Thread Steven Price
On 06/12/2018 23:44, Jeremy Linton wrote: > From: Mian Yousaf Kaukab > > Return status based no ssbd_state and the arm64 SSBS feature. ^^ on > Return string "Unknown" in case CONFIG_ARM64_SSBD is > disabled or arch workaround2 is not available > in the firmware. > > Signed

Re: [PATCH 5/6] arm64: add sysfs vulnerability show for speculative store bypass

2018-12-14 Thread Steven Price
On 14/12/2018 10:36, Will Deacon wrote: > On Fri, Dec 14, 2018 at 10:34:31AM +0000, Steven Price wrote: >> On 06/12/2018 23:44, Jeremy Linton wrote: >>> From: Mian Yousaf Kaukab >>> >>> Return status based no ssbd_state and the arm64 SSBS feature. >>

Re: [PATCH] module: Add hard dependencies as syntactic sugar

2024-07-25 Thread Steven Price
using such additional "pruning information" in a more robust way, by ensuring > that the absolutely required harddep modules aren't pruned away. > > [1] > https://lore.kernel.org/dri-devel/4e1e00422a14db4e2a80870afb704405da16fd1b.1718655077.git.dsi...@manjaro.org/T/#u >

Re: [PATCH] module: Add hard dependencies as syntactic sugar

2024-07-25 Thread Steven Price
On 25/07/2024 15:29, Lucas De Marchi wrote: > On Thu, Jul 25, 2024 at 01:37:46PM GMT, Dragan Simic wrote: >> Panfrost and Lima DRM drivers use devfreq to perform DVFS, which is >> supported >> on the associated platforms, while using simple_ondemand devfreq >> governor by >> default.  This makes th

Re: [PATCH v10 2/6] arm64: kvm: Introduce MTE VM feature

2021-04-07 Thread Steven Price
On 07/04/2021 16:14, Catalin Marinas wrote: On Wed, Apr 07, 2021 at 11:20:18AM +0100, Steven Price wrote: On 31/03/2021 19:43, Catalin Marinas wrote: When a slot is added by the VMM, if it asked for MTE in guest (I guess that's an opt-in by the VMM, haven't checked the other patche

Re: [PATCH v3 27/34] mm: pagewalk: Add 'depth' parameter to pte_hole

2019-02-28 Thread Steven Price
On 27/02/2019 17:38, Dave Hansen wrote: > On 2/27/19 9:06 AM, Steven Price wrote: >> #ifdef CONFIG_SHMEM >> static int smaps_pte_hole(unsigned long addr, unsigned long end, >> -struct mm_walk *walk) >> + __always_unused int

Re: [PATCH v3 18/34] s390: mm: Add p?d_large() definitions

2019-02-28 Thread Steven Price
On 27/02/2019 17:40, Martin Schwidefsky wrote: > On Wed, 27 Feb 2019 17:05:52 + > Steven Price wrote: > >> walk_page_range() is going to be allowed to walk page tables other than >> those of user space. For this it needs to know when it has reached a >> 'leaf

Re: [PATCH v3 20/34] sparc: mm: Add p?d_large() definitions

2019-02-28 Thread Steven Price
On 27/02/2019 18:38, David Miller wrote: > From: Steven Price > Date: Wed, 27 Feb 2019 17:05:54 + > >> walk_page_range() is going to be allowed to walk page tables other than >> those of user space. For this it needs to know when it has reached a >> 'leaf

Re: [PATCH v3 09/34] m68k: mm: Add p?d_large() definitions

2019-02-28 Thread Steven Price
On 28/02/2019 11:53, Geert Uytterhoeven wrote: > Hi Mike, > > On Thu, Feb 28, 2019 at 12:37 PM Mike Rapoport wrote: >> On Wed, Feb 27, 2019 at 08:27:40PM +0100, Geert Uytterhoeven wrote: >>> On Wed, Feb 27, 2019 at 6:07 PM Steven Price wrote: >>>> walk_pa

Re: [PATCH v3 11/34] mips: mm: Add p?d_large() definitions

2019-02-28 Thread Steven Price
On 28/02/2019 02:15, Paul Burton wrote: > Hi Steven, > > On Wed, Feb 27, 2019 at 05:05:45PM +0000, Steven Price wrote: >> For mips, we don't support large pages on 32 bit so add stubs returning 0. > > So far so good :) > >> For 64 bit look for _PAGE_HUGE flag

Re: [PATCH v3 11/34] mips: mm: Add p?d_large() definitions

2019-03-01 Thread Steven Price
On 28/02/2019 18:55, Paul Burton wrote: > Hi Steven, > > On Thu, Feb 28, 2019 at 12:11:24PM +0000, Steven Price wrote: >> On 28/02/2019 02:15, Paul Burton wrote: >>> On Wed, Feb 27, 2019 at 05:05:45PM +, Steven Price wrote: >>>> For mips, we don't s

Re: [PATCH v3 27/34] mm: pagewalk: Add 'depth' parameter to pte_hole

2019-03-01 Thread Steven Price
On 28/02/2019 19:00, Dave Hansen wrote: > On 2/28/19 3:28 AM, Steven Price wrote: >> static int get_level(unsigned long addr, unsigned long end) >> { >> /* Add 1 to account for ~0ULL */ >> unsigned long size = (end - addr) + 1; >> if (size <

Re: [PATCH v2 03/13] mm: Add generic p?d_large() macros

2019-03-01 Thread Steven Price
On 01/03/2019 12:30, Kirill A. Shutemov wrote: > On Fri, Mar 01, 2019 at 01:53:01PM +0200, Mike Rapoport wrote: >> Him Kirill, >> >> On Fri, Feb 22, 2019 at 12:06:18AM +0300, Kirill A. Shutemov wrote: >>> On Thu, Feb 21, 2019 at 05:16:46PM +, Steven Price wrote

Re: [PATCH v8 00/20] Convert x86 & arm64 to use generic page walk

2019-04-17 Thread Steven Price
On 12/04/2019 15:44, Dave Hansen wrote: > On 4/10/19 7:56 AM, Steven Price wrote: >> Gentle ping: who can take this? Is there anything blocking this series? > > First of all, I really appreciate that you tried this. Every open-coded > page walk has a set of common pitfa

[RFC PATCH 2/3] arm64: mm: Switch to using generic pt_dump

2019-04-17 Thread Steven Price
Instead of providing our own callbacks for walking the page tables, switch to using the generic version instead. Signed-off-by: Steven Price --- arch/arm64/Kconfig | 1 + arch/arm64/Kconfig.debug| 19 +- arch/arm64/include/asm/ptdump.h | 8 +-- arch/arm64/mm

[RFC PATCH 1/3] mm: Add generic ptdump

2019-04-17 Thread Steven Price
Add a generic version of page table dumping that architectures can opt-in to Signed-off-by: Steven Price --- include/linux/ptdump.h | 19 + mm/Kconfig.debug | 21 ++ mm/Makefile| 1 + mm/ptdump.c| 159 + 4 files

[RFC PATCH 3/3] x86: mm: Switch to using generic pt_dump

2019-04-17 Thread Steven Price
Instead of providing our own callbacks for walking the page tables, switch to using the generic version instead. Signed-off-by: Steven Price --- arch/x86/Kconfig | 1 + arch/x86/Kconfig.debug| 20 +-- arch/x86/mm/Makefile | 4 +- arch/x86/mm/dump_pagetables.c

[PATCH -next] drm/panfrost: depend on !GENERIC_ATOMIC64 when using COMPILE_TEST

2019-04-17 Thread Steven Price
p; MMU [=y] Reported-by: kbuild test robot Signed-off-by: Steven Price --- drivers/gpu/drm/panfrost/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panfrost/Kconfig b/drivers/gpu/drm/panfrost/Kconfig index 7f5e572daa2d..591611dc4e34 100644 --- a/drive

Re: [PATCH 1/1] initrd: move initrd_start calculate within linear mapping range check

2019-03-13 Thread Steven Price
the desired effect. So you might want to add a Fixes tag. Otherwise FWIW: Reviewed-by: Steven Price Thanks, Steve > Signed-off-by: pierre Kuo > --- > arch/arm64/mm/init.c | 8 +++- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/arch/arm64/mm/init.c b

Re: [PATCH] firmware: arm_scmi: check return value of idr_find

2019-03-26 Thread Steven Price
alls > to scmi_mbox_chan_setup(). > Therefore, the patch conservatively checks the return value and > returns -EINVAL when it indeed failed. > > Signed-off-by: Kangjie Lu > Reviewed-by: Steven Price > --- > drivers/firmware/arm_scmi/driver.c | 2 ++ > 1 file change

Re: [PATCH v3] PCI: xilinx: Check for __get_free_pages() failure

2019-03-26 Thread Steven Price
Lu Reviewed-by: Steven Price > --- > v3: remove "unlikely", as suggested by Bjorn Helgaas. > v2: caller is redefined to accept the error code, as suggested by > Steven Price > --- > drivers/pci/controller/pcie-xilinx.c | 12 ++-- > 1 file changed, 10

Re: [PATCH] firmware: arm_scmi: Fix leak in scmi_mailbox_check

2019-03-26 Thread Steven Price
On 26/03/2019 07:23, Mukesh Ojha wrote: > > On 3/25/2019 11:07 PM, Steven Price wrote: >> of_parse_phandle_with_args() requires the caller to call of_node_put() on >> the returned args->np pointer. Otherwise the reference count will remain >> incremented. >> &

[PATCH v6 00/19] Convert x86 & arm64 to use generic page walk

2019-03-26 Thread Steven Price
(see real_depth() function in mm/pagewalk.c) Steven Price (19): arc: mm: Add p?d_large() definitions arm64: mm: Add p?d_large() definitions mips: mm: Add p?d_large() definitions powerpc: mm: Add p?d_large() definitions riscv: mm: Add p?d_large() definitions s390: mm: Add p?d_large() defi

[PATCH v6 02/19] arm64: mm: Add p?d_large() definitions

2019-03-26 Thread Steven Price
cros which we can reuse for p?d_large(). CC: Catalin Marinas CC: Will Deacon Signed-off-by: Steven Price --- arch/arm64/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h index de70c1eabf33..6eef345db

[PATCH v6 05/19] riscv: mm: Add p?d_large() definitions

2019-03-26 Thread Steven Price
, write or execute bit set on it. CC: Palmer Dabbelt CC: Albert Ou CC: linux-ri...@lists.infradead.org Signed-off-by: Steven Price --- arch/riscv/include/asm/pgtable-64.h | 7 +++ arch/riscv/include/asm/pgtable.h| 7 +++ 2 files changed, 14 insertions(+) diff --git a/arch/riscv/i

[PATCH v6 03/19] mips: mm: Add p?d_large() definitions

2019-03-26 Thread Steven Price
C: linux-m...@vger.kernel.org Signed-off-by: Steven Price Acked-by: Paul Burton --- arch/mips/include/asm/pgtable-64.h | 8 1 file changed, 8 insertions(+) diff --git a/arch/mips/include/asm/pgtable-64.h b/arch/mips/include/asm/pgtable-64.h index 93a9dce31f25..42162877ac62 100644 --- a/arch/mips/i

[PATCH v6 08/19] x86: mm: Add p?d_large() definitions

2019-03-26 Thread Steven Price
ctions, so simply add #defines to prevent the generic versions (added in a later patch) from being picked up. We also need to add corresponding #undefs in dump_pagetables.c. This code will be removed when x86 is switched over to using the generic pagewalk code in a later patch. Signed-off-by: St

[PATCH v6 07/19] sparc: mm: Add p?d_large() definitions

2019-03-26 Thread Steven Price
re already provided, so add #defines to prevent the generic versions (added in a later patch) from being used. CC: "David S. Miller" CC: sparcli...@vger.kernel.org Signed-off-by: Steven Price Acked-by: David S. Miller --- arch/sparc/include/asm/pgtable_64.h | 2 ++ 1 file changed, 2

[PATCH v6 06/19] s390: mm: Add p?d_large() definitions

2019-03-26 Thread Steven Price
re already implemented as static inline functions. Add a #define so we don't pick up the generic version introduced in a later patch. CC: Martin Schwidefsky CC: Heiko Carstens CC: linux-s...@vger.kernel.org Signed-off-by: Steven Price --- arch/s390/include/asm/pgtable.h | 2 ++ 1 file change

[PATCH v6 10/19] mm: pagewalk: Add p4d_entry() and pgd_entry()

2019-03-26 Thread Steven Price
for all entries, not just transparent huge pages. Signed-off-by: Steven Price --- include/linux/mm.h | 15 +-- mm/pagewalk.c | 27 --- 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index 76769749

[PATCH v6 12/19] mm: pagewalk: Add test_p?d callbacks

2019-03-26 Thread Steven Price
It is useful to be able to skip parts of the page table tree even when walking without VMAs. Add test_p?d callbacks similar to test_walk but which are called just before a table at that level is walked. If the callback returns non-zero then the entire table is skipped. Signed-off-by: Steven Price

[PATCH v6 09/19] mm: Add generic p?d_large() macros

2019-03-26 Thread Steven Price
g defaults. Signed-off-by: Steven Price --- include/asm-generic/pgtable.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h index fa782fba51ee..9c5d0f73db67 100644 --- a/include/asm-generic/pgtable.h +++ b/i

[PATCH v6 11/19] mm: pagewalk: Allow walking without vma

2019-03-26 Thread Steven Price
r. Remove the requirement to have a vma except when trying to split huge pages. Signed-off-by: Steven Price --- mm/pagewalk.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/mm/pagewalk.c b/mm/pagewalk.c index 98373a9f88b8..dac0c848b458 10064

[PATCH v6 18/19] x86: mm: Convert ptdump_walk_pgd_level_core() to take an mm_struct

2019-03-26 Thread Steven Price
user page tables. This fake_mm structure is initialised with the minimum necessary for the generic page walk code. Signed-off-by: Steven Price --- arch/x86/mm/dump_pagetables.c | 36 --- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/arch/x

[PATCH v6 17/19] x86: mm: Convert ptdump_walk_pgd_level_debugfs() to take an mm_struct

2019-03-26 Thread Steven Price
To enable x86 to use the generic walk_page_range() function, the callers of ptdump_walk_pgd_level_debugfs() need to pass in the mm_struct. This means that ptdump_walk_pgd_level_core() is now always passed a valid pgd, so drop the support for pgd==NULL. Signed-off-by: Steven Price --- arch/x86

[PATCH v6 16/19] x86: mm+efi: Convert ptdump_walk_pgd_level() to take a mm_struct

2019-03-26 Thread Steven Price
ned-off-by: Steven Price --- arch/x86/include/asm/pgtable.h | 2 +- arch/x86/mm/dump_pagetables.c | 4 ++-- arch/x86/platform/efi/efi_32.c | 2 +- arch/x86/platform/efi/efi_64.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/i

[PATCH v6 13/19] arm64: mm: Convert mm/dump.c to use walk_page_range()

2019-03-26 Thread Steven Price
Now walk_page_range() can walk kernel page tables, we can switch the arm64 ptdump code over to using it, simplifying the code. Signed-off-by: Steven Price --- arch/arm64/mm/dump.c | 117 ++- 1 file changed, 59 insertions(+), 58 deletions(-) diff --git a

[PATCH v6 19/19] x86: mm: Convert dump_pagetables to use walk_page_range

2019-03-26 Thread Steven Price
callbacks which can decide to skip an entire tree of entries Signed-off-by: Steven Price --- arch/x86/mm/dump_pagetables.c | 280 ++ 1 file changed, 146 insertions(+), 134 deletions(-) diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c index

[PATCH v6 15/19] x86: mm: Point to struct seq_file from struct pg_state

2019-03-26 Thread Steven Price
: Steven Price --- arch/x86/mm/dump_pagetables.c | 69 ++- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c index e2b53db92c34..3d12ac031144 100644 --- a/arch/x86/mm/dump_pagetables.c +++ b/arch

[PATCH v6 14/19] x86: mm: Don't display pages which aren't present in debugfs

2019-03-26 Thread Steven Price
#x27;level' that the page table holes are at. Signed-off-by: Steven Price --- arch/x86/mm/dump_pagetables.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c index ca270fb00805..e2b53db92c34 100644 --

Re: [PATCH 2/6] arm64/mm: Enable memory hot remove

2019-04-03 Thread Steven Price
On 03/04/2019 13:37, Robin Murphy wrote: > [ +Steve ] > > Hi Anshuman, > > On 03/04/2019 05:30, Anshuman Khandual wrote: >> diff --git a/arch/arm64/include/asm/pgtable.h >> b/arch/arm64/include/asm/pgtable.h >> index de70c1e..858098e 100644 >> --- a/arch/arm64/include/asm/pgtable.h >> +++ b/ar

[PATCH v8 00/20] Convert x86 & arm64 to use generic page walk

2019-04-03 Thread Steven Price
in mm/pagewalk.c) Steven Price (20): arc: mm: Add p?d_large() definitions arm64: mm: Add p?d_large() definitions mips: mm: Add p?d_large() definitions powerpc: mm: Add p?d_large() definitions KVM: PPC: Book3S HV: Remove pmd_is_leaf() riscv: mm: Add p?d_large() definitions s39

[PATCH v8 02/20] arm64: mm: Add p?d_large() definitions

2019-04-03 Thread Steven Price
e using these page walking macros is implicitly relying on the page size/number of levels being the same as the kernel. So it is safe to reuse this for p?d_large() as it is an architectural restriction. CC: Catalin Marinas CC: Will Deacon Signed-off-by: Steven Price --- arch/arm64/include/asm/pgtabl

[PATCH v8 03/20] mips: mm: Add p?d_large() definitions

2019-04-03 Thread Steven Price
C: linux-m...@vger.kernel.org Signed-off-by: Steven Price Acked-by: Paul Burton --- arch/mips/include/asm/pgtable-64.h | 8 1 file changed, 8 insertions(+) diff --git a/arch/mips/include/asm/pgtable-64.h b/arch/mips/include/asm/pgtable-64.h index 93a9dce31f25..42162877ac62 100644 --- a/arch/mips/i

[PATCH v8 04/20] powerpc: mm: Add p?d_large() definitions

2019-04-03 Thread Steven Price
, so hoist it out of the CONFIG_TRANSPARENT_HUGEPAGE condition and implement the other levels. CC: Benjamin Herrenschmidt CC: Paul Mackerras CC: Michael Ellerman CC: linuxppc-...@lists.ozlabs.org CC: kvm-...@vger.kernel.org Signed-off-by: Steven Price --- arch/powerpc/include/asm/book3s/64

[PATCH v8 08/20] sparc: mm: Add p?d_large() definitions

2019-04-03 Thread Steven Price
re already provided, so add #defines to prevent the generic versions (added in a later patch) from being used. CC: "David S. Miller" CC: sparcli...@vger.kernel.org Signed-off-by: Steven Price Acked-by: David S. Miller --- arch/sparc/include/asm/pgtable_64.h | 2 ++ 1 file changed, 2

[PATCH v8 07/20] s390: mm: Add p?d_large() definitions

2019-04-03 Thread Steven Price
re already implemented as static inline functions. Add a #define so we don't pick up the generic version introduced in a later patch. CC: Martin Schwidefsky CC: Heiko Carstens CC: linux-s...@vger.kernel.org Signed-off-by: Steven Price --- arch/s390/include/asm/pgtable.h | 2 ++ 1 file change

[PATCH v8 09/20] x86: mm: Add p?d_large() definitions

2019-04-03 Thread Steven Price
ctions, so simply add #defines to prevent the generic versions (added in a later patch) from being picked up. We also need to add corresponding #undefs in dump_pagetables.c. This code will be removed when x86 is switched over to using the generic pagewalk code in a later patch. Signed-off-by: St

[PATCH v8 06/20] riscv: mm: Add p?d_large() definitions

2019-04-03 Thread Steven Price
, write or execute bit set on it. CC: Palmer Dabbelt CC: Albert Ou CC: linux-ri...@lists.infradead.org Signed-off-by: Steven Price --- arch/riscv/include/asm/pgtable-64.h | 7 +++ arch/riscv/include/asm/pgtable.h| 7 +++ 2 files changed, 14 insertions(+) diff --git a/arch/riscv/i

[PATCH v8 10/20] mm: Add generic p?d_large() macros

2019-04-03 Thread Steven Price
g defaults. Signed-off-by: Steven Price --- include/asm-generic/pgtable.h | 19 +++ 1 file changed, 19 insertions(+) diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h index fa782fba51ee..9c5d0f73db67 100644 --- a/include/asm-generic/pgtable.h +++ b/i

[PATCH v8 12/20] mm: pagewalk: Allow walking without vma

2019-04-03 Thread Steven Price
r. Remove the requirement to have a vma except when trying to split huge pages. Signed-off-by: Steven Price --- mm/pagewalk.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/mm/pagewalk.c b/mm/pagewalk.c index 98373a9f88b8..dac0c848b458 10064

[PATCH v8 11/20] mm: pagewalk: Add p4d_entry() and pgd_entry()

2019-04-03 Thread Steven Price
for all entries, not just transparent huge pages. Signed-off-by: Steven Price --- include/linux/mm.h | 15 +-- mm/pagewalk.c | 27 --- 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index 76769749

[PATCH v8 13/20] mm: pagewalk: Add test_p?d callbacks

2019-04-03 Thread Steven Price
It is useful to be able to skip parts of the page table tree even when walking without VMAs. Add test_p?d callbacks similar to test_walk but which are called just before a table at that level is walked. If the callback returns non-zero then the entire table is skipped. Signed-off-by: Steven Price

[PATCH v8 15/20] x86: mm: Don't display pages which aren't present in debugfs

2019-04-03 Thread Steven Price
#x27;level' that the page table holes are at. Signed-off-by: Steven Price --- arch/x86/mm/dump_pagetables.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c index ca270fb00805..e2b53db92c34 100644 --

[PATCH v8 14/20] arm64: mm: Convert mm/dump.c to use walk_page_range()

2019-04-03 Thread Steven Price
Now walk_page_range() can walk kernel page tables, we can switch the arm64 ptdump code over to using it, simplifying the code. Signed-off-by: Steven Price --- arch/arm64/mm/dump.c | 117 ++- 1 file changed, 59 insertions(+), 58 deletions(-) diff --git a

[PATCH v8 16/20] x86: mm: Point to struct seq_file from struct pg_state

2019-04-03 Thread Steven Price
: Steven Price --- arch/x86/mm/dump_pagetables.c | 69 ++- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c index e2b53db92c34..3d12ac031144 100644 --- a/arch/x86/mm/dump_pagetables.c +++ b/arch

[PATCH v8 18/20] x86: mm: Convert ptdump_walk_pgd_level_debugfs() to take an mm_struct

2019-04-03 Thread Steven Price
To enable x86 to use the generic walk_page_range() function, the callers of ptdump_walk_pgd_level_debugfs() need to pass in the mm_struct. This means that ptdump_walk_pgd_level_core() is now always passed a valid pgd, so drop the support for pgd==NULL. Signed-off-by: Steven Price --- arch/x86

[PATCH v8 19/20] x86: mm: Convert ptdump_walk_pgd_level_core() to take an mm_struct

2019-04-03 Thread Steven Price
user page tables. This fake_mm structure is initialised with the minimum necessary for the generic page walk code. Signed-off-by: Steven Price --- arch/x86/mm/dump_pagetables.c | 36 --- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/arch/x

[PATCH v8 20/20] x86: mm: Convert dump_pagetables to use walk_page_range

2019-04-03 Thread Steven Price
callbacks which can decide to skip an entire tree of entries Signed-off-by: Steven Price --- arch/x86/mm/dump_pagetables.c | 280 ++ 1 file changed, 146 insertions(+), 134 deletions(-) diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c index

[PATCH v8 17/20] x86: mm+efi: Convert ptdump_walk_pgd_level() to take a mm_struct

2019-04-03 Thread Steven Price
ned-off-by: Steven Price --- arch/x86/include/asm/pgtable.h | 2 +- arch/x86/mm/dump_pagetables.c | 4 ++-- arch/x86/platform/efi/efi_32.c | 2 +- arch/x86/platform/efi/efi_64.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/i

[PATCH] PM / devfreq: return PTR_ERR not NULL in try_then_request_governor()

2019-04-03 Thread Steven Price
. Fixes: 23c7b54ca1cd ("PM / devfreq: Fix devfreq_add_device() when drivers are built as modules.") Signed-off-by: Steven Price --- drivers/devfreq/devfreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfr

Re: [PATCH v8 00/20] Convert x86 & arm64 to use generic page walk

2019-04-10 Thread Steven Price
Hi all, Gentle ping: who can take this? Is there anything blocking this series? Thanks, Steve On 03/04/2019 15:16, Steven Price wrote: > Most architectures current have a debugfs file for dumping the kernel > page tables. Currently each architecture has to implement custom > func

[PATCH v3 02/34] arc: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
pmd_large() is needed. CC: Vineet Gupta CC: linux-snps-...@lists.infradead.org Signed-off-by: Steven Price --- arch/arc/include/asm/pgtable.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arc/include/asm/pgtable.h b/arch/arc/include/asm/pgtable.h index cf4be70d5892..0edd27bc7018 10

[PATCH v3 06/34] csky: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
, so add a stub returning 0. CC: Guo Ren Signed-off-by: Steven Price --- arch/csky/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/csky/include/asm/pgtable.h b/arch/csky/include/asm/pgtable.h index edfcbb25fd9f..4ffdb6bfbede 100644 --- a/arch/csky/include/asm/pgtab

[PATCH v3 03/34] arm: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
e() macros. Add a stub for PUD as we don't have huge pages at that level. CC: Russell King Signed-off-by: Steven Price --- arch/arm/include/asm/pgtable-2level.h | 1 + arch/arm/include/asm/pgtable-3level.h | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/include/asm/pgtable-2

[PATCH v3 04/34] arm64: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
cros which we can reuse for p?d_large(). CC: Catalin Marinas CC: Will Deacon Signed-off-by: Steven Price --- arch/arm64/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h index de70c1eabf33..6eef345db

[PATCH v3 00/34] Convert x86 & arm64 to use generic page walk

2019-02-27 Thread Steven Price
() function in mm/pagewalk.c) Steven Price (34): alpha: mm: Add p?d_large() definitions arc: mm: Add p?d_large() definitions arm: mm: Add p?d_large() definitions arm64: mm: Add p?d_large() definitions c6x: mm: Add p?d_large() definitions csky: mm: Add p?d_large() definitions hexagon: mm

[PATCH v3 01/34] alpha: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
s, so add stubs returning 0. CC: linux-al...@vger.kernel.org CC: Richard Henderson CC: Ivan Kokshaysky CC: Matt Turner Signed-off-by: Steven Price --- arch/alpha/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/alpha/include/asm/pgtable.h b/arch/alpha/includ

[PATCH v3 08/34] ia64: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
level, so implement stubs returning 0. CC: Tony Luck CC: Fenghua Yu CC: linux-i...@vger.kernel.org Signed-off-by: Steven Price --- arch/ia64/include/asm/pgtable.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/ia64/include/asm/pgtable.h b/arch/ia64/include/asm/pgtable.h index b1

[PATCH v3 07/34] hexagon: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
, so add a stub returning 0. CC: Richard Kuo CC: linux-hexa...@vger.kernel.org Signed-off-by: Steven Price --- arch/hexagon/include/asm/pgtable.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/hexagon/include/asm/pgtable.h b/arch/hexagon/include/asm/pgtable.h index 65125d0b02d

[PATCH v3 05/34] c6x: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
ver a large page, so just add stubs. CC: Mark Salter CC: Aurelien Jacquiot CC: linux-c6x-...@linux-c6x.org Signed-off-by: Steven Price --- arch/c6x/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/c6x/include/asm/pgtable.h b/arch/c6x/include/asm/pgtable.

[PATCH v3 11/34] mips: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
n 32 bit so add stubs returning 0. For 64 bit look for _PAGE_HUGE flag being set. This means exposing the flag when !CONFIG_MIPS_HUGE_TLB_SUPPORT. CC: Ralf Baechle CC: Paul Burton CC: James Hogan CC: linux-m...@vger.kernel.org Signed-off-by: Steven Price --- arch/mips/include/asm/pgta

[PATCH v3 21/34] um: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
s, so add stubs returning 0. CC: Jeff Dike CC: Richard Weinberger CC: Anton Ivanov CC: linux...@lists.infradead.org Signed-off-by: Steven Price --- arch/um/include/asm/pgtable-3level.h | 1 + arch/um/include/asm/pgtable.h| 1 + 2 files changed, 2 insertions(+) diff --git a/arch/um/incl

[PATCH v3 16/34] powerpc: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
l Ellerman CC: linuxppc-...@lists.ozlabs.org CC: kvm-...@vger.kernel.org Signed-off-by: Steven Price --- arch/powerpc/include/asm/book3s/32/pgtable.h | 1 + arch/powerpc/include/asm/book3s/64/pgtable.h | 27 --- arch/powerpc/include/asm/nohash/32/pgtable.h | 1 + .../include/asm

[PATCH v3 17/34] riscv: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
, write or execute bit set on it. CC: Palmer Dabbelt CC: Albert Ou CC: linux-ri...@lists.infradead.org Signed-off-by: Steven Price --- arch/riscv/include/asm/pgtable-64.h | 6 ++ arch/riscv/include/asm/pgtable.h| 6 ++ 2 files changed, 12 insertions(+) diff --git a/arch/riscv/i

[PATCH v3 19/34] sh: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
s, so add stubs returning 0. CC: Yoshinori Sato CC: Rich Felker CC: linux...@vger.kernel.org Signed-off-by: Steven Price --- arch/sh/include/asm/pgtable-3level.h | 1 + arch/sh/include/asm/pgtable_32.h | 1 + arch/sh/include/asm/pgtable_64.h | 1 + 3 files changed, 3 insertions(+) diff

[PATCH v3 09/34] m68k: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
s, so add stubs returning 0 CC: Geert Uytterhoeven CC: linux-m...@lists.linux-m68k.org Signed-off-by: Steven Price --- arch/m68k/include/asm/mcf_pgtable.h | 2 ++ arch/m68k/include/asm/motorola_pgtable.h | 2 ++ arch/m68k/include/asm/pgtable_no.h | 1 + arch/m68k/include/asm/sun3_pgtable.

[PATCH v3 18/34] s390: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
, so add a stub returning 0. CC: Martin Schwidefsky CC: Heiko Carstens CC: linux-s...@vger.kernel.org Signed-off-by: Steven Price --- arch/s390/include/asm/pgtable.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h ind

[PATCH v3 20/34] sparc: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
s, so add stubs returning 0. CC: "David S. Miller" CC: sparcli...@vger.kernel.org Signed-off-by: Steven Price --- arch/sparc/include/asm/pgtable_32.h | 10 ++ arch/sparc/include/asm/pgtable_64.h | 1 + 2 files changed, 11 insertions(+) diff --git a/arch/sparc/include/asm/p

[PATCH v3 13/34] nios2: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
, so add a stub returning 0. CC: Ley Foon Tan CC: nios2-...@lists.rocketboards.org Signed-off-by: Steven Price --- arch/nios2/include/asm/pgtable.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/nios2/include/asm/pgtable.h b/arch/nios2/include/asm/pgtable.h index db4f7d179220..b6ee

[PATCH v3 14/34] openrisc: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
, so add a stub returning 0. CC: Jonas Bonn CC: Stefan Kristiansson CC: Stafford Horne CC: openr...@lists.librecores.org Signed-off-by: Steven Price --- arch/openrisc/include/asm/pgtable.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/openrisc/include/asm/pgtable.h b/arch/openr

[PATCH v3 12/34] nds32: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
s, so add stubs returning 0. CC: Greentime Hu CC: Vincent Chen Signed-off-by: Steven Price --- arch/nds32/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/nds32/include/asm/pgtable.h b/arch/nds32/include/asm/pgtable.h index 9f52db930c00..202ac93c0a6b 100644 --- a/arc

[PATCH v3 22/34] unicore32: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
pages, so add a stub returning 0. CC: Guan Xuetao Signed-off-by: Steven Price --- arch/unicore32/include/asm/pgtable.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/unicore32/include/asm/pgtable.h b/arch/unicore32/include/asm/pgtable.h index a4f2bef37e70..b45429df8b99 100644 --- a

[PATCH v3 15/34] parisc: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
s, so add stubs returning 0. CC: "James E.J. Bottomley" CC: Helge Deller CC: linux-par...@vger.kernel.org Signed-off-by: Steven Price --- arch/parisc/include/asm/pgtable.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/parisc/include/asm/pgtable.h b/arch/parisc/in

[PATCH v3 10/34] microblaze: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
e pages, so add stubs returning 0. CC: Michal Simek Signed-off-by: Steven Price --- arch/microblaze/include/asm/pgtable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/microblaze/include/asm/pgtable.h b/arch/microblaze/include/asm/pgtable.h index 142d3f004848..044ea7dbb4cc 100644 --- a/

[PATCH v3 28/34] mm: pagewalk: Add test_p?d callbacks

2019-02-27 Thread Steven Price
It is useful to be able to skip parts of the page table tree even when walking without VMAs. Add test_p?d callbacks similar to test_walk but which are called just before a table at that level is walked. If the callback returns non-zero then the entire table is skipped. Signed-off-by: Steven Price

[PATCH v3 29/34] arm64: mm: Convert mm/dump.c to use walk_page_range()

2019-02-27 Thread Steven Price
Now walk_page_range() can walk kernel page tables, we can switch the arm64 ptdump code over to using it, simplifying the code. Signed-off-by: Steven Price --- arch/arm64/mm/dump.c | 108 +-- 1 file changed, 53 insertions(+), 55 deletions(-) diff --git a

[PATCH v3 31/34] x86/mm+efi: Convert ptdump_walk_pgd_level() to take a mm_struct

2019-02-27 Thread Steven Price
ned-off-by: Steven Price --- arch/x86/include/asm/pgtable.h | 2 +- arch/x86/mm/dump_pagetables.c | 4 ++-- arch/x86/platform/efi/efi_32.c | 2 +- arch/x86/platform/efi/efi_64.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/i

[PATCH v3 23/34] xtensa: mm: Add p?d_large() definitions

2019-02-27 Thread Steven Price
, so add a stub returning 0. CC: Chris Zankel CC: Max Filippov CC: linux-xte...@linux-xtensa.org Signed-off-by: Steven Price --- arch/xtensa/include/asm/pgtable.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/xtensa/include/asm/pgtable.h b/arch/xtensa/include/asm/pgtable.h ind

[PATCH v3 33/34] x86/mm: Convert ptdump_walk_pgd_level_core() to take an mm_struct

2019-02-27 Thread Steven Price
user page tables. This fake_mm structure is initialised with the minimum necessary for the generic page walk code. Signed-off-by: Steven Price --- arch/x86/mm/dump_pagetables.c | 36 --- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/arch/x

[PATCH v3 25/34] mm: pagewalk: Add p4d_entry() and pgd_entry()

2019-02-27 Thread Steven Price
for all entries, not just transparent huge pages. Signed-off-by: Steven Price --- include/linux/mm.h | 9 ++--- mm/pagewalk.c | 27 --- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/include/linux/mm.h b/include/linux/mm.h index 80bb6408fe73..

[PATCH v3 24/34] mm: Add generic p?d_large() macros

2019-02-27 Thread Steven Price
large(). For x86 move the existing definitions of p?d_large() so that they are only defined when the corresponding levels are not folded. Signed-off-by: Steven Price --- arch/x86/include/asm/pgtable.h | 21 - include/asm-generic/4level-fixup.h | 1 + includ

[PATCH v3 34/34] x86: mm: Convert dump_pagetables to use walk_page_range

2019-02-27 Thread Steven Price
callbacks which can decide to skip an entire tree of entries Signed-off-by: Steven Price --- arch/x86/mm/dump_pagetables.c | 279 ++ 1 file changed, 146 insertions(+), 133 deletions(-) diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c index

[PATCH v3 27/34] mm: pagewalk: Add 'depth' parameter to pte_hole

2019-02-27 Thread Steven Price
at is reported is the actual level where the entry is missing (ignoring any folding that is in place), i.e. any levels where PTRS_PER_P?D is set to 1 are ignored. Note that depth starts at 0 for a PGD so that PUD/PMD/PTE retain their natural numbers as levels 2/3/4. Signed-off-by: Steven Price --

[PATCH v3 32/34] x86/mm: Convert ptdump_walk_pgd_level_debugfs() to take an mm_struct

2019-02-27 Thread Steven Price
To enable x86 to use the generic walk_page_range() function, the callers of ptdump_walk_pgd_level_debugfs() need to pass in the mm_struct. This means that ptdump_walk_pgd_level_core() is now always passed a valid pgd, so drop the support for pgd==NULL. Signed-off-by: Steven Price --- arch/x86

[PATCH v3 30/34] x86/mm: Point to struct seq_file from struct pg_state

2019-02-27 Thread Steven Price
: Steven Price --- arch/x86/mm/dump_pagetables.c | 69 ++- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c index e3cdc85ce5b6..ecbaf30a6a2f 100644 --- a/arch/x86/mm/dump_pagetables.c +++ b/arch

[PATCH v3 26/34] mm: pagewalk: Allow walking without vma

2019-02-27 Thread Steven Price
r. Remove the requirement to have a vma except when trying to split huge pages. Signed-off-by: Steven Price --- mm/pagewalk.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/mm/pagewalk.c b/mm/pagewalk.c index 98373a9f88b8..dac0c848b458 10064

Re: [RESEND RFC PATCH v2] arm64: Exposes support for 32-bit syscalls

2021-02-12 Thread Steven Price
On 11/02/2021 20:21, sonicadvan...@gmail.com wrote: From: Ryan Houdek Sorry about the noise. I obviously don't work in this ecosystem. Didn't get any comments previously so I'm resending We're just coming up to a merge window, so I expect people are fairly busy at the moment. Also from a rev

Re: [RFC PATCH v8 5/5] KVM: arm64: ioctl to fetch/store tags in a guest

2021-02-10 Thread Steven Price
On 08/02/2021 17:31, Peter Maydell wrote: On Fri, 5 Feb 2021 at 13:58, Steven Price wrote: The VMM may not wish to have it's own mapping of guest memory mapped with PROT_MTE because this causes problems if the VMM has tag checking enabled (the guest controls the tags in physical RAM and

  1   2   3   4   5   6   7   >