of: Specify initrd location using 64-bit
Subsystems (10)
PATCH v2 1/1 of: Specify initrd location using 64-bit
On some PAE architectures, the entire range of physical memory could reside outside the 32-bit limit. These systems need the ability to specify the initrd location using 64-bit numbers.
This patch globally modifies the early_init_dt_setup_initrd_arch() function to use 64-bit numbers instead of the current unsigned long.
There has been quite a bit of debate about whether to use u64 or phys_addr_t. It was concluded to stick to u64 to be consistent with rest of the device tree code. As summarized by Geert, "The address to load the initrd is decided by the bootloader/user and set at that point later in time. The dtb should not be tied to the kernel you are booting"
More details on the discussion can be found here:
https://lkml.org/lkml/2013/6/20/690
https://lkml.org/lkml/2012/9/13/544
--- arch/arc/mm/init.c | 5 ++--- arch/arm/mm/init.c | 2 +- arch/arm64/mm/init.c | 3 +-- arch/c6x/kernel/devicetree.c | 3 +-- arch/metag/mm/init.c | 5 ++--- arch/microblaze/kernel/prom.c | 3 +-- arch/mips/kernel/prom.c | 3 +-- arch/openrisc/kernel/prom.c | 3 +-- arch/powerpc/kernel/prom.c | 3 +-- arch/x86/kernel/devicetree.c | 3 +-- arch/xtensa/kernel/setup.c | 3 +-- drivers/of/fdt.c | 10 ++++++---- include/linux/of_fdt.h | 3 +-- 13 files changed, 20 insertions(+), 29 deletions(-)
arch/arc/mm/init.c +2 -3
@@ -157,9 +157,8 @@ void __init free_initrd_mem(unsigned long start, unsigned long end)#endif #ifdef CONFIG_OF_FLATTREE -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { -pr_err ("%s(%lx, %lx)\n" , __func__, start, end); +pr_err ("%s(%llx, %llx)\n" , __func__, start, end); }#endif /* CONFIG_OF_FLATTREE */
arch/arm/mm/init.c +1 -1
@@ -76,7 +76,7 @@ static int __init parse_tag_initrd2(const struct tag *tag)__tagtable (ATAG_INITRD2 , parse_tag_initrd2);#ifdef CONFIG_OF_FLATTREE -void __init early_init_dt_setup_initrd_arch (unsigned long start,unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { phys_initrd_start = start; phys_initrd_size = end - start;
arch/arm64/mm/init.c +1 -2
@@ -44,8 +44,7 @@ static unsigned long phys_initrd_size __initdata = 0;phys_addr_t memstart_addr__read_mostly =0 ; -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { phys_initrd_start = start; phys_initrd_size = end - start;
arch/c6x/kernel/devicetree.c +1 -2
@@ -33,8 +33,7 @@ void __init early_init_devtree(void *params)#ifdef CONFIG_BLK_DEV_INITRD -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (unsigned long )__va (start); initrd_end = (unsigned long )__va (end);
arch/metag/mm/init.c +2 -3
@@ -419,10 +419,9 @@ void free_initrd_mem(unsigned long start, unsigned long end)#endif #ifdef CONFIG_OF_FLATTREE -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { -pr_err ("%s(%lx, %lx)\n" , +pr_err ("%s(%llx, %llx)\n" , __func__, start, end); }#endif /* CONFIG_OF_FLATTREE */
arch/microblaze/kernel/prom.c +1 -2
@@ -136,8 +136,7 @@ void __init early_init_devtree(void *params) }#ifdef CONFIG_BLK_DEV_INITRD -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (unsigned long )__va (start); initrd_end = (unsigned long )__va (end);
arch/mips/kernel/prom.c +1 -2
@@ -58,8 +58,7 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) }#ifdef CONFIG_BLK_DEV_INITRD -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (unsigned long )__va (start); initrd_end = (unsigned long )__va (end);
arch/openrisc/kernel/prom.c +1 -2
@@ -96,8 +96,7 @@ void __init early_init_devtree(void *params) }#ifdef CONFIG_BLK_DEV_INITRD -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (unsigned long )__va (start); initrd_end = (unsigned long )__va (end);
arch/powerpc/kernel/prom.c +1 -2
@@ -550,8 +550,7 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) }#ifdef CONFIG_BLK_DEV_INITRD -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (unsigned long )__va (start); initrd_end = (unsigned long )__va (end);
arch/x86/kernel/devicetree.c +1 -2
@@ -52,8 +52,7 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) }#ifdef CONFIG_BLK_DEV_INITRD -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (unsigned long )__va (start); initrd_end = (unsigned long )__va (end);
arch/xtensa/kernel/setup.c +1 -2
@@ -170,8 +170,7 @@ static int __init parse_tag_fdt(const bp_tag_t *tag)__tagtable (BP_TAG_FDT , parse_tag_fdt); -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (void *)__va (start); initrd_end = (void *)__va (end);
drivers/of/fdt.c +6 -4
@@ -550,7 +550,8 @@ int __init of_flat_dt_match(unsigned long node, const char *const *compat)*/ void __init early_init_dt_check_for_initrd (unsigned long node) { -unsigned long start, end, len; +u64 start, end; +unsigned long len;__be32 *prop;pr_debug ("Looking for initrd properties... " );
@@ -558,15 +559,16 @@ void __init early_init_dt_check_for_initrd(unsigned long node) prop =of_get_flat_dt_prop (node,"linux,initrd-start" , &len);if (!prop)return ; - start =of_read_ulong (prop, len/4 ); + start =of_read_number (prop, len/4 ); prop =of_get_flat_dt_prop (node,"linux,initrd-end" , &len);if (!prop)return ; - end =of_read_ulong (prop, len/4 ); + end =of_read_number (prop, len/4 );early_init_dt_setup_initrd_arch (start, end); - pr_debug("initrd_start=0x%lx initrd_end=0x%lx\n", start, end); +pr_debug ("initrd_start=0x%llx initrd_end=0x%llx\n" , + (unsigned long long)start, (unsigned long long)end); }#else inline void early_init_dt_check_for_initrd (unsigned long node)
include/linux/of_fdt.h +1 -2
@@ -106,8 +106,7 @@ extern u64 dt_mem_next_cell(int s, __be32 **cellp);* physical addresses. */ #ifdef CONFIG_BLK_DEV_INITRD -extern void early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end); +extern void early_init_dt_setup_initrd_arch (u64 start,u64 end);#endif /* Early flat tree scan hooks */
Signature · 1 line
1.7.9.5
PATCH v2 1/1 of: Specify initrd location using 64-bit
Quoted 4 lines · Santosh Shilimkar
On some PAE architectures, the entire range of physical memory could reside outside the 32-bit limit. These systems need the ability to specify the initrd location using 64-bit numbers.
Quoted 8 lines
This patch globally modifies the
early_init_dt_setup_initrd_arch()function to use 64-bit numbers instead of the current unsigned long.There has been quite a bit of debate about whether to use u64 or
phys_addr_t. It was concluded to stick to u64 to be consistent with rest of the device tree code. As summarized by Geert, "The address to load the initrd is decided by the bootloader/user and set at that point later in time. The dtb should not be tied to the kernel you are booting"
That was quoting me. Otherwise:
Unless Grant feels compelled to pick this up for 3.11, I think it has to wait for 3.12.
Rob
Quoted 261 lines
More details on the discussion can be found here:
https://lkml.org/lkml/2013/6/20/690
https://lkml.org/lkml/2012/9/13/544Cc Grant Likely <[email protected]>Cc Rob Herring <[email protected]>Cc Geert Uytterhoeven <[email protected]>Cc Sebastian Andrzej Siewior <[email protected]>Cc Jean-Christophe PLAGNIOL-VILLARD <[email protected]>Cc Vineet Gupta <[email protected]>Cc Russell King <[email protected]>Cc Catalin Marinas <[email protected]>Cc Will Deacon <[email protected]>Cc Mark Salter <[email protected]>Cc Aurelien Jacquiot <[email protected]>Cc James Hogan <[email protected]>Cc Michal Simek <[email protected]>Cc Ralf Baechle <[email protected]>Cc Jonas Bonn <[email protected]>Cc Benjamin Herrenschmidt <[email protected]>Cc Paul Mackerras <[email protected]>Cc x86 at kernel.orgCc arm at kernel.orgCc Chris Zankel <[email protected]>Cc Max Filippov <[email protected]>Cc bigeasy at linutronix.deCc robherring2 at gmail.comCc Nicolas Pitre <[email protected]>Cc linux-arm-kernel at lists.infradead.orgCc linux-c6x-dev at linux-c6x.orgCc linux-mips at linux-mips.orgCc linuxppc-dev at lists.ozlabs.orgCc linux-xtensa at linux-xtensa.orgCc devicetree-discuss at lists.ozlabs.orgSigned-off-by Santosh Shilimkar <[email protected]>--- arch/arc/mm/init.c | 5 ++--- arch/arm/mm/init.c | 2 +- arch/arm64/mm/init.c | 3 +-- arch/c6x/kernel/devicetree.c | 3 +-- arch/metag/mm/init.c | 5 ++--- arch/microblaze/kernel/prom.c | 3 +-- arch/mips/kernel/prom.c | 3 +-- arch/openrisc/kernel/prom.c | 3 +-- arch/powerpc/kernel/prom.c | 3 +-- arch/x86/kernel/devicetree.c | 3 +-- arch/xtensa/kernel/setup.c | 3 +-- drivers/of/fdt.c | 10 ++++++---- include/linux/of_fdt.h | 3 +-- 13 files changed, 20 insertions(+), 29 deletions(-)arch/arc/mm/init.c +2
-3@@ -157,9 +157,8 @@ void __init free_initrd_mem(unsigned long start, unsigned long end)#endif #ifdef CONFIG_OF_FLATTREE -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { -pr_err ("%s(%lx, %lx)\n" , __func__, start, end); +pr_err ("%s(%llx, %llx)\n" , __func__, start, end); }#endif /* CONFIG_OF_FLATTREE */ arch/arm/mm/init.c +1
-1@@ -76,7 +76,7 @@ static int __init parse_tag_initrd2(const struct tag *tag)__tagtable (ATAG_INITRD2 , parse_tag_initrd2);#ifdef CONFIG_OF_FLATTREE -void __init early_init_dt_setup_initrd_arch (unsigned long start,unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { phys_initrd_start = start; phys_initrd_size = end - start;arch/arm64/mm/init.c +1
-2@@ -44,8 +44,7 @@ static unsigned long phys_initrd_size __initdata = 0;phys_addr_t memstart_addr__read_mostly =0 ; -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { phys_initrd_start = start; phys_initrd_size = end - start;arch/c6x/kernel/devicetree.c +1
-2@@ -33,8 +33,7 @@ void __init early_init_devtree(void *params)#ifdef CONFIG_BLK_DEV_INITRD -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (unsigned long )__va (start); initrd_end = (unsigned long )__va (end);arch/metag/mm/init.c +2
-3@@ -419,10 +419,9 @@ void free_initrd_mem(unsigned long start, unsigned long end)#endif #ifdef CONFIG_OF_FLATTREE -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { -pr_err ("%s(%lx, %lx)\n" , +pr_err ("%s(%llx, %llx)\n" , __func__, start, end); }#endif /* CONFIG_OF_FLATTREE */ arch/microblaze/kernel/prom.c +1
-2@@ -136,8 +136,7 @@ void __init early_init_devtree(void *params) }#ifdef CONFIG_BLK_DEV_INITRD -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (unsigned long )__va (start); initrd_end = (unsigned long )__va (end);arch/mips/kernel/prom.c +1
-2@@ -58,8 +58,7 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) }#ifdef CONFIG_BLK_DEV_INITRD -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (unsigned long )__va (start); initrd_end = (unsigned long )__va (end);arch/openrisc/kernel/prom.c +1
-2@@ -96,8 +96,7 @@ void __init early_init_devtree(void *params) }#ifdef CONFIG_BLK_DEV_INITRD -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (unsigned long )__va (start); initrd_end = (unsigned long )__va (end);arch/powerpc/kernel/prom.c +1
-2@@ -550,8 +550,7 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) }#ifdef CONFIG_BLK_DEV_INITRD -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (unsigned long )__va (start); initrd_end = (unsigned long )__va (end);arch/x86/kernel/devicetree.c +1
-2@@ -52,8 +52,7 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) }#ifdef CONFIG_BLK_DEV_INITRD -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (unsigned long )__va (start); initrd_end = (unsigned long )__va (end);arch/xtensa/kernel/setup.c +1
-2@@ -170,8 +170,7 @@ static int __init parse_tag_fdt(const bp_tag_t *tag)__tagtable (BP_TAG_FDT , parse_tag_fdt); -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (void *)__va (start); initrd_end = (void *)__va (end);drivers/of/fdt.c +6
-4@@ -550,7 +550,8 @@ int __init of_flat_dt_match(unsigned long node, const char *const *compat)*/ void __init early_init_dt_check_for_initrd (unsigned long node) { -unsigned long start, end, len; +u64 start, end; +unsigned long len;__be32 *prop;pr_debug ("Looking for initrd properties... " );@@ -558,15 +559,16 @@ void __init early_init_dt_check_for_initrd(unsigned long node) prop =of_get_flat_dt_prop (node,"linux,initrd-start" , &len);if (!prop)return ; - start =of_read_ulong (prop, len/4 ); + start =of_read_number (prop, len/4 ); prop =of_get_flat_dt_prop (node,"linux,initrd-end" , &len);if (!prop)return ; - end =of_read_ulong (prop, len/4 ); + end =of_read_number (prop, len/4 );early_init_dt_setup_initrd_arch (start, end); - pr_debug("initrd_start=0x%lx initrd_end=0x%lx\n", start, end); +pr_debug ("initrd_start=0x%llx initrd_end=0x%llx\n" , + (unsigned long long)start, (unsigned long long)end); }#else inline void early_init_dt_check_for_initrd (unsigned long node)include/linux/of_fdt.h +1
-2@@ -106,8 +106,7 @@ extern u64 dt_mem_next_cell(int s, __be32 **cellp);* physical addresses. */ #ifdef CONFIG_BLK_DEV_INITRD -extern void early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end); +extern void early_init_dt_setup_initrd_arch (u64 start,u64 end);#endif /* Early flat tree scan hooks */
PATCH v2 1/1 of: Specify initrd location using 64-bit
Quoted 14 lines · Rob Herring
Quoted 4 lines · Santosh Shilimkar
On some PAE architectures, the entire range of physical memory could reside outside the 32-bit limit. These systems need the ability to specify the initrd location using 64-bit numbers.
Quoted 8 lines
This patch globally modifies the
early_init_dt_setup_initrd_arch()function to use 64-bit numbers instead of the current unsigned long.There has been quite a bit of debate about whether to use u64 or
phys_addr_t. It was concluded to stick to u64 to be consistent with rest of the device tree code. As summarized by Geert, "The address to load the initrd is decided by the bootloader/user and set at that point later in time. The dtb should not be tied to the kernel you are booting"
Quoted 6 lines
That was quoting me. Otherwise:
Acked-by Rob Herring <[email protected]>Unless Grant feels compelled to pick this up for 3.11, I think it has to wait for 3.12.
Nope, 3.12 is fine. Applied.
g.
PATCH v2 1/1 of: Specify initrd location using 64-bit
Quoted 15 lines · Grant Likely
Quoted 14 lines · Rob Herring
Quoted 12 lines · Santosh Shilimkar
On some PAE architectures, the entire range of physical memory could reside outside the 32-bit limit. These systems need the ability to specify the initrd location using 64-bit numbers.
This patch globally modifies the
early_init_dt_setup_initrd_arch()function to use 64-bit numbers instead of the current unsigned long.There has been quite a bit of debate about whether to use u64 or
phys_addr_t. It was concluded to stick to u64 to be consistent with rest of the device tree code. As summarized by Geert, "The address to load the initrd is decided by the bootloader/user and set at that point later in time. The dtb should not be tied to the kernel you are booting"
Quoted 9 lines
Quoted 6 lines
That was quoting me. Otherwise:
Acked-by Rob Herring <[email protected]>Unless Grant feels compelled to pick this up for 3.11, I think it has to wait for 3.12.
Nope, 3.12 is fine. Applied.
Thanks Grant.
Regards,
Santosh
PATCH v2 1/1 of: Specify initrd location using 64-bit
In reply to Santosh ShilimkarQuoted 49 lines · Santosh Shilimkar
On some PAE architectures, the entire range of physical memory could reside outside the 32-bit limit. These systems need the ability to specify the initrd location using 64-bit numbers.
This patch globally modifies the
early_init_dt_setup_initrd_arch()function to use 64-bit numbers instead of the current unsigned long.There has been quite a bit of debate about whether to use u64 or
phys_addr_t. It was concluded to stick to u64 to be consistent with rest of the device tree code. As summarized by Geert, "The address to load the initrd is decided by the bootloader/user and set at that point later in time. The dtb should not be tied to the kernel you are booting"More details on the discussion can be found here:
https://lkml.org/lkml/2013/6/20/690
https://lkml.org/lkml/2012/9/13/544Cc Grant Likely <[email protected]>Cc Rob Herring <[email protected]>Cc Geert Uytterhoeven <[email protected]>Cc Sebastian Andrzej Siewior <[email protected]>Cc Jean-Christophe PLAGNIOL-VILLARD <[email protected]>Cc Vineet Gupta <[email protected]>Cc Russell King <[email protected]>Cc Catalin Marinas <[email protected]>Cc Will Deacon <[email protected]>Cc Mark Salter <[email protected]>Cc Aurelien Jacquiot <[email protected]>Cc James Hogan <[email protected]>Cc Michal Simek <[email protected]>Cc Ralf Baechle <[email protected]>Cc Jonas Bonn <[email protected]>Cc Benjamin Herrenschmidt <[email protected]>Cc Paul Mackerras <[email protected]>Cc x86 at kernel.orgCc arm at kernel.orgCc Chris Zankel <[email protected]>Cc Max Filippov <[email protected]>Cc bigeasy at linutronix.deCc robherring2 at gmail.comCc Nicolas Pitre <[email protected]>Cc linux-arm-kernel at lists.infradead.orgCc linux-c6x-dev at linux-c6x.orgCc linux-mips at linux-mips.orgCc linuxppc-dev at lists.ozlabs.orgCc linux-xtensa at linux-xtensa.orgCc devicetree-discuss at lists.ozlabs.org
Quoted 2 lines
Signed-off-by Santosh Shilimkar <[email protected]>---
-Vineet
PATCH v2 1/1 of: Specify initrd location using 64-bit
In reply to Santosh ShilimkarQuoted 33 lines · Santosh Shilimkar
On some PAE architectures, the entire range of physical memory could reside outside the 32-bit limit. These systems need the ability to specify the initrd location using 64-bit numbers.
This patch globally modifies the
early_init_dt_setup_initrd_arch()function to use 64-bit numbers instead of the current unsigned long.There has been quite a bit of debate about whether to use u64 or
phys_addr_t. It was concluded to stick to u64 to be consistent with rest of the device tree code. As summarized by Geert, "The address to load the initrd is decided by the bootloader/user and set at that point later in time. The dtb should not be tied to the kernel you are booting"More details on the discussion can be found here:
https://lkml.org/lkml/2013/6/20/690
https://lkml.org/lkml/2012/9/13/544Cc Grant Likely <[email protected]>Cc Rob Herring <[email protected]>Cc Geert Uytterhoeven <[email protected]>Cc Sebastian Andrzej Siewior <[email protected]>Cc Jean-Christophe PLAGNIOL-VILLARD <[email protected]>Cc Vineet Gupta <[email protected]>Cc Russell King <[email protected]>Cc Catalin Marinas <[email protected]>Cc Will Deacon <[email protected]>Cc Mark Salter <[email protected]>Cc Aurelien Jacquiot <[email protected]>Cc James Hogan <[email protected]>Cc Michal Simek <[email protected]>Cc Ralf Baechle <[email protected]>Cc Jonas Bonn <[email protected]>Cc Benjamin Herrenschmidt <[email protected]>
Quoted 8 lines
Cc Paul Mackerras <[email protected]>Cc x86 at kernel.orgCc arm at kernel.orgCc Chris Zankel <[email protected]>Cc Max Filippov <[email protected]>Cc bigeasy at linutronix.deCc robherring2 at gmail.comCc Nicolas Pitre <[email protected]>
Quoted 234 lines
Cc linux-arm-kernel at lists.infradead.orgCc linux-c6x-dev at linux-c6x.orgCc linux-mips at linux-mips.orgCc linuxppc-dev at lists.ozlabs.orgCc linux-xtensa at linux-xtensa.orgCc devicetree-discuss at lists.ozlabs.orgSigned-off-by Santosh Shilimkar <[email protected]>--- arch/arc/mm/init.c | 5 ++--- arch/arm/mm/init.c | 2 +- arch/arm64/mm/init.c | 3 +-- arch/c6x/kernel/devicetree.c | 3 +-- arch/metag/mm/init.c | 5 ++--- arch/microblaze/kernel/prom.c | 3 +-- arch/mips/kernel/prom.c | 3 +-- arch/openrisc/kernel/prom.c | 3 +-- arch/powerpc/kernel/prom.c | 3 +-- arch/x86/kernel/devicetree.c | 3 +-- arch/xtensa/kernel/setup.c | 3 +-- drivers/of/fdt.c | 10 ++++++---- include/linux/of_fdt.h | 3 +-- 13 files changed, 20 insertions(+), 29 deletions(-)arch/arc/mm/init.c +2
-3@@ -157,9 +157,8 @@ void __init free_initrd_mem(unsigned long start, unsigned long end)#endif #ifdef CONFIG_OF_FLATTREE -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { -pr_err ("%s(%lx, %lx)\n" , __func__, start, end); +pr_err ("%s(%llx, %llx)\n" , __func__, start, end); }#endif /* CONFIG_OF_FLATTREE */ arch/arm/mm/init.c +1
-1@@ -76,7 +76,7 @@ static int __init parse_tag_initrd2(const struct tag *tag)__tagtable (ATAG_INITRD2 , parse_tag_initrd2);#ifdef CONFIG_OF_FLATTREE -void __init early_init_dt_setup_initrd_arch (unsigned long start,unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { phys_initrd_start = start; phys_initrd_size = end - start;arch/arm64/mm/init.c +1
-2@@ -44,8 +44,7 @@ static unsigned long phys_initrd_size __initdata = 0;phys_addr_t memstart_addr__read_mostly =0 ; -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { phys_initrd_start = start; phys_initrd_size = end - start;arch/c6x/kernel/devicetree.c +1
-2@@ -33,8 +33,7 @@ void __init early_init_devtree(void *params)#ifdef CONFIG_BLK_DEV_INITRD -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (unsigned long )__va (start); initrd_end = (unsigned long )__va (end);arch/metag/mm/init.c +2
-3@@ -419,10 +419,9 @@ void free_initrd_mem(unsigned long start, unsigned long end)#endif #ifdef CONFIG_OF_FLATTREE -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { -pr_err ("%s(%lx, %lx)\n" , +pr_err ("%s(%llx, %llx)\n" , __func__, start, end); }#endif /* CONFIG_OF_FLATTREE */ arch/microblaze/kernel/prom.c +1
-2@@ -136,8 +136,7 @@ void __init early_init_devtree(void *params) }#ifdef CONFIG_BLK_DEV_INITRD -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (unsigned long )__va (start); initrd_end = (unsigned long )__va (end);arch/mips/kernel/prom.c +1
-2@@ -58,8 +58,7 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) }#ifdef CONFIG_BLK_DEV_INITRD -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (unsigned long )__va (start); initrd_end = (unsigned long )__va (end);arch/openrisc/kernel/prom.c +1
-2@@ -96,8 +96,7 @@ void __init early_init_devtree(void *params) }#ifdef CONFIG_BLK_DEV_INITRD -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (unsigned long )__va (start); initrd_end = (unsigned long )__va (end);arch/powerpc/kernel/prom.c +1
-2@@ -550,8 +550,7 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) }#ifdef CONFIG_BLK_DEV_INITRD -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (unsigned long )__va (start); initrd_end = (unsigned long )__va (end);arch/x86/kernel/devicetree.c +1
-2@@ -52,8 +52,7 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) }#ifdef CONFIG_BLK_DEV_INITRD -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (unsigned long )__va (start); initrd_end = (unsigned long )__va (end);arch/xtensa/kernel/setup.c +1
-2@@ -170,8 +170,7 @@ static int __init parse_tag_fdt(const bp_tag_t *tag)__tagtable (BP_TAG_FDT , parse_tag_fdt); -void __init early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end) +void __init early_init_dt_setup_initrd_arch (u64 start,u64 end) { initrd_start = (void *)__va (start); initrd_end = (void *)__va (end);drivers/of/fdt.c +6
-4@@ -550,7 +550,8 @@ int __init of_flat_dt_match(unsigned long node, const char *const *compat)*/ void __init early_init_dt_check_for_initrd (unsigned long node) { -unsigned long start, end, len; +u64 start, end; +unsigned long len;__be32 *prop;pr_debug ("Looking for initrd properties... " );@@ -558,15 +559,16 @@ void __init early_init_dt_check_for_initrd(unsigned long node) prop =of_get_flat_dt_prop (node,"linux,initrd-start" , &len);if (!prop)return ; - start =of_read_ulong (prop, len/4 ); + start =of_read_number (prop, len/4 ); prop =of_get_flat_dt_prop (node,"linux,initrd-end" , &len);if (!prop)return ; - end =of_read_ulong (prop, len/4 ); + end =of_read_number (prop, len/4 );early_init_dt_setup_initrd_arch (start, end); - pr_debug("initrd_start=0x%lx initrd_end=0x%lx\n", start, end); +pr_debug ("initrd_start=0x%llx initrd_end=0x%llx\n" , + (unsigned long long)start, (unsigned long long)end); }#else inline void early_init_dt_check_for_initrd (unsigned long node)include/linux/of_fdt.h +1
-2@@ -106,8 +106,7 @@ extern u64 dt_mem_next_cell(int s, __be32 **cellp);* physical addresses. */ #ifdef CONFIG_BLK_DEV_INITRD -extern void early_init_dt_setup_initrd_arch (unsigned long start, -unsigned long end); +extern void early_init_dt_setup_initrd_arch (u64 start,u64 end);#endif /* Early flat tree scan hooks */ Signature · 1 line
1.7.9.5