[PATCH] powerpc/mm: Fix boot warning with hugepages and CONFIG_DEBUG_VIRTUAL

Michael Ellerman patch-notifications at ellerman.id.au
Mon Aug 12 21:59:41 AEST 2024


On Thu, 08 Aug 2024 09:05:08 +0200, Christophe Leroy wrote:
> Booting with CONFIG_DEBUG_VIRTUAL leads to following warning when
> passing hugepage reservation on command line:
> 
>   Kernel command line: hugepagesz=1g hugepages=1 hugepagesz=64m hugepages=1 hugepagesz=256m hugepages=1 noreboot
>   HugeTLB: allocating 1 of page size 1.00 GiB failed.  Only allocated 0 hugepages.
>   ------------[ cut here ]------------
>   WARNING: CPU: 0 PID: 0 at arch/powerpc/include/asm/io.h:948 __alloc_bootmem_huge_page+0xd4/0x284
>   Modules linked in:
>   CPU: 0 PID: 0 Comm: swapper Not tainted 6.10.0-rc6-00396-g6b0e82791bd0-dirty #936
>   Hardware name: MPC8544DS e500v2 0x80210030 MPC8544 DS
>   NIP:  c1020240 LR: c10201d0 CTR: 00000000
>   REGS: c13fdd30 TRAP: 0700   Not tainted  (6.10.0-rc6-00396-g6b0e82791bd0-dirty)
>   MSR:  00021000 <CE,ME>  CR: 44084288  XER: 20000000
> 
> [...]

Applied to powerpc/fixes.

[1/1] powerpc/mm: Fix boot warning with hugepages and CONFIG_DEBUG_VIRTUAL
      https://git.kernel.org/powerpc/c/e7e846dc6c73fbc94ae8b4ec20d05627646416f2

cheers


More information about the Linuxppc-dev mailing list