public inbox for linuxppc-dev@ozlabs.org
 help / color / mirror / Atom feed
* powerpc/fadump: CMA init is failing
@ 2026-02-27 15:19 Sourabh Jain
  2026-02-27 17:09 ` Ritesh Harjani
  0 siblings, 1 reply; 6+ messages in thread
From: Sourabh Jain @ 2026-02-27 15:19 UTC (permalink / raw)
  To: Ritesh Harjani (IBM), Madhavan Srinivasan, linuxppc-dev,
	Michael Ellerman
  Cc: Donet Tom, Hari Bathini, Mahesh J Salgaonkar

I noticed CMA init for fadump crashkernel memory is failing.

[    0.000000] cma: pageblock_order not yet initialized. Called during 
early boot?
[    0.000000] fadump: Failed to init cma area for firmware-assisted 
dump,-22


kernel command-line:
BOOT_IMAGE=(ieee1275//vdevice/v-scsi@30000070/disk@8100000000000000,msdos2)/vmlinuz-7.0.0-rc1+ 
root=/dev/mapper/rhel_ltcden3--lp12-root ro 
rd.lvm.lv=rhel_ltcden3-lp12/root rd.lvm.lv=rhel_ltcden3-lp12/swap 
fadump=on crashkernel=3G


Same issue with kdump CMA reservation:

[    0.000000][    T0] cma: pageblock_order not yet initialized. Called 
during early boot?
[    0.000000][    T0] cma: Failed to reserve 200 MiB
[    0.000000][    T0] cma: pageblock_order not yet initialized. Called 
during early boot?
[    0.000000][    T0] cma: Failed to reserve 100 MiB
[    0.000000][    T0] cma: pageblock_order not yet initialized. Called 
during early boot?
[    0.000000][    T0] cma: Failed to reserve 50 MiB
[    0.000000][    T0] cma: pageblock_order not yet initialized. Called 
during early boot?
[    0.000000][    T0] cma: Failed to reserve 25 MiB
[    0.000000][    T0] cma: pageblock_order not yet initialized. Called 
during early boot?
[    0.000000][    T0] cma: Failed to reserve 12 MiB
[    0.000000][    T0] cma: pageblock_order not yet initialized. Called 
during early boot?
[    0.000000][    T0] cma: Failed to reserve 6 MiB
[    0.000000][    T0] cma: pageblock_order not yet initialized. Called 
during early boot?
[    0.000000][    T0] cma: Failed to reserve 3 MiB
[    0.000000][    T0] cma: pageblock_order not yet initialized. Called 
during early boot?
[    0.000000][    T0] cma: Failed to reserve 1 MiB
[    0.000000][    T0] cma: pageblock_order not yet initialized. Called 
during early boot?
[    0.000000][    T0] cma: Failed to reserve 0 MiB
[    0.000000][    T0] cma: pageblock_order not yet initialized. Called 
during early boot?
[    0.000000][    T0] cma: Failed to reserve 0 MiB
[    0.000000][    T0] cma: pageblock_order not yet initialized. Called 
during early boot?
[    0.000000][    T0] cma: Failed to reserve 0 MiB
[    0.000000][    T0] cma: pageblock_order not yet initialized. Called 
during early boot?
[    0.000000][    T0] cma: Failed to reserve 0 MiB
[    0.000000][    T0] cma: pageblock_order not yet initialized. Called 
during early boot?
[    0.000000][    T0] cma: Failed to reserve 0 MiB
[    0.000000][    T0] crashkernel CMA reservation failed: 200 MB 
requested, 0 MB reserved in 0 ranges



kernel command-line:
# cat /proc/cmdline
noreboot crashkernel=200M crashkernel=200M,cma

Should be easy to reproduce it with powerpc defconfig:
make ARCH=powerpc defconfig

The crashkernel CMA init for fadump and kdump happens in:
arch/powerpc/kernel/setup-common.c -> setup_arch()

     initmem_init();

     /*
      * Reserve large chunks of memory for use by CMA for kdump, fadump, 
KVM and
      * hugetlb. These must be called after initmem_init(), so that
      * pageblock_order is initialised.
      */
     fadump_cma_init();
     kdump_cma_reserve();
     kvm_cma_reserve();

Has something changed for pageblock_order initialization?

- Sourabh Jain


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-02-28 17:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-27 15:19 powerpc/fadump: CMA init is failing Sourabh Jain
2026-02-27 17:09 ` Ritesh Harjani
2026-02-27 20:50   ` Mike Rapoport
2026-02-28  2:35     ` Ritesh Harjani
2026-02-28 13:46       ` Sourabh Jain
2026-02-28 17:54         ` Ritesh Harjani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox