Drop support for memory-hotplug and memory-hotremove on superH
Subsystems (2)
cover Drop support for memory-hotplug and memory-hotremove on superH
memory-hotplug dropped support for 32bit platforms a while back, and given that superH can only operate on 32bit at this moment, this cannot possibily work.
Remove all code and Kconfigs related to memory-hotplug and memory-hotremove.
Oscar Salvador (2):
arch/sh: Remove code that handles memory-hotplug and memory-hotremove arch/sh: Drop support for memory-hotplug and memory-hotremove
arch/sh/Kconfig | 2 -- arch/sh/configs/apsh4ad0a_defconfig | 2 -- arch/sh/configs/sdk7786_defconfig | 2 -- arch/sh/configs/shx3_defconfig | 2 -- arch/sh/mm/Kconfig | 4 ---- arch/sh/mm/init.c | 28 ---------------------------- 6 files changed, 40 deletions(-)
Signature · 1 line
2.45.1
PATCH 1/2 arch/sh: Remove code that handles memory-hotplug and memory-hotremove
Since commit 7ec58a2b941ed889("mm/memory_hotplug: restrict CONFIG_MEMORY_HOTPLUG to 64 bit"), we only support memory-hotplug on 64bits platforms, but currently superH can only run on 32bit, so remove the code that handles memory-hotplug and memory-hotremove as that cannot work.
--- arch/sh/mm/init.c | 28 ---------------------------- 1 file changed, 28 deletions(-)
arch/sh/mm/init.c +0 -28
@@ -395,31 +395,3 @@ void __init mem_init(void) mem_init_done =1 ; } - -#ifdef CONFIG_MEMORY_HOTPLUG -int arch_add_memory (int nid,u64 start,u64 size, -struct mhp_params *params) -{ -unsigned long start_pfn =PFN_DOWN (start); -unsigned long nr_pages = size >>PAGE_SHIFT ; -int ret; - -if (WARN_ON_ONCE (params->pgprot.pgprot !=PAGE_KERNEL .pgprot)) -return -EINVAL ; - -/* We only have ZONE_NORMAL, so this is easy.. */ - ret =__add_pages (nid, start_pfn, nr_pages, params); -if (unlikely (ret)) -printk ("%s: Failed, __add_pages() == %d\n" , __func__, ret); - -return ret; -} - -void arch_remove_memory (u64 start,u64 size,struct vmem_altmap *altmap) -{ -unsigned long start_pfn =PFN_DOWN (start); -unsigned long nr_pages = size >>PAGE_SHIFT ; - -__remove_pages (start_pfn, nr_pages, altmap); -} -#endif /* CONFIG_MEMORY_HOTPLUG */
Signature · 1 line
2.45.1
Re: [PATCH 1/2] arch/sh: Remove code that handles memory-hotplug and memory-hotremove
Quoted 37 lines · Oscar Salvador
Since commit 7ec58a2b941ed889("mm/memory_hotplug: restrict
CONFIG_MEMORY_HOTPLUGto 64 bit"), we only support memory-hotplug on 64bits platforms, but currently superH can only run on 32bit, so remove the code that handles memory-hotplug and memory-hotremove as that cannot work.Signed-off-by Oscar Salvador <[email protected]>--- arch/sh/mm/init.c | 28 ---------------------------- 1 file changed, 28 deletions(-)arch/sh/mm/init.c +0
-18@@ -395,31 +395,3 @@ void __init mem_init(void) mem_init_done =1 ; } - -#ifdef CONFIG_MEMORY_HOTPLUG -int arch_add_memory (int nid,u64 start,u64 size, -struct mhp_params *params) -{ -unsigned long start_pfn =PFN_DOWN (start); -unsigned long nr_pages = size >>PAGE_SHIFT ; -int ret; - -if (WARN_ON_ONCE (params->pgprot.pgprot !=PAGE_KERNEL .pgprot)) -return -EINVAL ; - -/* We only have ZONE_NORMAL, so this is easy.. */ - ret =__add_pages (nid, start_pfn, nr_pages, params); -if (unlikely (ret)) -printk ("%s: Failed, __add_pages() == %d\n" , __func__, ret); - -return ret;
arch/sh/mm/init.c void __init mem_init(void) · line 425
Quoted 10 lines
arch/sh/mm/init.c +0
-10-} - -void arch_remove_memory (u64 start,u64 size,struct vmem_altmap *altmap) -{ -unsigned long start_pfn =PFN_DOWN (start); -unsigned long nr_pages = size >>PAGE_SHIFT ; - -__remove_pages (start_pfn, nr_pages, altmap); -} -#endif /* CONFIG_MEMORY_HOTPLUG */
Will pick this up later today.
Adrian
Signature · 4 lines
.''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
PATCH 2/2 arch/sh: Drop support for memory-hotplug and memory-hotremove
In reply to Oscar SalvadorRemove all CONFIG options related to memory-hotplug and memory-hotremove.
--- arch/sh/Kconfig | 2 -- arch/sh/configs/apsh4ad0a_defconfig | 2 -- arch/sh/configs/sdk7786_defconfig | 2 -- arch/sh/configs/shx3_defconfig | 2 -- arch/sh/mm/Kconfig | 4 ---- 5 files changed, 12 deletions(-)
arch/sh/Kconfig +0 -2
@@ -3,8 +3,6 @@ config SUPERH def_bool y select ARCH_32BIT_OFF_T select ARCH_HAS_CPU_CACHE_ALIASING - select ARCH_ENABLE_MEMORY_HOTPLUG if SPARSEMEM && MMU - select ARCH_ENABLE_MEMORY_HOTREMOVE if SPARSEMEM && MMU select ARCH_HAVE_NMI_SAFE_CMPXCHG if (GUSA_RB || CPU_SH4A) select ARCH_HAS_BINFMT_FLAT if !MMU select ARCH_HAS_CPU_FINALIZE_INIT
arch/sh/configs/apsh4ad0a_defconfig +0 -2
@@ -24,8 +24,6 @@ CONFIG_BFQ_GROUP_IOSCHED=y CONFIG_CPU_SUBTYPE_SH7786=y CONFIG_MEMORY_SIZE=0x10000000 CONFIG_HUGETLB_PAGE_SIZE_1MB=y -CONFIG_MEMORY_HOTPLUG=y -CONFIG_MEMORY_HOTREMOVE=y CONFIG_KSM=y CONFIG_SH_STORE_QUEUES=y CONFIG_SH_APSH4AD0A=y
arch/sh/configs/sdk7786_defconfig +0 -2
@@ -43,8 +43,6 @@ CONFIG_MEMORY_SIZE=0x20000000 CONFIG_PMB=y CONFIG_NUMA=y CONFIG_HUGETLB_PAGE_SIZE_64MB=y -CONFIG_MEMORY_HOTPLUG=y -CONFIG_MEMORY_HOTREMOVE=y CONFIG_KSM=y CONFIG_SH_STORE_QUEUES=y CONFIG_SPECULATIVE_EXECUTION=y
arch/sh/configs/shx3_defconfig +0 -2
@@ -31,8 +31,6 @@ CONFIG_CPU_SUBTYPE_SHX3=y CONFIG_MEMORY_START=0x0c000000 CONFIG_NUMA=y CONFIG_PAGE_SIZE_64KB=y -CONFIG_MEMORY_HOTPLUG=y -CONFIG_MEMORY_HOTREMOVE=y CONFIG_SH_STORE_QUEUES=y CONFIG_SH_X3PROTO=y CONFIG_NO_HZ=y
arch/sh/mm/Kconfig +0 -4
@@ -144,10 +144,6 @@ config ARCH_SPARSEMEM_DEFAULT config ARCH_SELECT_MEMORY_MODEL def_bool y -config ARCH_MEMORY_PROBE - def_bool y - depends on MEMORY_HOTPLUG - config IOREMAP_FIXED def_bool y depends on X2TLB
Signature · 1 line
2.45.1
Re: [PATCH 2/2] arch/sh: Drop support for memory-hotplug and memory-hotremove
Quoted 68 lines · Oscar Salvador
Remove all CONFIG options related to memory-hotplug and memory-hotremove.
Signed-off-by Oscar Salvador <[email protected]>--- arch/sh/Kconfig | 2 -- arch/sh/configs/apsh4ad0a_defconfig | 2 -- arch/sh/configs/sdk7786_defconfig | 2 -- arch/sh/configs/shx3_defconfig | 2 -- arch/sh/mm/Kconfig | 4 ---- 5 files changed, 12 deletions(-)arch/sh/Kconfig +0
-2@@ -3,8 +3,6 @@ config SUPERH def_bool y select ARCH_32BIT_OFF_T select ARCH_HAS_CPU_CACHE_ALIASING - select ARCH_ENABLE_MEMORY_HOTPLUG if SPARSEMEM && MMU - select ARCH_ENABLE_MEMORY_HOTREMOVE if SPARSEMEM && MMU select ARCH_HAVE_NMI_SAFE_CMPXCHG if (GUSA_RB || CPU_SH4A) select ARCH_HAS_BINFMT_FLAT if !MMU select ARCH_HAS_CPU_FINALIZE_INITarch/sh/configs/apsh4ad0a_defconfig +0
-2@@ -24,8 +24,6 @@ CONFIG_BFQ_GROUP_IOSCHED=y CONFIG_CPU_SUBTYPE_SH7786=y CONFIG_MEMORY_SIZE=0x10000000 CONFIG_HUGETLB_PAGE_SIZE_1MB=y -CONFIG_MEMORY_HOTPLUG=y -CONFIG_MEMORY_HOTREMOVE=y CONFIG_KSM=y CONFIG_SH_STORE_QUEUES=y CONFIG_SH_APSH4AD0A=yarch/sh/configs/sdk7786_defconfig +0
-2@@ -43,8 +43,6 @@ CONFIG_MEMORY_SIZE=0x20000000 CONFIG_PMB=y CONFIG_NUMA=y CONFIG_HUGETLB_PAGE_SIZE_64MB=y -CONFIG_MEMORY_HOTPLUG=y -CONFIG_MEMORY_HOTREMOVE=y CONFIG_KSM=y CONFIG_SH_STORE_QUEUES=y CONFIG_SPECULATIVE_EXECUTION=yarch/sh/configs/shx3_defconfig +0
-2@@ -31,8 +31,6 @@ CONFIG_CPU_SUBTYPE_SHX3=y CONFIG_MEMORY_START=0x0c000000 CONFIG_NUMA=y CONFIG_PAGE_SIZE_64KB=y -CONFIG_MEMORY_HOTPLUG=y -CONFIG_MEMORY_HOTREMOVE=y CONFIG_SH_STORE_QUEUES=y CONFIG_SH_X3PROTO=y CONFIG_NO_HZ=yarch/sh/mm/Kconfig +0
-0
arch/sh/mm/Kconfig config ARCH_SPARSEMEM_DEFAULT · line 149
Quoted 10 lines
arch/sh/mm/Kconfig +0
-4@@ -144,10 +144,6 @@ config ARCH_SPARSEMEM_DEFAULT config ARCH_SELECT_MEMORY_MODEL def_bool y -config ARCH_MEMORY_PROBE - def_bool y - depends on MEMORY_HOTPLUG - config IOREMAP_FIXED def_bool y depends on X2TLB
Will pick this up later today.
Adrian
Signature · 4 lines
.''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913