[PATCH v3 2/5] powerpc/mm: drop powerpc vmemmap_can_optimize()
Oscar Salvador (SUSE)
osalvador at kernel.org
Sat Nov 7 09:41:46 PST 2026
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 at bytedance.com>
Reviewed-by: Oscar Salvador (SUSE) <osalvador at kernel.org>
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
More information about the linux-riscv
mailing list