mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
Every architecture that supports hugetlb_cma command line parameter reserves CMA areas for hugetlb during setup_arch(). This obfuscates the ordering of hugetlb CMA initialization with respect to the rest initialization of the core MM. Introduce arch_hugetlb_cma_order() callback to allow architectures report the desired order-per-bit of CMA areas and provide a week implementation of arch_hugetlb_cma_order() for architectures that don't support hugetlb with CMA. Use this callback in hugetlb_cma_reserve() instead if passing the order as parameter and call hugetlb_cma_reserve() from mm_core_init_early() rather than have it spread over architecture specific code. Link: https://lkml.kernel.org/r/20260111082105.290734-28-rppt@kernel.org Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Cc: Alexander Gordeev <agordeev@linux.ibm.com> Cc: Alex Shi <alexs@kernel.org> Cc: Andreas Larsson <andreas@gaisler.com> Cc: "Borislav Petkov (AMD)" <bp@alien8.de> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: David Hildenbrand <david@kernel.org> Cc: David S. Miller <davem@davemloft.net> Cc: Dinh Nguyen <dinguyen@kernel.org> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Guo Ren <guoren@kernel.org> Cc: Heiko Carstens <hca@linux.ibm.com> Cc: Helge Deller <deller@gmx.de> Cc: Huacai Chen <chenhuacai@kernel.org> Cc: Ingo Molnar <mingo@redhat.com> Cc: Johannes Berg <johannes@sipsolutions.net> Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Klara Modin <klarasmodin@gmail.com> Cc: Liam Howlett <liam.howlett@oracle.com> Cc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Cc: Magnus Lindholm <linmag7@gmail.com> Cc: Matt Turner <mattst88@gmail.com> Cc: Max Filippov <jcmvbkbc@gmail.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Michal Hocko <mhocko@suse.com> Cc: Michal Simek <monstr@monstr.eu> Cc: Muchun Song <muchun.song@linux.dev> Cc: Oscar Salvador <osalvador@suse.de> Cc: Palmer Dabbelt <palmer@dabbelt.com> Cc: Pratyush Yadav <pratyush@kernel.org> Cc: Richard Weinberger <richard@nod.at> Cc: "Ritesh Harjani (IBM)" <ritesh.list@gmail.com> Cc: Russell King <linux@armlinux.org.uk> Cc: Stafford Horne <shorne@gmail.com> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Vasily Gorbik <gor@linux.ibm.com> Cc: Vineet Gupta <vgupta@kernel.org> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Will Deacon <will@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
||
|---|---|---|
| .. | ||
| 80211 | ||
| acpi | ||
| backlight | ||
| coco | ||
| crypto | ||
| cxl | ||
| dmaengine | ||
| driver-model | ||
| early-userspace | ||
| firmware | ||
| fpga | ||
| gpio | ||
| hte | ||
| i3c | ||
| iio | ||
| md | ||
| media | ||
| mei | ||
| memory-devices | ||
| mmc | ||
| mtd | ||
| nfc | ||
| nvdimm | ||
| pci | ||
| phy | ||
| pldmfw | ||
| pm | ||
| rapidio | ||
| serial | ||
| soundwire | ||
| surface_aggregator | ||
| thermal | ||
| tty | ||
| usb | ||
| virtio | ||
| xilinx | ||
| aperture.rst | ||
| auxiliary_bus.rst | ||
| basics.rst | ||
| clk.rst | ||
| component.rst | ||
| connector.rst | ||
| console.rst | ||
| devfreq.rst | ||
| device-io.rst | ||
| device_link.rst | ||
| dma-buf.rst | ||
| dpll.rst | ||
| edac.rst | ||
| eisa.rst | ||
| extcon.rst | ||
| firewire.rst | ||
| frame-buffer.rst | ||
| generic-counter.rst | ||
| generic_pt.rst | ||
| hsi.rst | ||
| hw-recoverable-errors.rst | ||
| i2c.rst | ||
| index.rst | ||
| infiniband.rst | ||
| infrastructure.rst | ||
| input.rst | ||
| interconnect.rst | ||
| io-mapping.rst | ||
| io_ordering.rst | ||
| ioctl.rst | ||
| ipmb.rst | ||
| ipmi.rst | ||
| isa.rst | ||
| libata.rst | ||
| mailbox.rst | ||
| men-chameleon-bus.rst | ||
| message-based.rst | ||
| misc_devices.rst | ||
| miscellaneous.rst | ||
| mtdnand.rst | ||
| ntb.rst | ||
| nvmem.rst | ||
| parport-lowlevel.rst | ||
| pin-control.rst | ||
| pps.rst | ||
| ptp.rst | ||
| pwm.rst | ||
| pwrseq.rst | ||
| regulator.rst | ||
| reset.rst | ||
| rfkill.rst | ||
| s390-drivers.rst | ||
| scsi.rst | ||
| slimbus.rst | ||
| sm501.rst | ||
| spi.rst | ||
| switchtec.rst | ||
| sync_file.rst | ||
| target.rst | ||
| tee.rst | ||
| uio-howto.rst | ||
| vfio-mediated-device.rst | ||
| vfio-pci-device-specific-driver-acceptance.rst | ||
| vfio.rst | ||
| vme.rst | ||
| w1.rst | ||
| wbrf.rst | ||
| wmi.rst | ||
| xillybus.rst | ||
| zorro.rst | ||