Hi Andrew,
On Tue, 2025-09-09 at 19:13 +1000, Andrew Donnellan wrote:
> Support page table check on all PowerPC platforms. This works by serialising
> assignments, reassignments and clears of page table entries at each level in
> order to ensure that anonymous mappings have at most one
d-off-by: Andrew Donnellan
---
v15: new patch
v16: rebase
---
arch/arm64/include/asm/pgtable.h | 19 ---
arch/arm64/mm/hugetlbpage.c | 10 +-
2 files changed, 13 insertions(+), 16 deletions(-)
diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgta
inux.ibm.com: rebase]
Reviewed-by: Christophe Leroy
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Signed-off-by: Andrew Donnellan
Acked-by: Madhavan Srinivasan
---
arch/powerpc/Kconfig | 1 +
arch/powerpc/include/asm/book3s/32/pgtable.h | 7 ++-
arch
: don't change to unchecked for early boot/kernel mappings]
Signed-off-by: Rohan McLure
Signed-off-by: Andrew Donnellan
Acked-by: Madhavan Srinivasan
---
v13: don't use the unchecked version for early-boot kernel mappings (Pasha)
---
arch/powerpc/include/asm/pgtable.h | 2 ++
arch/
ingly.
Signed-off-by: Andrew Donnellan
---
v15: new patch
---
arch/arm64/include/asm/pgtable.h | 5 +++--
arch/arm64/mm/hugetlbpage.c | 7 ---
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h
index ed644be
ned-off-by: Andrew Donnellan
Acked-by: Madhavan Srinivasan
---
arch/powerpc/include/asm/book3s/32/pgtable.h | 5 +
arch/powerpc/include/asm/book3s/64/pgtable.h | 17 +
arch/powerpc/include/asm/nohash/pgtable.h| 5 +
arch/powerpc/include/asm/pgtable.h | 8 +
e pte, but instead in the address of the access.
[a...@linux.ibm.com: rebase, fix additional occurrence and loop handling]
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Acked-by: Ingo Molnar # x86
Acked-by: Alexandre Ghiti # riscv
Signed-off-by: Andrew Donnellan
---
v13: fix an
uired.
Link:
https://lore.kernel.org/linuxppc-dev/20230214015939.1853438-1-rmcl...@linux.ibm.com/
v5:
Link:
https://lore.kernel.org/linuxppc-dev/20221118002146.25979-1-rmcl...@linux.ibm.com/
Andrew Donnellan (2):
arm64/mm: Add addr parameter to __set_ptes_anysz()
arm64/mm: Add addr parameter to __p
a Tatashin
Acked-by: Ingo Molnar # x86
Acked-by: Alexandre Ghiti # riscv
Signed-off-by: Andrew Donnellan
---
v13: remove inaccurate comment on riscv in the commit message
v14: fix an x86 usage I missed (found by akpm)
v15: rebase, amend commit message
---
arch/arm64/include/asm/pgtable.h | 3 ++-
e pte, but instead in the address of the access.
[a...@linux.ibm.com: rebase on arm64 changes]
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Acked-by: Ingo Molnar # x86
Signed-off-by: Andrew Donnellan
---
v15: rebase
v17: rebase, fix conflict with riscv patch
---
arch/arm64/i
e pte, but instead in the address of the access.
[a...@linux.ibm.com: rebase on arm64 changes]
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Acked-by: Ingo Molnar # x86
Acked-by: Alexandre Ghiti # riscv
Signed-off-by: Andrew Donnellan
---
v15: rebase
---
arch/arm64/include/asm/pgta
provide support for page table check on powerpc.
[a...@linux.ibm.com: rebase on arm64 changes]
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Acked-by: Ingo Molnar # x86
Acked-by: Alexandre Ghiti # riscv
Signed-off-by: Andrew Donnellan
---
v15: rebase
---
arch/arm64/include/asm
platforms, this can be
inferred from the addr parameter.
[a...@linux.ibm.com: rebase on arm64 + riscv changes, update commit message]
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Acked-by: Alexandre Ghiti # riscv
Signed-off-by: Andrew Donnellan
---
v15: rebase, amend commit message
a Tatashin
Acked-by: Ingo Molnar # x86
Acked-by: Alexandre Ghiti # riscv
Signed-off-by: Andrew Donnellan
---
v13: remove inaccurate comment on riscv in the commit message
v14: rebase
v15: rebase, amend commit message
---
arch/arm64/include/asm/pgtable.h | 5 +++--
arch/riscv/include/asm/pgta
for when the store instruction
faults.
>
>
> > Although there are other places where there can be an error returned,
> > so I was wondering if that is what you were hitting or something else?
>
> Andrew was hitting the -EPERM because the memory area was read-only.
>
> Christophe
--
Andrew DonnellanOzLabs, ADL Canberra
a...@linux.ibm.com IBM Australia Limited
-by: Erhard Furtner
Signed-off-by: Andrew Donnellan
---
Ran into this while debugging an issue that Erhard reported to me about my
PAGE_TABLE_CHECK series on a G4, where updating a static key failed
silently, but only for one call site, leading to an incorrect reference
count later on. This looks
check_pte_clear(), which was in turn inlined ultimately into
debug_vm_pgtable().
This patch seems to fix the problem, so:
Tested-by: Andrew Donnellan
But I'm still curious about why I only see the issue when:
(a) CONFIG_KFENCE=y (even when disabled using kfence.sample_interval=0) -
noting that changin
c04b9f00] [c002d3b0] cpu_mitigations_off+0x0/0x14
[c04b9f40] [c00127ac] fixup_cpc710_pci64+0x0/0x20
[c04b9f70] [c035082c] static_call_init+0x108/0x140
[c04b9fa0] [c0342ed0] start_kernel+0x78/0x4a8
[c04b9ff0] [3500] 0x3500
Rebooting in 180 seconds..
--
Andrew DonnellanOzLabs, ADL Canberra
a..
inux.ibm.com: rebase]
Reviewed-by: Christophe Leroy
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Signed-off-by: Andrew Donnellan
Acked-by: Madhavan Srinivasan
---
arch/powerpc/Kconfig | 1 +
arch/powerpc/include/asm/book3s/32/pgtable.h | 7 ++-
arch
: don't change to unchecked for early boot/kernel mappings]
Signed-off-by: Rohan McLure
Signed-off-by: Andrew Donnellan
Acked-by: Madhavan Srinivasan
---
v13: don't use the unchecked version for early-boot kernel mappings (Pasha)
---
arch/powerpc/include/asm/pgtable.h | 2 ++
arch/
ned-off-by: Andrew Donnellan
Acked-by: Madhavan Srinivasan
---
arch/powerpc/include/asm/book3s/32/pgtable.h | 5 +
arch/powerpc/include/asm/book3s/64/pgtable.h | 17 +
arch/powerpc/include/asm/nohash/pgtable.h| 5 +
arch/powerpc/include/asm/pgtable.h | 8 +
,
include this stub as a BUILD_BUG().
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Signed-off-by: Andrew Donnellan
Acked-by: Madhavan Srinivasan
---
arch/powerpc/include/asm/pgtable.h | 9 +
1 file changed, 9 insertions(+)
diff --git a/arch/powerpc/include/asm/pgtable.h
b/arch
provide support for page table check on powerpc.
[a...@linux.ibm.com: rebase on arm64 changes]
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Acked-by: Ingo Molnar # x86
Signed-off-by: Andrew Donnellan
---
v15: rebase
---
arch/arm64/include/asm/pgtable.h | 6 +++---
arch/riscv/include
e pte, but instead in the address of the access.
[a...@linux.ibm.com: rebase, fix additional occurrence and loop handling]
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Acked-by: Ingo Molnar # x86
Signed-off-by: Andrew Donnellan
---
v13: fix an additional occurrence
v15: rebase
e pte, but instead in the address of the access.
[a...@linux.ibm.com: rebase on arm64 changes]
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Acked-by: Ingo Molnar # x86
Signed-off-by: Andrew Donnellan
---
v15: rebase
---
arch/arm64/include/asm/pgtable.h | 2 +-
arch/riscv/i
e pte, but instead in the address of the access.
[a...@linux.ibm.com: rebase on arm64 changes]
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Acked-by: Ingo Molnar # x86
Signed-off-by: Andrew Donnellan
---
v15: rebase
---
arch/arm64/include/asm/pgtable.h | 2 +-
arch/x86/include/asm
platforms, this can be
inferred from the addr parameter.
[a...@linux.ibm.com: rebase on arm64 + riscv changes, update commit message]
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Signed-off-by: Andrew Donnellan
---
v15: rebase, amend commit message
---
arch/arm64/include/asm
as access to the mm_struct * is required.
Link:
https://lore.kernel.org/linuxppc-dev/20230214015939.1853438-1-rmcl...@linux.ibm.com/
v5:
Link:
https://lore.kernel.org/linuxppc-dev/20221118002146.25979-1-rmcl...@linux.ibm.com/
Andrew Donnellan (2):
arm64/mm: Add addr parameter to __set_ptes_any
ingly.
Signed-off-by: Andrew Donnellan
---
v15: new patch
---
arch/arm64/include/asm/pgtable.h | 5 +++--
arch/arm64/mm/hugetlbpage.c | 7 ---
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h
index ed644be
a Tatashin
Acked-by: Ingo Molnar # x86
Signed-off-by: Andrew Donnellan
---
v13: remove inaccurate comment on riscv in the commit message
v14: rebase
v15: rebase, amend commit message
---
arch/arm64/include/asm/pgtable.h | 5 +++--
arch/riscv/include/asm/pgtable.h | 4 ++--
arch/x86/include/asm
a Tatashin
Acked-by: Ingo Molnar # x86
Signed-off-by: Andrew Donnellan
---
v13: remove inaccurate comment on riscv in the commit message
v14: fix an x86 usage I missed (found by akpm)
v15: rebase, amend commit message
---
arch/arm64/include/asm/pgtable.h | 3 ++-
arch/riscv/include/asm/pgta
d-off-by: Andrew Donnellan
---
v15: new patch
v16: rebase
---
arch/arm64/include/asm/pgtable.h | 19 ---
arch/arm64/mm/hugetlbpage.c | 10 +-
2 files changed, 13 insertions(+), 16 deletions(-)
diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgta
le() loop with the dedicated
> for_each_set_bit().
>
> Signed-off-by: Yury Norov (NVIDIA)
Reviewed-by: Andrew Donnellan
--
Andrew DonnellanOzLabs, ADL Canberra
a...@linux.ibm.com IBM Australia Limited
't checked whether or not this has practical impact given what we later
do with the bitmap - does this need to be bitmap_zalloc() to match the existing
use of kzalloc()?
--
Andrew DonnellanOzLabs, ADL Canberra
a...@linux.ibm.com IBM Australia Limited
interrupts itself.
Fix the comment to reflect the current behaviour.
Fixes: 6c85f52b10fd ("kvm/ppc: IRQ disabling cleanup")
Signed-off-by: Andrew Donnellan
---
arch/powerpc/kvm/powerpc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/p
Signed-off-by: Ryan Chung
An identical patch has already been merged in char-misc-next:
https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20250620024705.11321-1-ankitchauhan2...@gmail.com/
Andrew
--
Andrew DonnellanOzLabs, ADL Canberra
a...@linux.ibm.com IBM Australia Limited
.@linux.ibm.com/
Andrew Donnellan (2):
arm64/mm: Add addr parameter to __set_{ptes_anysz,ptes,pmds,puds}()
arm64/mm: Add addr parameter to __ptep_get_and_clear_anysz()
Rohan McLure (11):
mm/page_table_check: Reinstate address parameter in
[__]page_table_check_pud[s]_set()
mm/page_table_c
inux.ibm.com: rebase]
Reviewed-by: Christophe Leroy
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Signed-off-by: Andrew Donnellan
---
arch/powerpc/Kconfig | 1 +
arch/powerpc/include/asm/book3s/32/pgtable.h | 7 ++-
arch/powerpc/includ
platforms, this can be
inferred from the addr parameter.
[a...@linux.ibm.com: rebase on arm64 + riscv changes, update commit message]
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Signed-off-by: Andrew Donnellan
---
v15: rebase, amend commit message
---
arch/arm64/include/asm
a Tatashin
Acked-by: Ingo Molnar # x86
Signed-off-by: Andrew Donnellan
---
v13: remove inaccurate comment on riscv in the commit message
v14: rebase
v15: rebase, amend commit message
---
arch/arm64/include/asm/pgtable.h | 5 +++--
arch/riscv/include/asm/pgtable.h | 4 ++--
arch/x86/include/asm
ingly. While this
parameter won't (at present) be used on arm64, this will keep the usage of
the page table check interfaces consistent.
Signed-off-by: Andrew Donnellan
---
v15: new patch
---
arch/arm64/include/asm/pgtable.h | 5 +++--
arch/arm64/mm/hugetlbpage.c | 7 ---
2 files
a Tatashin
Acked-by: Ingo Molnar # x86
Signed-off-by: Andrew Donnellan
---
v13: remove inaccurate comment on riscv in the commit message
v14: fix an x86 usage I missed (found by akpm)
v15: rebase, amend commit message
---
arch/arm64/include/asm/pgtable.h | 3 ++-
arch/riscv/include/asm/pgta
e pte, but instead in the address of the access.
[a...@linux.ibm.com: rebase on arm64 changes]
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Acked-by: Ingo Molnar # x86
Signed-off-by: Andrew Donnellan
---
v15: rebase
---
arch/arm64/include/asm/pgtable.h | 2 +-
arch/riscv/i
...@linux.ibm.com: clarify commit message]
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Signed-off-by: Andrew Donnellan
---
v15: clarify commit message
---
arch/powerpc/include/asm/pgtable.h | 9 +
1 file changed, 9 insertions(+)
diff --git a/arch/powerpc/include/asm/pgtable.h
b
: don't change to unchecked for early boot/kernel mappings]
Signed-off-by: Rohan McLure
Signed-off-by: Andrew Donnellan
---
v13: don't use the unchecked version for early-boot kernel mappings (Pasha)
---
arch/powerpc/include/asm/pgtable.h | 2 ++
arch/powerpc/mm/book3s64/pgtable.c
ned-off-by: Andrew Donnellan
---
arch/powerpc/include/asm/book3s/32/pgtable.h | 5 +
arch/powerpc/include/asm/book3s/64/pgtable.h | 17 +
arch/powerpc/include/asm/nohash/pgtable.h| 5 +
arch/powerpc/include/asm/pgtable.h | 8
4 files changed, 35
e pte, but instead in the address of the access.
[a...@linux.ibm.com: rebase, fix additional occurrence and loop handling]
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Acked-by: Ingo Molnar # x86
Signed-off-by: Andrew Donnellan
---
v13: fix an additional occurrence
v15: rebase
provide support for page table check on powerpc.
[a...@linux.ibm.com: rebase on arm64 changes]
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Acked-by: Ingo Molnar # x86
Signed-off-by: Andrew Donnellan
---
v15: rebase
---
arch/arm64/include/asm/pgtable.h | 6 +++---
arch/riscv/include
e pte, but instead in the address of the access.
[a...@linux.ibm.com: rebase on arm64 changes]
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Acked-by: Ingo Molnar # x86
Signed-off-by: Andrew Donnellan
---
v15: rebase
---
arch/arm64/include/asm/pgtable.h | 2 +-
arch/x86/include/asm
) and __set_puds(). While this
parameter won't (at present) be used on arm64, this will keep the usage of
the page table check interfaces consistent.
Signed-off-by: Andrew Donnellan
---
v15: new patch
---
arch/arm64/include/asm/pgtable.h | 19 ---
arch/arm64/mm/hugetlbpage.c
t Chauhan
Thanks for the cleanup!
Acked-by: Andrew Donnellan
--
Andrew DonnellanOzLabs, ADL Canberra
a...@linux.ibm.com IBM Australia Limited
On Tue, 2025-06-10 at 09:33 +0200, Christophe Leroy wrote:
> This series requires a rebase after commit 91e40668e70a
> ("mm/page_table_check: Batch-check pmds/puds just like ptes")
Will respin!
>
--
Andrew DonnellanOzLabs, ADL Canberra
a...@linux.ibm.com IBM Australia Limited
ep
> Signed-off-by: Srish Srinivasan
> Reviewed-by: Mimi Zohar
> Reviewed-by: Stefan Berger
> Reviewed-by: Nayna Jain
Thanks for the fixes, minor comment about the docs below.
Reviewed-by: Andrew Donnellan
> ---
> Documentation/ABI/testing/sysfs-secvar |
GCC's inline optimizations get resolved.
> For
> s390 this requires forcing a couple functions to be inline with
I assume you mean powerpc here, though I'm sure my employer is happy
that you're at least confusing us with IBM's other architecture :)
--
Andrew DonnellanOzLabs,
explicitly in a comment that we default to static
mode in the event of any weird errors.
--
Andrew DonnellanOzLabs, ADL Canberra
a...@linux.ibm.com IBM Australia Limited
ect, thus triggering the
password verification. In which case, we do need to catch -EPERM.
Thanks for correcting me!
--
Andrew DonnellanOzLabs, ADL Canberra
a...@linux.ibm.com IBM Australia Limited
On Fri, 2025-04-11 at 15:43 +1000, Andrew Donnellan wrote:
> Support page table check on all PowerPC platforms. This works by
> serialising assignments, reassignments and clears of page table
> entries at each level in order to ensure that anonymous mappings
> have at most one writa
ION to always be world-readable, I think? In which
case it shouldn't return H_AUTHORITY / -EPERM, ever, and if it does
that's an error which should be handled as an error. Or am I
misinterpreting the spec here?
--
Andrew DonnellanOzLabs, ADL Canberra
a...@linux.ibm.com IBM Australia Limited
dynamic would be bit confusing? I mean being static is clear, but
> what they relate v1 to? Or did you mean to have "ibm,plpks-sb-static"
> and "ibm,plpks-sb-dynamic" for the two modes?
>
I don't feel strongly about this, as long as it's well documented.
--
Andrew DonnellanOzLabs, ADL Canberra
a...@linux.ibm.com IBM Australia Limited
by: Souradeep
> Signed-off-by: Srish Srinivasan
> Reviewed-by: Mimi Zohar
> Reviewed-by: Stefan Berger
I'm assuming it's been determined that there's no value in letting
userspace see db/dbx/etc in a read-only way in static mode?
With one comment below:
Reviewe
y us, takes the form "ibm,plpks-
> sb-v".Set
> +// the secvar format property to either "ibm,plpks-sb-v1" or
> "ibm,plpks-sb-v0",
> +// based on the key management mode, and return the length of the
> secvar format
> +// property.
> +static ssize_t plpks_secvar_format(char *buf, size_t bufsize)
> +{
> + u8 mode;
> +
> + mode = plpks_get_sb_keymgmt_mode();
> + return snprintf(buf, bufsize, "ibm,plpks-sb-v%hhu", mode);
It might be better to use something like "ibm,plpks-sb-static" in place
of "ibm,plpks-sb-v0" to make it instantly clear that static mode
doesn't use the same version numbering scheme as dynamic mode.
> }
>
> static int plpks_max_size(u64 *max_size)
--
Andrew DonnellanOzLabs, ADL Canberra
a...@linux.ibm.com IBM Australia Limited
agement mode is dynamic.
>
> Allow loading of the trustedcadb and moduledb keys even in the static
> key management mode, where the secvar format string takes the form
> "ibm,plpks-sb-v0".
>
> Signed-off-by: Srish Srinivasan
> Reviewed-by: Mimi Zohar
> Reviewed-
On Thu, 2025-03-13 at 16:10 -0700, Andrew Morton wrote:
> On Wed, 12 Feb 2025 03:13:57 +1100 Andrew Donnellan
> wrote:
>
> > This reverts commit 931c38e16499 ("mm/page_table_check: remove
> > unused
> > parameter in [__]page_table_check_pud_clear").
e pte, but instead in the address of the access.
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
[ajd: rebase and fix additional occurrence]
Signed-off-by: Andrew Donnellan
---
v13: fix an additional occurrence
---
arch/arm64/include/asm/pgtable.h | 2 +-
arch/riscv/include/asm/pgta
provide support for page table check on powerpc.
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
[ajd: rebase on arm64 changes]
Signed-off-by: Andrew Donnellan
---
arch/arm64/include/asm/pgtable.h | 6 +++---
arch/riscv/include/asm/pgtable.h | 6 +++---
arch/x86/include/asm/pgtable.h
,
include this stub as a BUILD_BUG().
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Signed-off-by: Andrew Donnellan
---
arch/powerpc/include/asm/pgtable.h | 9 +
1 file changed, 9 insertions(+)
diff --git a/arch/powerpc/include/asm/pgtable.h
b/arch/powerpc/include/asm/pgtable.h
e pte, but instead in the address of the access.
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
[ajd: rebase on riscv and mm/page_table_check.c changes, remove riscv
commit message comment]
Signed-off-by: Andrew Donnellan
---
v13: remove inaccurate comment on riscv in the commit message
)
pte_user() is no longer required to be present on all platforms as it
may be equivalent to or implied by pte_read(). Hence implementations of
pte_user_accessible_page() are specialised.
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
[ajd: rebase and fix commit message]
Signed-off-
e pte, but instead in the address of the access.
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Signed-off-by: Andrew Donnellan
---
arch/x86/include/asm/pgtable.h | 2 +-
include/linux/page_table_check.h | 11 +++
include/linux/pgtable.h | 2 +-
mm/page_tab
form the
addr parameter.
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
[ajd: rebase]
Signed-off-by: Andrew Donnellan
---
arch/arm64/include/asm/pgtable.h | 2 +-
arch/riscv/include/asm/pgtable.h | 2 +-
include/linux/page_table_check.h | 12 +++-
include/linux/pgtable.h
McLure
[ajd: don't change to unchecked for early boot/kernel mappings]
Signed-off-by: Andrew Donnellan
---
v13: don't use the unchecked version for early-boot kernel mappings (Pasha)
---
arch/powerpc/include/asm/pgtable.h | 2 ++
arch/powerpc/mm/book3s64/pgtable.c | 6 ++
d-by: Christophe Leroy
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
[ajd: rebase]
Signed-off-by: Andrew Donnellan
---
arch/powerpc/Kconfig | 1 +
arch/powerpc/include/asm/book3s/32/pgtable.h | 7 ++-
arch/powerpc/include/asm/book3s/64/pgtable.h | 45
Support page table check on all PowerPC platforms. This works by
serialising assignments, reassignments and clears of page table
entries at each level in order to ensure that anonymous mappings
have at most one writable consumer, and likewise that file-backed
mappings are not simultaneously also an
e pte, but instead in the address of the access.
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
[ajd: rebase on riscv changes, remove riscv commit message comment]
Signed-off-by: Andrew Donnellan
---
v13: remove inaccurate comment on riscv in the commit message
v14: fix an x86 usage I mis
e pte, but instead in the address of the access.
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Signed-off-by: Andrew Donnellan
---
arch/arm64/include/asm/pgtable.h | 2 +-
arch/riscv/include/asm/pgtable.h | 2 +-
arch/x86/include/asm/pgtable.h | 2 +-
include/linux/page_table_ch
12093537.614161...@infradead.org/T/#u
>
> Signed-off-by: Shrikanth Hegde
Acked-by: Andrew Donnellan
--
Andrew DonnellanOzLabs, ADL Canberra
a...@linux.ibm.com IBM Australia Limited
de churn here, I would prefer
> not
> use it.
I think this is fine.
--
Andrew DonnellanOzLabs, ADL Canberra
a...@linux.ibm.com IBM Australia Limited
12093537.614161...@infradead.org/T/#u
>
> Signed-off-by: Shrikanth Hegde
The subject line of this patch misspells powernv and ocxl.
Otherwise this looks like a nice cleanup.
--
Andrew DonnellanOzLabs, ADL Canberra
a...@linux.ibm.com IBM Australia Limited
On Wed, 2025-02-12 at 03:13 +1100, Andrew Donnellan wrote:
> Support page table check on all PowerPC platforms. This works by
> serialising assignments, reassignments and clears of page table
> entries at each level in order to ensure that anonymous mappings
> have at most one writa
think I'd update this to say:
The specification was developed by the OpenCAPI Consortium, and is now
available from the `Compute Express Link Consortium
<https://computeexpresslink.org/resource/opencapi-specification-archive/>_.
Thanks,
Andrew
--
Andrew DonnellanOzLabs, ADL Canberra
a...@linux.ibm.com IBM Australia Limited
tate=*
v1->v2: rebase and update docs
v2->v3: rebase on docs changes
Andrew Donnellan (1):
cxl: Remove driver
.../ABI/{obsolete => removed}/sysfs-class-cxl | 55 +-
Documentation/arch/powerpc/cxl.rst| 470
Documentation/arch/powerpc/index.rst |
as merged.
Fix the cross-reference, and also add a deprecation warning.
Fixes: 5731d41af924 ("cxl: Deprecate driver")
Reported-by: Bagas Sanjaya
Signed-off-by: Andrew Donnellan
---
Maddy: can we take this by powerpc-fixes?
---
Documentation/arch/powerpc/cxl.rst | 3 ++-
1 file c
gt; 5731d41af924 ("cxl: Deprecate driver")
>
> The reference is from Documentation/arch/powerpc/cxl.rst
>
> I don't know why this has appeared just now.
I think this warning is added by ff7ff6eb4f809 ("docs: media: Allow
creating cross-references for RC ABI&
s moved to obsolete/ by 5731d41af924b which was merged in rc1,
and will be moved again to removed/ by [0].
Andrew
[0]
https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20250203072801.365551-3-...@linux.ibm.com/
--
Andrew DonnellanOzLabs, ADL Canberra
a...@linux.ibm.com IBM Australia Limited
d-by: Christophe Leroy
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
[ajd: rebase]
Signed-off-by: Andrew Donnellan
---
arch/powerpc/Kconfig | 1 +
arch/powerpc/include/asm/book3s/32/pgtable.h | 7 ++-
arch/powerpc/include/asm/book3s/64/pgtable.h | 45
McLure
[ajd: don't change to unchecked for early boot/kernel mappings]
Signed-off-by: Andrew Donnellan
---
v13: don't use the unchecked version for early-boot kernel mappings (Pasha)
---
arch/powerpc/include/asm/pgtable.h | 2 ++
arch/powerpc/mm/book3s64/pgtable.c | 6 ++
)
pte_user() is no longer required to be present on all platforms as it
may be equivalent to or implied by pte_read(). Hence implementations of
pte_user_accessible_page() are specialised.
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
[ajd: rebase and fix commit message]
Signed-off-
,
include this stub as a BUILD_BUG().
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Signed-off-by: Andrew Donnellan
---
arch/powerpc/include/asm/pgtable.h | 9 +
1 file changed, 9 insertions(+)
diff --git a/arch/powerpc/include/asm/pgtable.h
b/arch/powerpc/include/asm/pgtable.h
provide support for page table check on powerpc.
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
[ajd: rebase on arm64 changes]
Signed-off-by: Andrew Donnellan
---
arch/arm64/include/asm/pgtable.h | 6 +++---
arch/riscv/include/asm/pgtable.h | 6 +++---
arch/x86/include/asm/pgtable.h
e pte, but instead in the address of the access.
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
[ajd: rebase and fix additional occurrence]
Signed-off-by: Andrew Donnellan
---
v13: fix an additional occurrence
---
arch/arm64/include/asm/pgtable.h | 2 +-
arch/riscv/include/asm/pgta
e pte, but instead in the address of the access.
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Signed-off-by: Andrew Donnellan
---
arch/arm64/include/asm/pgtable.h | 2 +-
arch/riscv/include/asm/pgtable.h | 2 +-
arch/x86/include/asm/pgtable.h | 2 +-
include/linux/page_table_ch
e pte, but instead in the address of the access.
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
Signed-off-by: Andrew Donnellan
---
arch/x86/include/asm/pgtable.h | 2 +-
include/linux/page_table_check.h | 11 +++
include/linux/pgtable.h | 2 +-
mm/page_tab
e pte, but instead in the address of the access.
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
[ajd: rebase on riscv and mm/page_table_check.c changes, remove riscv
commit message comment]
Signed-off-by: Andrew Donnellan
---
v13: remove inaccurate comment on riscv in the commit message
form the
addr parameter.
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
[ajd: rebase]
Signed-off-by: Andrew Donnellan
---
arch/arm64/include/asm/pgtable.h | 2 +-
arch/riscv/include/asm/pgtable.h | 2 +-
include/linux/page_table_check.h | 12 +++-
include/linux/pgtable.h
e pte, but instead in the address of the access.
Signed-off-by: Rohan McLure
Reviewed-by: Pasha Tatashin
[ajd: rebase on riscv changes, remove riscv commit message comment]
Signed-off-by: Andrew Donnellan
---
v13: remove inaccurate comment on riscv in the commit message
---
arch/arm64/include/asm
Support page table check on all PowerPC platforms. This works by
serialising assignments, reassignments and clears of page table
entries at each level in order to ensure that anonymous mappings
have at most one writable consumer, and likewise that file-backed
mappings are not simultaneously also an
driver, nor does it affect
Compute Express Link (the other cxl, an amusing but unfortunate naming
collision).
v1:
https://patchwork.ozlabs.org/project/linuxppc-dev/list/?series=436014&state=*
v1->v2: rebase and update docs
Andrew Donnellan (2):
cxlflash: Remove driver
cxl: Remove
ßschuh
Acked-by: Andrew Donnellan
noting that we're hoping to remove this driver shortly.
--
Andrew DonnellanOzLabs, ADL Canberra
a...@linux.ibm.com IBM Australia Limited
ßschuh
Acked-by: Andrew Donnellan
--
Andrew DonnellanOzLabs, ADL Canberra
a...@linux.ibm.com IBM Australia Limited
On Tue, 2024-12-17 at 14:26 +1100, Michael Ellerman wrote:
> It would be good to explain that this only removes support for the
> original CAPI interface - not the Power9 "OpenCAPI", which is still
> supported by drivers/misc/ocxl.
Agreed, will mention if/when I respin this
-
1 - 100 of 1106 matches
Mail list logo