Re: [PATCH 15/24] alpha: select ARCH_HAS_DEBUG_VM_PGTABLE

From: Magnus Lindholm

Date: Thu Sep 03 2026 - 18:52:18 EST


Hi Matt,

On Tue, Sep 1, 2026 at 5:51 PM Matt Turner <mattst88@xxxxxxxxx> wrote:
>
> CONFIG_DEBUG_VM_PGTABLE runs a boot-time self test over the page table
> helpers: the protection bit accessors, pte_modify(), the swap entry
> encoding including the exclusive marker, and, where the architecture
> supports them, the huge page helpers. Alpha implements everything the
> test needs for a three-level page table without huge page support.
>
> Assisted-by: Claude:claude-opus-5
> Signed-off-by: Matt Turner <mattst88@xxxxxxxxx>
> ---
> arch/alpha/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git ./arch/alpha/Kconfig ./arch/alpha/Kconfig
> index d7e2859aaedb..87fe81bc4709 100644
> --- ./arch/alpha/Kconfig
> +++ ./arch/alpha/Kconfig
> @@ -4,6 +4,7 @@ config ALPHA
> default y
> select ARCH_32BIT_USTAT_F_TINODE
> select ARCH_HAS_CURRENT_STACK_POINTER
> + select ARCH_HAS_DEBUG_VM_PGTABLE
> select ARCH_HAS_DMA_OPS if PCI
> select ARCH_HAS_FAST_MULTIPLIER
> select ARCH_HAS_GCOV_PROFILE_ALL
> --
> 2.54.0
>

I applied this manually on top of v7.3-rc1 plus Alpha GENERIC_ENTRY v5.
The Kconfig hunk needed a trivial context adjustment.

I built and booted it on a two-CPU UP2000 with
ARCH_HAS_DEBUG_VM_PGTABLE and DEBUG_VM_PGTABLE enabled. The boot-time
page-table helper validation ran without warnings.

This also appears to warrant changing Alpha from "TODO" to "ok" in
Documentation/features/debug/debug-vm-pgtable/arch-support.txt.

Tested-by: Magnus Lindholm <linmag7@xxxxxxxxx>
Reviewed-by: Magnus Lindholm <linmag7@xxxxxxxxx>

Regards,
Magnus