* [PATCH 4/7] mips: remove arch specific early_init_dt_alloc_memory_arch
[not found] <20180105231424.19247-1-robh@kernel.org>
@ 2018-01-05 23:14 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2018-01-05 23:14 UTC (permalink / raw)
To: devicetree, linux-kernel; +Cc: Frank Rowand, Ralf Baechle, linux-mips
Now that the DT core code handles bootmem arches, we can remove the MIPS
specific early_init_dt_alloc_memory_arch function.
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Signed-off-by: Rob Herring <robh@kernel.org>
---
This is dependent on patch 1. Please ack and I'll take or apply after
4.16-rc1.
arch/mips/kernel/prom.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/arch/mips/kernel/prom.c b/arch/mips/kernel/prom.c
index 0dbcd152a1a9..89950b7bf536 100644
--- a/arch/mips/kernel/prom.c
+++ b/arch/mips/kernel/prom.c
@@ -44,11 +44,6 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size)
return add_memory_region(base, size, BOOT_MEM_RAM);
}
-void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
-{
- return __alloc_bootmem(size, align, __pa(MAX_DMA_ADDRESS));
-}
-
int __init early_init_dt_reserve_memory_arch(phys_addr_t base,
phys_addr_t size, bool nomap)
{
--
2.14.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 0/7] DT: consolidate bootmem support
@ 2018-01-05 23:20 Rob Herring
2018-01-05 23:20 ` [PATCH 4/7] mips: remove arch specific early_init_dt_alloc_memory_arch Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: Rob Herring @ 2018-01-05 23:20 UTC (permalink / raw)
To: devicetree, linux-kernel
Cc: Frank Rowand, Chris Zankel, Max Filippov, linux-xtensa,
Thomas Gleixner, Ingo Molnar, H. Peter Anvin, x86, Ley Foon Tan,
nios2-dev, Ralf Baechle, linux-mips, James Hogan, linux-metag,
Mikael Starvik, Jesper Nilsson, linux-cris-kernel
This series adds support for bootmem to the DT core code and removes the
remaining arch specific early_init_dt_alloc_memory_arch implementations.
Compile tested only on arm64, mips, x86, and xtensa.
Rob
Rob Herring (7):
of/fdt: use memblock_virt_alloc for early alloc
cris: remove arch specific early DT functions
metag: remove arch specific early DT functions
mips: remove arch specific early_init_dt_alloc_memory_arch
nios2: remove arch specific early_init_dt_alloc_memory_arch
x86: remove arch specific early_init_dt_alloc_memory_arch
xtensa: remove arch specific early DT functions
arch/cris/kernel/Makefile | 19 -------------------
arch/cris/kernel/devicetree.c | 15 ---------------
arch/metag/kernel/devtree.c | 14 --------------
arch/mips/kernel/prom.c | 5 -----
arch/nios2/kernel/prom.c | 5 -----
arch/x86/kernel/devicetree.c | 6 ------
arch/xtensa/kernel/setup.c | 12 ------------
drivers/of/fdt.c | 16 ++++------------
drivers/of/unittest.c | 11 ++++++++---
include/linux/of_fdt.h | 1 -
10 files changed, 12 insertions(+), 92 deletions(-)
delete mode 100644 arch/cris/kernel/devicetree.c
--
2.14.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 4/7] mips: remove arch specific early_init_dt_alloc_memory_arch
2018-01-05 23:20 [PATCH 0/7] DT: consolidate bootmem support Rob Herring
@ 2018-01-05 23:20 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2018-01-05 23:20 UTC (permalink / raw)
To: devicetree, linux-kernel; +Cc: Frank Rowand, Ralf Baechle, linux-mips
Now that the DT core code handles bootmem arches, we can remove the MIPS
specific early_init_dt_alloc_memory_arch function.
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Signed-off-by: Rob Herring <robh@kernel.org>
---
This is dependent on patch 1. Please ack and I'll take or apply after
4.16-rc1.
arch/mips/kernel/prom.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/arch/mips/kernel/prom.c b/arch/mips/kernel/prom.c
index 0dbcd152a1a9..89950b7bf536 100644
--- a/arch/mips/kernel/prom.c
+++ b/arch/mips/kernel/prom.c
@@ -44,11 +44,6 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size)
return add_memory_region(base, size, BOOT_MEM_RAM);
}
-void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
-{
- return __alloc_bootmem(size, align, __pa(MAX_DMA_ADDRESS));
-}
-
int __init early_init_dt_reserve_memory_arch(phys_addr_t base,
phys_addr_t size, bool nomap)
{
--
2.14.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-05 23:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20180105231424.19247-1-robh@kernel.org>
2018-01-05 23:14 ` [PATCH 4/7] mips: remove arch specific early_init_dt_alloc_memory_arch Rob Herring
2018-01-05 23:20 [PATCH 0/7] DT: consolidate bootmem support Rob Herring
2018-01-05 23:20 ` [PATCH 4/7] mips: remove arch specific early_init_dt_alloc_memory_arch Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox