MIPS: replace add_memory_region with memblock
Subsystems (6)
Thomas Bogendoerfer
maintainerPATCH v3 1/1 MIPS: replace add_memory_region with memblock
add_memory_region was the old interface for registering memory and was already changed to used memblock internaly. Replace it by directly calling memblock functions.
---
Changes in v3:
removed early_init_dt_add_memory_arch and early_init_dt_reserve_memory_arch as there is nothing special about our version and we can use the generic ones
Changes in v2:
fixed missing memblock include in fw/sni/sniprom.c tested on cobalt, IP22, IP28, IP30, IP32, JAZZ, SNI
arch/mips/alchemy/common/prom.c | 3 +- arch/mips/ar7/memory.c | 2 +- arch/mips/ath25/ar2315.c | 3 +- arch/mips/ath25/ar5312.c | 3 +- arch/mips/bcm47xx/prom.c | 3 +- arch/mips/bcm47xx/setup.c | 2 +- arch/mips/bcm63xx/setup.c | 2 +- arch/mips/cavium-octeon/setup.c | 24 ++++++------- arch/mips/cobalt/setup.c | 3 +- arch/mips/dec/prom/memory.c | 8 ++--- arch/mips/fw/arc/memory.c | 28 ++++++++++----- arch/mips/fw/sni/sniprom.c | 4 +-- arch/mips/include/asm/bootinfo.h | 7 ---- arch/mips/include/asm/netlogic/psb-bootinfo.h | 1 + arch/mips/kernel/prom.c | 25 -------------- arch/mips/kernel/setup.c | 50 ++++----------------------- arch/mips/loongson2ef/common/mem.c | 12 ++----- arch/mips/loongson32/common/prom.c | 4 +-- arch/mips/netlogic/xlp/setup.c | 2 +- arch/mips/netlogic/xlr/setup.c | 5 +-- arch/mips/ralink/of.c | 3 +- arch/mips/rb532/prom.c | 2 +- arch/mips/sgi-ip32/ip32-memory.c | 3 +- arch/mips/sibyte/common/cfe.c | 16 ++++----- arch/mips/txx9/jmr3927/prom.c | 4 +-- arch/mips/txx9/rbtx4927/prom.c | 5 +-- arch/mips/txx9/rbtx4938/prom.c | 3 +- arch/mips/txx9/rbtx4939/prom.c | 4 +-- 28 files changed, 82 insertions(+), 149 deletions(-)
arch/mips/alchemy/common/prom.c +2 -1
@@ -35,6 +35,7 @@#include <linux/init.h> #include <linux/kernel.h> +#include <linux/memblock.h> #include <linux/sizes.h> #include <linux/string.h>
@@ -93,7 +94,7 @@ void __init prom_init(void)if (!memsize_str ||kstrtoul (memsize_str,0 , &memsize)) memsize =SZ_64M ;/* minimum memsize is 64MB RAM */ -add_memory_region (0 , memsize,BOOT_MEM_RAM ); +memblock_add (0 , memsize); }static inline unsigned char str2hexnum (unsigned char c)
arch/mips/ar7/memory.c +1 -1
@@ -47,7 +47,7 @@ void __init prom_meminit(void)unsigned long pages; pages =memsize () >>PAGE_SHIFT ; -add_memory_region (PHYS_OFFSET , pages <<PAGE_SHIFT ,BOOT_MEM_RAM ); +memblock_add (PHYS_OFFSET , pages <<PAGE_SHIFT ); }void __init prom_free_prom_memory (void )
arch/mips/ath25/ar2315.c +2 -1
@@ -19,6 +19,7 @@#include <linux/bitops.h> #include <linux/irqdomain.h> #include <linux/interrupt.h> +#include <linux/memblock.h> #include <linux/platform_device.h> #include <linux/reboot.h> #include <asm/bootinfo.h>
@@ -266,7 +267,7 @@ void __init ar2315_plat_mem_setup(void) memsize <<=1 +ATH25_REG_MS (memcfg,AR2315_MEM_CFG_COL_WIDTH ); memsize <<=1 +ATH25_REG_MS (memcfg,AR2315_MEM_CFG_ROW_WIDTH ); memsize <<=3 ; -add_memory_region (0 , memsize,BOOT_MEM_RAM ); +memblock_add (0 , memsize);iounmap (sdram_base); ar2315_rst_base =ioremap (AR2315_RST_BASE ,AR2315_RST_SIZE );
arch/mips/ath25/ar5312.c +2 -1
@@ -19,6 +19,7 @@#include <linux/bitops.h> #include <linux/irqdomain.h> #include <linux/interrupt.h> +#include <linux/memblock.h> #include <linux/platform_device.h> #include <linux/mtd/physmap.h> #include <linux/reboot.h>
@@ -363,7 +364,7 @@ void __init ar5312_plat_mem_setup(void) memsize = (bank0_ac ? (1 << (bank0_ac +1 )) :0 ) + (bank1_ac ? (1 << (bank1_ac +1 )) :0 ); memsize <<=20 ; -add_memory_region (0 , memsize,BOOT_MEM_RAM ); +memblock_add (0 , memsize);iounmap (sdram_base); ar5312_rst_base =ioremap (AR5312_RST_BASE ,AR5312_RST_SIZE );
arch/mips/bcm47xx/prom.c +2 -1
@@ -27,6 +27,7 @@#include <linux/init.h> #include <linux/types.h> #include <linux/kernel.h> +#include <linux/memblock.h> #include <linux/spinlock.h> #include <linux/ssb/ssb_driver_chipcommon.h> #include <linux/ssb/ssb_regs.h>
@@ -97,7 +98,7 @@ static __init void prom_init_mem(void)*/ if (c->cputype ==CPU_74K && (mem == (128 <<20 ))) mem -=0x1000 ; -add_memory_region (0 , mem,BOOT_MEM_RAM ); +memblock_add (0 , mem); }/*
arch/mips/bcm47xx/setup.c +1 -1
@@ -141,7 +141,7 @@ static void __init bcm47xx_register_bcma(void)/* * Memory setup is done in the early part of MIPS's arch_mem_init. It's supposed -* to detect memory and record it with add_memory_region. +* to detect memory and record it with memblock_add. * Any extra initializaion performed here must not use kmalloc or bootmem. */ void __init plat_mem_setup (void )
arch/mips/bcm63xx/setup.c +1 -1
@@ -146,7 +146,7 @@ void __init plat_time_init(void)void __init plat_mem_setup (void ) { -add_memory_region (0 ,bcm63xx_get_memory_size (),BOOT_MEM_RAM ); +memblock_add (0 ,bcm63xx_get_memory_size ()); _machine_halt = bcm63xx_machine_halt; _machine_restart = __bcm63xx_machine_reboot;
arch/mips/cavium-octeon/setup.c +10 -14
@@ -16,6 +16,7 @@#include <linux/export.h> #include <linux/interrupt.h> #include <linux/io.h> +#include <linux/memblock.h> #include <linux/serial.h> #include <linux/smp.h> #include <linux/types.h>
@@ -930,7 +931,7 @@ static __init void memory_exclude_page(u64 addr, u64 *mem, u64 *size) {if (addr > *mem && addr < *mem + *size) {u64 inc = addr - *mem; -add_memory_region (*mem, inc,BOOT_MEM_RAM ); +memblock_add (*mem, inc); *mem += inc; *size -= inc; }
@@ -992,19 +993,18 @@ void __init plat_mem_setup(void)/* Crashkernel ignores bootmem list. It relies on mem=X@Y option */ #ifdef CONFIG_CRASH_DUMP -add_memory_region (reserve_low_mem, max_memory,BOOT_MEM_RAM ); +memblock_add (reserve_low_mem, max_memory); total += max_memory;#else #ifdef CONFIG_KEXEC if (crashk_size >0 ) { -add_memory_region (crashk_base, crashk_size,BOOT_MEM_RAM ); +memblock_add (crashk_base, crashk_size); crashk_end = crashk_base + crashk_size; }#endif /* -* When allocating memory, we want incrementing addresses from -* bootmem_alloc so the code in add_memory_region can merge -* regions next to each other. +* When allocating memory, we want incrementing addresses, +* which is handled by memblock */ cvmx_bootmem_lock ();while (total < max_memory) {
@@ -1039,13 +1039,9 @@ void __init plat_mem_setup(void)*/ if (memory < crashk_base && end > crashk_end) {/* region is fully in */ -add_memory_region (memory, - crashk_base - memory, -BOOT_MEM_RAM ); +memblock_add (memory, crashk_base - memory); total += crashk_base - memory; -add_memory_region (crashk_end, - end - crashk_end, -BOOT_MEM_RAM ); +memblock_add (crashk_end, end - crashk_end); total += end - crashk_end;continue ; }
@@ -1073,7 +1069,7 @@ void __init plat_mem_setup(void)*/ mem_alloc_size -= end - crashk_base;#endif -add_memory_region (memory, mem_alloc_size,BOOT_MEM_RAM ); +memblock_add (memory, mem_alloc_size); total += mem_alloc_size;/* Recovering mem_alloc_size */ mem_alloc_size =4 <<20 ;
@@ -1088,7 +1084,7 @@ void __init plat_mem_setup(void)/* Adjust for physical offset. */ kernel_start &= ~0xffffffff80000000ULL ; -add_memory_region (kernel_start, kernel_size,BOOT_MEM_RAM ); +memblock_add (kernel_start, kernel_size);#endif /* CONFIG_CRASH_DUMP */ #ifdef CONFIG_CAVIUM_RESERVE32
arch/mips/cobalt/setup.c +2 -1
@@ -13,6 +13,7 @@#include <linux/interrupt.h> #include <linux/io.h> #include <linux/ioport.h> +#include <linux/memblock.h> #include <linux/pm.h> #include <asm/bootinfo.h>
@@ -112,7 +113,7 @@ void __init prom_init(void)strlcat (arcs_cmdline," " ,COMMAND_LINE_SIZE ); } -add_memory_region (0x0 , memsz,BOOT_MEM_RAM ); +memblock_add (0 , memsz);setup_8250_early_printk_port (CKSEG1ADDR (0x1c800000 ),0 ,0 ); }
arch/mips/dec/prom/memory.c +3 -5
@@ -12,7 +12,6 @@#include <linux/types.h> #include <asm/addrspace.h> -#include <asm/bootinfo.h> #include <asm/dec/machtype.h> #include <asm/dec/prom.h> #include <asm/page.h>
@@ -50,8 +49,7 @@ static __init void pmax_setup_memory_region(void) }memcpy ((void *)(CKSEG0 +0x80 ), &old_handler,0x80 ); -add_memory_region (0 , (unsigned long )memory_page -CKSEG1 -CHUNK_SIZE , -BOOT_MEM_RAM ); +memblock_add (0 , (unsigned long )memory_page -CKSEG1 -CHUNK_SIZE ); }/*
@@ -76,13 +74,13 @@ static __init void rex_setup_memory_region(void)else if (!mem_size) mem_start += (8 * bm->pagesize);else { -add_memory_region (mem_start, mem_size,BOOT_MEM_RAM ); +memblock_add (mem_start, mem_size); mem_start += mem_size + (8 * bm->pagesize); mem_size =0 ; } }if (mem_size) -add_memory_region (mem_start, mem_size,BOOT_MEM_RAM ); +memblock_add (mem_start, mem_size); }void __init prom_meminit (u32 magic)
arch/mips/fw/arc/memory.c +20 -8
@@ -68,20 +68,24 @@ static char *arc_mtypes[8] = { : arc_mtypes[a.arc]#endif +enum { + mem_free, mem_prom_used, mem_reserved +}; +static inline int memtype_classify_arcs (union linux_memtypes type) {switch (type.arcs) {case arcs_fcontig:case arcs_free: -return BOOT_MEM_RAM ; +return mem_free;case arcs_atmp: -return BOOT_MEM_ROM_DATA ; +return mem_prom_used;case arcs_eblock:case arcs_rvpage:case arcs_bmem:case arcs_prog:case arcs_aperm: -return BOOT_MEM_RESERVED ; +return mem_reserved;default :BUG (); }
@@ -93,15 +97,15 @@ static inline int memtype_classify_arc(union linux_memtypes type)switch (type.arc) {case arc_free:case arc_fcontig: -return BOOT_MEM_RAM ; +return mem_free;case arc_atmp: -return BOOT_MEM_ROM_DATA ; +return mem_prom_used;case arc_eblock:case arc_rvpage:case arc_bmem:case arc_prog:case arc_aperm: -return BOOT_MEM_RESERVED ; +return mem_reserved;default :BUG (); }
@@ -143,9 +147,17 @@ void __weak __init prom_meminit(void) size = p->pages <<ARC_PAGE_SHIFT ; type =prom_memtype_classify (p->type); -add_memory_region (base, size, type); +/* ignore mirrored RAM on IP28/IP30 */ +if (base <PHYS_OFFSET ) +continue ; + +memblock_add (base, size); + +if (type == mem_reserved) +memblock_reserve (base, size); -if (type ==BOOT_MEM_ROM_DATA ) { +if (type == mem_prom_used) { +memblock_reserve (base, size);if (nr_prom_mem >=5 ) {pr_err ("Too many ROM DATA regions" );continue ;
arch/mips/fw/sni/sniprom.c +2 -2
@@ -11,6 +11,7 @@#include <linux/kernel.h> #include <linux/init.h> +#include <linux/memblock.h> #include <linux/string.h> #include <linux/console.h>
@@ -131,8 +132,7 @@ static void __init sni_mem_init(void) }pr_debug ("Bank%d: %08x @ %08x\n" , i, memconf[i].size, memconf[i].base); -add_memory_region (memconf[i].base, memconf[i].size, -BOOT_MEM_RAM ); +memblock_add (memconf[i].base, memconf[i].size); } }
arch/mips/include/asm/bootinfo.h +0 -7
@@ -90,13 +90,6 @@ const char *get_system_type(void);extern unsigned long mips_machtype; -#define BOOT_MEM_RAM 1 -#define BOOT_MEM_ROM_DATA 2 -#define BOOT_MEM_RESERVED 3 -#define BOOT_MEM_INIT_RAM 4 -#define BOOT_MEM_NOMAP 5 - -extern void add_memory_region (phys_addr_t start,phys_addr_t size,long type);extern void detect_memory_region (phys_addr_t start,phys_addr_t sz_min,phys_addr_t sz_max);extern void prom_init (void );
arch/mips/include/asm/netlogic/psb-bootinfo.h +1 -0
@@ -87,6 +87,7 @@ struct nlm_boot_mem_map {uint32_t type;/* type of memory segment */ } map[NLM_BOOT_MEM_MAP_MAX ]; }; +#define NLM_BOOT_MEM_RAM 1/* Pointer to saved boot loader info */ extern struct psb_info nlm_prom_info;
arch/mips/kernel/prom.c +0 -25
@@ -36,31 +36,6 @@ char *mips_get_machine_name(void) }#ifdef CONFIG_USE_OF -void __init early_init_dt_add_memory_arch (u64 base,u64 size) -{ -if (base >=PHYS_ADDR_MAX ) { -pr_warn ("Trying to add an invalid memory region, skipped\n" ); -return ; - } - -/* Truncate the passed memory region instead of type casting */ -if (base + size -1 >=PHYS_ADDR_MAX || base + size < base) { -pr_warn ("Truncate memory region %llx @ %llx to size %llx\n" , - size, base,PHYS_ADDR_MAX - base); - size =PHYS_ADDR_MAX - base; - } - -add_memory_region (base, size,BOOT_MEM_RAM ); -} - -int __init early_init_dt_reserve_memory_arch (phys_addr_t base, -phys_addr_t size,bool nomap) -{ -add_memory_region (base, size, - nomap ?BOOT_MEM_NOMAP :BOOT_MEM_RESERVED ); - -return 0 ; -}void __init __dt_setup_arch (void *bph) {
arch/mips/kernel/setup.c +6 -44
85 lines not on this page · raw message
arch/mips/loongson2ef/common/mem.c +2 -10
@@ -17,10 +17,7 @@ u32 memsize, highmemsize;void __init prom_init_memory (void ) { -add_memory_region (0x0 , (memsize <<20 ),BOOT_MEM_RAM ); - -add_memory_region (memsize <<20 ,LOONGSON_PCI_MEM_START - (memsize << -20 ),BOOT_MEM_RESERVED ); +memblock_add (0x0 , (memsize <<20 ));#ifdef CONFIG_CPU_SUPPORTS_ADDRWINCFG {
@@ -41,12 +38,7 @@ void __init prom_init_memory(void)#ifdef CONFIG_64BIT if (highmemsize >0 ) -add_memory_region (LOONGSON_HIGHMEM_START , - highmemsize <<20 ,BOOT_MEM_RAM ); - -add_memory_region (LOONGSON_PCI_MEM_END +1 ,LOONGSON_HIGHMEM_START - -LOONGSON_PCI_MEM_END -1 ,BOOT_MEM_RESERVED ); - +memblock_add (LOONGSON_HIGHMEM_START , highmemsize <<20 );#endif /* !CONFIG_64BIT */ }
arch/mips/loongson32/common/prom.c +2 -2
@@ -7,8 +7,8 @@#include <linux/io.h> #include <linux/init.h> +#include <linux/memblock.h> #include <linux/serial_reg.h> -#include <asm/bootinfo.h> #include <asm/fw/fw.h> #include <loongson1.h>
@@ -42,5 +42,5 @@ void __init prom_free_prom_memory(void)void __init plat_mem_setup (void ) { -add_memory_region (0x0 , (memsize <<20 ),BOOT_MEM_RAM ); +memblock_add (0x0 , (memsize <<20 )); }
arch/mips/netlogic/xlp/setup.c +1 -1
@@ -89,7 +89,7 @@ static void __init xlp_init_mem_from_bars(void)if (map[i] >0x10000000 && map[i] <0x20000000 ) map[i] =0x20000000 ; -add_memory_region (map[i], map[i+1 ] - map[i],BOOT_MEM_RAM ); +memblock_add (map[i], map[i+1 ] - map[i]); } }
arch/mips/netlogic/xlr/setup.c +3 -2
@@ -34,6 +34,7 @@#include <linux/kernel.h> #include <linux/serial_8250.h> +#include <linux/memblock.h> #include <linux/pm.h> #include <asm/idle.h>
@@ -149,7 +150,7 @@ static void prom_add_memory(void) bootm = (void *)(long )nlm_prom_info.psb_mem_map;for (i =0 ; i < bootm->nr_map; i++) { -if (bootm->map[i].type !=BOOT_MEM_RAM ) +if (bootm->map[i].type !=NLM_BOOT_MEM_RAM )continue ; start = bootm->map[i].addr; size = bootm->map[i].size;
@@ -158,7 +159,7 @@ static void prom_add_memory(void)if (i ==0 && start ==0 && size ==0x0c000000 ) size =0x0ff00000 ; -add_memory_region (start, size - pref_backup,BOOT_MEM_RAM ); +memblock_add (start, size - pref_backup); } }
arch/mips/ralink/of.c +1 -2
@@ -84,8 +84,7 @@ void __init plat_mem_setup(void)if (memory_dtb)of_scan_flat_dt (early_init_dt_scan_memory,NULL );else if (soc_info.mem_size) -add_memory_region (soc_info.mem_base, soc_info.mem_size *SZ_1M , -BOOT_MEM_RAM ); +memblock_add (soc_info.mem_base, soc_info.mem_size *SZ_1M );else detect_memory_region(soc_info.mem_base, soc_info.mem_size_min * SZ_1M,
arch/mips/rb532/prom.c +1 -1
@@ -126,5 +126,5 @@ void __init prom_init(void)/* give all RAM to boot allocator, * except for the first 0x400 and the last 0x200 bytes */ -add_memory_region (ddrbase +0x400 , memsize -0x600 ,BOOT_MEM_RAM ); +memblock_add (ddrbase +0x400 , memsize -0x600 ); }
arch/mips/sgi-ip32/ip32-memory.c +2 -1
@@ -9,6 +9,7 @@#include <linux/types.h> #include <linux/init.h> #include <linux/kernel.h> +#include <linux/memblock.h> #include <linux/mm.h> #include <asm/ip32/crime.h>
@@ -36,7 +37,7 @@ void __init prom_meminit(void)printk ("CRIME MC: bank %u base 0x%016Lx size %LuMiB\n" , bank, base, size >>20 ); -add_memory_region (base, size,BOOT_MEM_RAM ); +memblock_add (base, size); } }
arch/mips/sibyte/common/cfe.c +7 -9
@@ -114,16 +114,14 @@ static __init void prom_meminit(void)if (initrd_start) {if ((initrd_pstart > addr) && (initrd_pstart < (addr + size))) { -add_memory_region (addr, - initrd_pstart - addr, -BOOT_MEM_RAM ); +memblock_add (addr, + initrd_pstart - addr); rd_flag =1 ; }if ((initrd_pend > addr) && (initrd_pend < (addr + size))) { -add_memory_region (initrd_pend, - (addr + size) - initrd_pend, -BOOT_MEM_RAM ); +memblock_add (initrd_pend, + (addr + size) - initrd_pend); rd_flag =1 ; } }
@@ -142,7 +140,7 @@ static __init void prom_meminit(void)*/ if (size >512 ) size -=512 ; -add_memory_region (addr, size,BOOT_MEM_RAM ); +memblock_add (addr, size); } board_mem_region_addrs[board_mem_region_count] = addr; board_mem_region_sizes[board_mem_region_count] = size;
@@ -158,8 +156,8 @@ static __init void prom_meminit(void) }#ifdef CONFIG_BLK_DEV_INITRD if (initrd_start) { -add_memory_region (initrd_pstart, initrd_pend - initrd_pstart, -BOOT_MEM_RESERVED ); +memblock_add (initrd_pstart, initrd_pend - initrd_pstart); +memblock_reserve (initrd_pstart, initrd_pend - initrd_pstart); }#endif }
arch/mips/txx9/jmr3927/prom.c +2 -2
@@ -37,7 +37,7 @@*/ #include <linux/init.h> #include <linux/kernel.h> -#include <asm/bootinfo.h> +#include <linux/memblock.h> #include <asm/txx9/generic.h> #include <asm/txx9/jmr3927.h>
@@ -47,6 +47,6 @@ void __init jmr3927_prom_init(void)if ((tx3927_ccfgptr->ccfg &TX3927_CCFG_TLBOFF ) ==0 )pr_err ("TX3927 TLB off\n" ); -add_memory_region (0 ,JMR3927_SDRAM_SIZE ,BOOT_MEM_RAM ); +memblock_add (0 ,JMR3927_SDRAM_SIZE );txx9_sio_putchar_init (TX3927_SIO_REG (1 )); }
arch/mips/txx9/rbtx4927/prom.c +3 -2
@@ -29,13 +29,14 @@* with this program; if not, write to the Free Software Foundation, Inc., * 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <linux/init.h> -#include <asm/bootinfo.h> +#include <linux/memblock.h> #include <asm/txx9/generic.h> #include <asm/txx9/rbtx4927.h> void __init rbtx4927_prom_init (void ) { -add_memory_region (0 ,tx4927_get_mem_size (),BOOT_MEM_RAM ); +memblock_add (0 ,tx4927_get_mem_size ());txx9_sio_putchar_init (TX4927_SIO_REG (0 ) &0xfffffffffULL ); }
arch/mips/txx9/rbtx4938/prom.c +1 -2
@@ -12,12 +12,11 @@#include <linux/init.h> #include <linux/memblock.h> -#include <asm/bootinfo.h> #include <asm/txx9/generic.h> #include <asm/txx9/rbtx4938.h> void __init rbtx4938_prom_init (void ) { -add_memory_region (0 ,tx4938_get_mem_size (),BOOT_MEM_RAM ); +memblock_add (0 ,tx4938_get_mem_size ());txx9_sio_putchar_init (TX4938_SIO_REG (0 ) &0xfffffffffULL ); }
arch/mips/txx9/rbtx4939/prom.c +2 -2
@@ -7,7 +7,7 @@*/ #include <linux/init.h> -#include <asm/bootinfo.h> +#include <linux/memblock.h> #include <asm/txx9/generic.h> #include <asm/txx9/rbtx4939.h>
@@ -23,7 +23,7 @@ void __init rbtx4939_prom_init(void) win =____raw_readq (&tx4939_ddrcptr->win[i]); start = (unsigned long )(win >>48 ); size = (((unsigned long )(win >>32 ) &0xffff ) +1 ) - start; -add_memory_region (start <<20 , size <<20 ,BOOT_MEM_RAM ); +memblock_add (start <<20 , size <<20 ); }txx9_sio_putchar_init (TX4939_SIO_REG (0 ) &0xfffffffffULL ); }
Signature · 1 line
2.16.4
Quoted 36 lines · Thomas Bogendoerfer
add_memory_regionwas the old interface for registering memory and was already changed to used memblock internaly. Replace it by directly calling memblock functions.Signed-off-by Thomas Bogendoerfer <[email protected]>---
Changes in v3:
removedearly_init_dt_add_memory_archandearly_init_dt_reserve_memory_archas there is nothing special about our version and we can use the generic onesChanges in v2:
fixed missing memblock include in fw/sni/sniprom.c tested on cobalt, IP22, IP28, IP30, IP32, JAZZ, SNIarch/mips/alchemy/common/prom.c | 3 +- arch/mips/ar7/memory.c | 2 +- arch/mips/ath25/ar2315.c | 3 +- arch/mips/ath25/ar5312.c | 3 +- arch/mips/bcm47xx/prom.c | 3 +- arch/mips/bcm47xx/setup.c | 2 +- arch/mips/bcm63xx/setup.c | 2 +- arch/mips/cavium-octeon/setup.c | 24 ++++++------- arch/mips/cobalt/setup.c | 3 +- arch/mips/dec/prom/memory.c | 8 ++--- arch/mips/fw/arc/memory.c | 28 ++++++++++----- arch/mips/fw/sni/sniprom.c | 4 +-- arch/mips/include/asm/bootinfo.h | 7 ---- arch/mips/include/asm/netlogic/psb-bootinfo.h | 1 + arch/mips/kernel/prom.c | 25 -------------- arch/mips/kernel/setup.c | 50 ++++----------------------- arch/mips/loongson2ef/common/mem.c | 12 ++----- arch/mips/loongson32/common/prom.c | 4 +-- arch/mips/netlogic/xlp/setup.c | 2 +- arch/mips/netlogic/xlr/setup.c | 5 +-- arch/mips/ralink/of.c | 3 +-
Quoted 8 lines
arch/mips/rb532/prom.c | 2 +- arch/mips/sgi-ip32/ip32-memory.c | 3 +- arch/mips/sibyte/common/cfe.c | 16 ++++----- arch/mips/txx9/jmr3927/prom.c | 4 +-- arch/mips/txx9/rbtx4927/prom.c | 5 +-- arch/mips/txx9/rbtx4938/prom.c | 3 +- arch/mips/txx9/rbtx4939/prom.c | 4 +-- 28 files changed, 82 insertions(+), 149 deletions(-)
applied to mips-next.
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]
Quoted 5 lines · Thomas Bogendoerfer
add_memory_regionwas the old interface for registering memory and was already changed to used memblock internaly. Replace it by directly calling memblock functions.Signed-off-by Thomas Bogendoerfer <[email protected]>
For the DEC part:
NB this does not apply cleanly to upstream master, but I was able to verify this regardless as the DEC part does. For future reference: what tree do you usually use that you post patches against?
Maciej
Thomas Bogendoerfer
maintainerQuoted 8 lines · Maciej W. Rozycki
Quoted 5 lines · Thomas Bogendoerfer
add_memory_regionwas the old interface for registering memory and was already changed to used memblock internaly. Replace it by directly calling memblock functions.Signed-off-by Thomas Bogendoerfer <[email protected]>
Quoted 7 lines
For the DEC part:
NB this does not apply cleanly to upstream master, but I was able to verify this regardless as the DEC part does. For future reference: what tree do you usually use that you post patches against?
mips-next branch in
git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux.git
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]