Re: [PATCH] alpha: cleanup dead ALPHA_LARGE_VMALLOC

From: Magnus Lindholm

Date: Wed Dec 02 2026 - 18:37:41 EST


Hi Julian, Al,

On Sun, Aug 16, 2026 at 7:41 PM Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
>
> On Sun, Aug 16, 2026 at 03:38:35PM +0100, Julian Braha wrote:
> > Currently, the ALPHA_LARGE_VMALLOC config option can never be enabled,
>
> > meaning that all references to it are dead code.
> >
> > Let's remove this dead option and its associated code.
> >
> > This dead code was found by kconfirm, a static analysis tool for Kconfig.
>
> See https://lore.kernel.org/all/20251130030146.GN3538@ZenIV/

This patch and Al's earlier RFC have been sitting there for a while.
Looking back at Al's RFC and the follow-up comments, David suggested
dropping ALPHA_LARGE_VMALLOC, and Linus questioned whether Alpha needed a
configurable size. Julian's patch is in line with those comments, it keeps
the existing 8 GiB vmalloc area in a single PGD slot, so there are no extra
slots to preallocate page tables for.

Julian, could you include Al's rationale and the link below in the commit
message? The old code relied on the fault handler to propagate new
PGD entries, which was racy. With a single slot, later vmalloc
updates go into page tables shared by all address spaces.

Could you also clarify the comment in callback_init()? With or without
SRM, the vmalloc PGD entry must be set up early so pgd_alloc() can
copy it into each new address space.

Link: https://lore.kernel.org/all/20251130030146.GN3538@ZenIV/

I build-tested Julian's patch on Alpha for-next with defconfig. The
kernel image and modules built successfully.

Regards,
Magnus