aboutsummaryrefslogtreecommitdiffstats
path: root/arch/riscv/mm/init.c
AgeCommit message (Expand)AuthorFilesLines
2025-11-19riscv: Remove __GFP_HIGHMEM maskingVishal Moola (Oracle)1-2/+2
2025-10-02Merge tag 'mm-stable-2025-10-01-19-00' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-2/+2
2025-09-21riscv: stop calling page_address() in free_pages()Vishal Moola (Oracle)1-2/+2
2025-09-19riscv: errata: Fix the PAUSE Opcode for MIPS P8700Djordje Todorovic1-0/+1
2025-09-18riscv: mm: Use mmu-type from FDT to limit SATP modeJunhui Liu1-3/+8
2025-09-17riscv: mm: Return intended SATP mode for noXlvl optionsJunhui Liu1-2/+2
2025-07-19Add a new optional ",cma" suffix to the crashkernel= command line optionJiri Bohac1-1/+1
2025-05-11riscv: mm: call PUD/P4D ctor in special kernel pgtable allocKevin Brodsky1-8/+8
2025-05-11riscv: mm: clarify ctor mm argument in alloc_{pte,pmd}_lateKevin Brodsky1-0/+6
2025-05-11mm: pass mm down to pagetable_{pte,pmd}_ctorKevin Brodsky1-2/+2
2025-04-04Merge tag 'riscv-for-linus-6.15-mw1' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-48/+49
2025-04-01Merge tag 'mm-nonmm-stable-2025-03-30-18-23' of git://git.kernel.org/pub/scm/...Linus Torvalds1-4/+2
2025-03-26riscv: Remove CONFIG_PAGE_OFFSETSamuel Holland1-6/+2
2025-03-26riscv: Support CONFIG_RELOCATABLE on riscv32Samuel Holland1-9/+8
2025-03-26riscv: Support CONFIG_RELOCATABLE on NOMMUSamuel Holland1-38/+44
2025-03-17arch, mm: make releasing of memory to page allocator more explicitMike Rapoport (Microsoft)1-5/+0
2025-03-17arch, mm: introduce arch_mm_preinitMike Rapoport (Microsoft)1-2/+6
2025-03-17arch, mm: set high_memory in free_area_init()Mike Rapoport (Microsoft)1-1/+0
2025-03-17arch, mm: set max_mapnr when allocating memory map for FLATMEMMike Rapoport (Microsoft)1-1/+0
2025-03-16crash: remove an unused argument from reserve_crashkernel_generic()Sourabh Jain1-4/+2
2025-01-31Merge tag 'riscv-for-linus-6.14-mw1' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-2/+6
2025-01-29riscv: add a warning when physical memory address overflowsYunhui Cui1-2/+6
2025-01-26Merge tag 'mm-stable-2025-01-26-14-59' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-2/+2
2025-01-25mm: pgtable: introduce pagetable_dtor()Qi Zheng1-2/+2
2025-01-08riscv: mm: Fix the out of bound issue of vmemmap addressXu Lu1-1/+16
2024-12-11riscv: mm: Do not call pmd dtor on vmemmap page table teardownBjörn Töpel1-3/+4
2024-09-24Merge tag 'riscv-for-linus-6.12-mw1' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-13/+15
2024-09-15Merge patch series "Svvptc extension to remove preventive sfence.vma"Palmer Dabbelt1-0/+2
2024-09-15riscv: Stop emitting preventive sfence.vma for new vmalloc mappingsAlexandre Ghiti1-0/+2
2024-09-14riscv: Remove redundant restriction on memory sizeStuart Menefy1-7/+1
2024-09-12Merge patch series "remove size limit on XIP kernel"Palmer Dabbelt1-11/+21
2024-09-12riscv: drop the use of XIP_OFFSET in create_kernel_page_table()Nam Cao1-3/+4
2024-09-12riscv: replace misleading va_kernel_pa_offset on XIP kernelNam Cao1-2/+4
2024-09-03riscv: Do not restrict memory size because of linear mapping on nommuAlexandre Ghiti1-1/+1
2024-08-14riscv: change XIP's kernel_map.size to be size of the entire kernelNam Cao1-2/+2
2024-08-05Merge patch series "RISC-V: Parse DT for Zkr to seed KASLR"Palmer Dabbelt1-1/+4
2024-08-05RISC-V: Use Zkr to seed KASLR base addressJesse Taube1-1/+4
2024-08-01riscv: Fix linear mapping checks for non-contiguous memory regionsStuart Menefy1-4/+11
2024-07-20Merge tag 'riscv-for-linus-6.11-mw1' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-40/+307
2024-06-26riscv: mm: Add memory hotplugging supportBjörn Töpel1-0/+267
2024-06-26riscv: mm: Refactor create_linear_mapping_range() for memory hot addBjörn Töpel1-9/+6
2024-06-26riscv: mm: Change attribute from __init to __meminit for page functionsBjörn Töpel1-31/+25
2024-06-26riscv: mm: Pre-allocate vmemmap/direct map/kasan PGD entriesBjörn Töpel1-0/+9
2024-06-26riscv: mm: Properly forward vmemmap_populate() altmap parameterBjörn Töpel1-1/+1
2024-06-03riscv: fix overlap of allocated page and PTR_ERRNam Cao1-10/+11
2024-05-22Merge patch series "riscv: fix debug_pagealloc"Palmer Dabbelt1-0/+3
2024-05-22Merge tag 'riscv-for-linus-6.10-mw1' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-3/+17
2024-05-22riscv: force PAGE_SIZE linear mapping if debug_pagealloc is enabledNam Cao1-0/+3
2024-05-14arch: make execmem setup available regardless of CONFIG_MODULESMike Rapoport (IBM)1-0/+35
2024-04-30riscv: mm: still create swiotlb buffer for kmalloc() bouncing if requiredJisheng Zhang1-1/+15
2024-04-30riscv: Annotate pgtable_l{4,5}_enabled with __ro_after_initDawei Li1-2/+2
2024-04-30riscv: Remove redundant CONFIG_64BIT from pgtable_l{4,5}_enabledDawei Li1-2/+2
2024-04-28Merge patch series "riscv: 64-bit NOMMU fixes and enhancements"Palmer Dabbelt1-1/+1
2024-04-09Merge patch the fixes from "riscv: 64-bit NOMMU fixes and enhancements"Palmer Dabbelt1-1/+1
2024-04-09riscv: Fix loading 64-bit NOMMU kernels past the start of RAMSamuel Holland1-1/+1
2024-03-22Merge tag 'riscv-for-linus-6.9-mw2' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-0/+6
2024-02-23riscv, crash: wrap crash dumping code into crash related ifdefsBaoquan He1-1/+1
2024-02-22arm64, powerpc, riscv, s390, x86: ptdump: refactor CONFIG_DEBUG_WXChristophe Leroy1-3/+0
2024-01-31riscv: mm: execute local TLB flush after populating vmemmapVincent Chen1-0/+4
2024-01-24riscv: mm: Update mmap_rnd_bits_maxSami Tolvanen1-0/+6
2024-01-18riscv: Fix build error on rv32 + XIPAlexandre Ghiti1-0/+4
2024-01-11riscv: Use hugepage mappings for vmemmapAlexandre Ghiti1-1/+20
2024-01-09riscv: Make XIP bootable againFrederik Haxel1-2/+6
2023-11-10Merge tag 'riscv-for-linus-6.7-mw2' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-6/+6
2023-11-08Merge tag 'riscv-for-linus-6.7-rc1' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-0/+2
2023-11-08Merge patch series "riscv: Fix set_memory_XX() and set_direct_map_XX()"Palmer Dabbelt1-6/+6
2023-11-08riscv: Don't use PGD entries for the linear mappingAlexandre Ghiti1-6/+6
2023-10-31RISC-V: Provide pgtable_l5_enabled on rv32Palmer Dabbelt1-0/+2
2023-10-04riscv: kdump: use generic interface to simplify crashkernel reservationBaoquan He1-130/+11
2023-10-04crash_core: change the prototype of function parse_crashkernel()Baoquan He1-1/+1
2023-09-08Merge patch series "riscv: Introduce KASLR"Palmer Dabbelt1-1/+35
2023-09-05riscv: Introduce virtual kernel mapping KASLRAlexandre Ghiti1-1/+35
2023-09-01Merge tag 'riscv-for-linus-6.6-mw1' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-7/+86
2023-08-29Merge tag 'mm-stable-2023-08-28-18-26' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-10/+6
2023-08-21riscv: convert alloc_{pmd, pte}_late() to use ptdescsVishal Moola (Oracle)1-10/+6
2023-08-16riscv: kdump: Implement crashkernel=X,[high,low]Chen Jiahao1-7/+86
2023-08-08riscv: mm: fix 2 instances of -Wmissing-variable-declarationsNick Desaulniers1-4/+5
2023-08-04riscv: Start of DRAM should at least be aligned on PMD size for the direct ma...Alexandre Ghiti1-1/+6
2023-07-12riscv: mm: fix truncation warning on RV32Jisheng Zhang1-1/+1
2023-07-07Merge tag 'riscv-for-linus-6.5-mw2' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-1/+3
2023-07-06Merge tag 'asm-generic-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-2/+2
2023-07-04riscv: move memblock_allow_resize() after linear mapping is readyWoody Zhang1-1/+3
2023-06-30Merge tag 'riscv-for-linus-6.5-mw1' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-0/+58
2023-06-19riscv: mm: Pre-allocate PGD entries for vmalloc/modules areaBjörn Töpel1-0/+58
2023-06-07riscv: Check the virtual alignment before choosing a map sizeAlexandre Ghiti1-6/+7
2023-06-07riscv: Fix kfence now that the linear mapping can be backed by PUD/P4D/PGDAlexandre Ghiti1-5/+30
2023-06-07riscv: mm: Ensure prot of VM_WRITE and VM_EXEC must be readableHsieh-Tseng Shen1-1/+1
2023-05-29riscv: mm: init: Pass a pointer to virt_to_page()Linus Walleij1-2/+2
2023-05-24riscv: Fix unused variable warning when BUILTIN_DTB is setAlexandre Ghiti1-1/+1
2023-04-29riscv: mm: remove redundant parameter of create_fdt_early_page_tableSong Shuai1-4/+2
2023-04-28Merge tag 'riscv-for-linus-6.4-mw1' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-37/+169
2023-04-26riscv: Allow to downgrade paging mode from the command lineAlexandre Ghiti1-6/+30
2023-04-19Merge patch series "Introduce 64b relocatable kernel"Palmer Dabbelt1-1/+53
2023-04-19riscv: Introduce CONFIG_RELOCATABLEAlexandre Ghiti1-1/+53
2023-04-19Merge patch series "RISC-V kasan rework"Palmer Dabbelt1-1/+1
2023-04-19riscv: Move DTB_EARLY_BASE_VA to the kernel address spaceAlexandre Ghiti1-1/+1
2023-04-18riscv: Use PUD/P4D/PGD pages for the linear mappingAlexandre Ghiti1-6/+52
2023-04-18riscv: Move the linear mapping creation in its own functionAlexandre Ghiti1-14/+28
2023-04-18riscv: Get rid of riscv_pfn_base variableAlexandre Ghiti1-5/+1
2023-04-13riscv: No need to relocate the dtb as it lies in the fixmap regionAlexandre Ghiti1-19/+2
2023-04-13riscv: Move early dtb mapping into the fixmap regionAlexandre Ghiti1-27/+34
2022-12-14Merge tag 'riscv-for-linus-6.2-mw1' of git://git.kernel.org/pub/scm/linux/ker...Linus Torvalds1-12/+13
2022-12-09riscv: mm: call best_map_size many times during linear-mappingQinglin Pan1-4/+5
2022-12-08riscv: Move cast inside kernel_mapping_[pv]a_to_[vp]aSamuel Holland1-8/+8
2022-11-10riscv: fix reserved memory setupConor Dooley1-1/+0
2022-08-11RISC-V: fixups to work with crash toolPalmer Dabbelt1-0/+4
2022-08-11RISC-V: Add modules to virtual kernel memory layout dumpXianting Tian1-0/+4
2022-07-17riscv/mm: enable ARCH_HAS_VM_GET_PAGE_PROTAnshuman Khandual1-0/+20
2022-06-02riscv: mm: init: make pt_ops_set_[early|late|fixmap] staticJisheng Zhang1-3/+3
2022-06-01riscv: Improve virtual kernel memory layout dumpAlexandre Ghiti1-15/+51
2022-05-31Merge tag 'riscv-for-linus-5.19-mw0' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-4/+5
2022-05-26RISC-V: Various XIP fixesPalmer Dabbelt1-4/+4
2022-05-25Merge tag 'dma-mapping-5.19-2022-05-25' of git://git.infradead.org/users/hch/...Linus Torvalds1-7/+1
2022-05-25RISC-V: Fix the XIP buildPalmer Dabbelt1-1/+1
2022-05-24RISC-V: Avoid empty create_*_mapping definitionsPalmer Dabbelt1-3/+3
2022-05-11riscv: add memory-type errata for T-HeadHeiko Stuebner1-0/+1
2022-04-29RISC-V: relocate DTB if it's outside memory regionNick Kossifidis1-2/+19
2022-04-21RISC-V: mm: Fix set_satp_mode() for platform not having Sv57Anup Patel1-0/+1
2022-04-18swiotlb: make the swiotlb_init interface more usefulChristoph Hellwig1-7/+1
2022-03-25Merge tag 'riscv-for-linus-5.18-mw0' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-23/+145
2022-03-23riscv: mm: init: use IS_ENABLED(CONFIG_KEXEC_CORE) instead of #ifdefJisheng Zhang1-4/+2
2022-03-03riscv: Move high_memory initialization to setup_bootmemAlexandre Ghiti1-1/+1
2022-02-22RISC-V: Add Sv57 page table supportPalmer Dabbelt1-22/+144
2022-02-14riscv: mm: Set sv57 on defaultlyQinglin Pan1-8/+27
2022-02-14riscv: mm: Prepare pt_ops helper functions for sv57Qinglin Pan1-15/+116
2022-02-14riscv: mm: Control p4d's folding by pgtable_l5_enabledQinglin Pan1-0/+2
2022-02-14riscv: mm: init: mark satp_mode __ro_after_initJisheng Zhang1-2/+2
2022-02-04riscv/mm: Add XIP_FIXUP for riscv_pfn_basePalmer Dabbelt1-0/+1
2022-02-04riscv/mm: Add XIP_FIXUP for phys_ram_basePalmer Dabbelt1-0/+1
2022-01-19riscv: fix boolconv.cocci warningskernel test robot1-2/+1
2022-01-19RISC-V: Introduce sv48 support without relocatable kernelPalmer Dabbelt1-59/+266
2022-01-19riscv: Implement sv48 supportAlexandre Ghiti1-24/+188
2022-01-19riscv: Introduce functions to switch pt_opsAlexandre Ghiti1-23/+51
2022-01-19riscv: Split early kasan mapping to prepare sv48 introductionAlexandre Ghiti1-0/+4
2022-01-19riscv: Move KASAN mapping next to the kernel mappingAlexandre Ghiti1-12/+13
2022-01-19riscv: mm: init: try best to remove #ifdef CONFIG_XIP_KERNEL usageJisheng Zhang1-8/+3
2022-01-19riscv: mm: init: try IS_ENABLED(CONFIG_XIP_KERNEL) instead of #ifdefJisheng Zhang1-9/+7
2022-01-19riscv: mm: init: remove _pt_ops and use pt_ops directlyJisheng Zhang1-4/+2
2022-01-19riscv: mm: init: try best to use IS_ENABLED(CONFIG_64BIT) instead of #ifdefJisheng Zhang1-27/+16
2022-01-19riscv: mm: init: remove unnecessary "#ifdef CONFIG_CRASH_DUMP"Jisheng Zhang1-2/+0
2022-01-09riscv: mm: fix wrong phys_ram_base value for RV64Jisheng Zhang1-1/+1
2022-01-09riscv: try to allocate crashkern region from 32bit addressible memoryNick Kossifidis1-4/+13
2022-01-05riscv: mm: Enable PMD split page table lock for RV64Kefeng Wang1-1/+2
2021-10-26riscv: remove .text section size limitation for XIPVitaly Wool1-4/+3
2021-09-05Merge tag 'riscv-for-linus-5.15-mw0' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-72/+58
2021-09-03Merge branch 'akpm' (patches from Andrew)Linus Torvalds1-30/+14
2021-09-03memblock: make memblock_find_in_range method privateMike Rapoport1-30/+14
2021-09-01Merge tag 'devicetree-for-5.15' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-20/+0
2021-08-24riscv: Remove non-standard linux,elfcorehdr handlingGeert Uytterhoeven1-20/+0
2021-08-13riscv: Support allocating gigantic hugepages using CMAKefeng Wang1-0/+3
2021-08-13riscv: fix the global name pfn_base confliction errorKenneth Lee1-3/+3
2021-08-12riscv: Fix comment regarding kernel mapping overlapping with IS_ERR_VALUEAlexandre Ghiti1-1/+1
2021-08-11riscv: Move early fdt mapping creation in its own functionAlexandre Ghiti1-36/+40
2021-08-11riscv: Simplify BUILTIN_DTB device tree mapping handlingAlexandre Ghiti1-10/+2
2021-08-11riscv: Use __maybe_unused instead of #ifdefs around variable declarationsAlexandre Ghiti1-3/+1
2021-08-11riscv: Get rid of map_size parameter to create_kernel_page_tableAlexandre Ghiti1-19/+11
2021-08-11riscv: Introduce va_kernel_pa_offset for 32-bit kernelAlexandre Ghiti1-3/+0
2021-08-06riscv: Get rid of CONFIG_PHYS_RAM_BASE in kernel physical address conversionAlexandre Ghiti1-5/+12
2021-07-22riscv: Make sure the kernel mapping does not overlap with IS_ERR_VALUEAlexandre Ghiti1-2/+16
2021-07-22riscv: Make sure the linear mapping does not use the kernel mappingAlexandre Ghiti1-0/+2
2021-07-22riscv: Fix memory_limit for 64-bit kernelAlexandre Ghiti1-2/+9
2021-07-21Merge remote-tracking branch 'riscv/riscv-fix-32bit' into fixesPalmer Dabbelt1-0/+1
2021-07-21riscv: Fix 32-bit RISC-V boot failureBin Meng1-1/+3
2021-07-05riscv: Introduce structure that group all variables regarding kernel mappingAlexandre Ghiti1-62/+36
2021-06-30Merge branch 'riscv-wx-mappings' into for-nextPalmer Dabbelt1-59/+49
2021-06-30riscv: Map the kernel with correct permissions the first timeAlexandre Ghiti1-63/+50
2021-06-15riscv: Add mem kernel parameter supportKefeng Wang1-3/+25
2021-06-11riscv: Only initialize swiotlb when necessaryKefeng Wang1-0/+8
2021-06-08riscv: fix typo in init.cVitaly Wool1-1/+1
2021-06-01riscv: mm: Fix W+X mappings at bootJisheng Zhang1-2/+6
2021-05-29riscv: mm: init: Consolidate vars, functionsJisheng Zhang1-17/+19
2021-05-25riscv: mm: Drop redundant _sdata and _edata declarationKefeng Wang1-7/+1
2021-05-25riscv: Move setup_bootmem into paging_initKefeng Wang1-1/+2
2021-05-25riscv: mm: Remove setup_zero_page()Jisheng Zhang1-6/+0
2021-05-06riscv: Consistify protect_kernel_linear_mapping_text_rodata() useGeert Uytterhoeven1-1/+1
2021-05-06riscv: Only extend kernel reservation if mapped read-onlyGeert Uytterhoeven1-2/+7
2021-05-06Merge tag 'riscv-for-linus-5.13-mw0' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-29/+308
2021-04-30mm: move mem_init_print_info() into mm_init()Kefeng Wang1-1/+0
2021-04-26RISC-V: enable XIPVitaly Wool1-8/+109
2021-04-26RISC-V: Add crash kernel supportNick Kossifidis1-0/+33
2021-04-26RISC-V: Add kdump supportNick Kossifidis1-0/+71
2021-04-26riscv/mm: Use BUG_ON instead of if condition followed by BUG.zhouchuangao1-2/+2
2021-04-26riscv: Mark some global variables __ro_after_initJisheng Zhang1-3/+3
2021-04-26riscv: add __init section marker to some functionsJisheng Zhang1-3/+3
2021-04-26riscv: Move kernel mapping outside of linear mappingAlexandre Ghiti1-17/+89
2021-03-09riscv: Add support for memtestKefeng Wang1-2/+4
2021-02-26riscv: Cleanup setup_bootmem()Kefeng Wang1-19/+2
2021-02-26Merge tag 'riscv-for-linus-5.12-mw0' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-81/+27
2021-02-22riscv: Get rid of MAX_EARLY_MAPPING_SIZEAlexandre Ghiti1-16/+5
2021-02-18riscv: Covert to reserve_initrd_mem()Kefeng Wang1-53/+1
2021-02-18riscv: add BUILTIN_DTB support for MMU-enabled targetsVitaly Wool1-6/+13
2021-01-22riscv: Fixup pfn_valid error with wrong max_mapnrGuo Ren1-1/+1
2021-01-15RISC-V: Set current memblock limitAtish Patra1-2/+14
2021-01-14riscv: Add numa support for riscv64 platformAtish Patra1-1/+3
2021-01-14riscv: Separate memory init from paging initAtish Patra1-1/+5
2021-01-07riscv: Fix builtin DTB handlingDamien Le Moal1-5/+1
2020-12-21RISC-V: Fix usage of memblock_enforce_memory_limitAtish Patra1-1/+1
2020-12-18Merge tag 'riscv-for-linus-5.11-mw0' of git://git.kernel.org/pub/scm/linux/ke...Linus Torvalds1-32/+20
2020-11-25RISC-V: Protect all kernel sections including init earlyAtish Patra1-5/+16
2020-11-20riscv: Enable CMA supportKefeng Wang1-2/+6