Re: [PATCH v3 2/5] powerpc/mm: drop powerpc vmemmap_can_optimize()

From: Oscar Salvador (SUSE)

Date: Sat Nov 07 2026 - 14:16:28 EST


On Sat, Nov 07, 2026 at 12:31:19PM +0800, Muchun Song wrote:
> Whether the optimized mapping can be used is now decided in the
> architecture-specific vmemmap_populate() path. When PowerPC has to fall
> back, such as on Hash MMU, it can disable optimization for the populated
> vmemmap range there.
>
> Add section_vmemmap_optimization_disable() to centralize this fallback,
> use it in the Hash MMU path, and drop the radix-specific
> vmemmap_can_optimize() override.
>
> Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>

Reviewed-by: Oscar Salvador (SUSE) <osalvador@xxxxxxxxxx>

I was about to complain why you do not go ahead and drop vmemmap_can_optimize
but then I saw patch#4 :-)



--
Oscar Salvador
SUSE Labs