ARC: [plat-eznps]: Drop support for EZChip NPS platform
Subsystems (5)
PATCH 1/1 ARC: [plat-eznps]: Drop support for EZChip NPS platform
NPS customers are no longer doing active development, as evident from rand config build failures reported in recent times, so drop support for NPS platform.
--- MAINTAINERS | 7 - arch/arc/Makefile | 5 - arch/arc/configs/nps_defconfig | 80 --------- arch/arc/include/asm/atomic.h | 104 ------------ arch/arc/include/asm/barrier.h | 9 +- arch/arc/include/asm/bitops.h | 58 +------ arch/arc/include/asm/cmpxchg.h | 70 +------- arch/arc/include/asm/entry-compact.h | 27 --- arch/arc/include/asm/processor.h | 37 ----- arch/arc/include/asm/ptrace.h | 5 - arch/arc/include/asm/setup.h | 4 - arch/arc/include/asm/spinlock.h | 6 - arch/arc/include/asm/switch_to.h | 9 - arch/arc/kernel/ctx_sw.c | 13 -- arch/arc/kernel/process.c | 15 -- arch/arc/mm/tlbex.S | 7 - arch/arc/plat-eznps/Kconfig | 58 ------- arch/arc/plat-eznps/Makefile | 8 - arch/arc/plat-eznps/ctop.c | 21 --- arch/arc/plat-eznps/entry.S | 60 ------- arch/arc/plat-eznps/include/plat/ctop.h | 208 ------------------------ arch/arc/plat-eznps/include/plat/mtm.h | 49 ------ arch/arc/plat-eznps/include/plat/smp.h | 15 -- arch/arc/plat-eznps/mtm.c | 166 ------------------- arch/arc/plat-eznps/platform.c | 91 ----------- arch/arc/plat-eznps/smp.c | 138 ---------------- 26 files changed, 5 insertions(+), 1265 deletions(-) delete mode 100644 arch/arc/configs/nps_defconfig delete mode 100644 arch/arc/plat-eznps/Kconfig delete mode 100644 arch/arc/plat-eznps/Makefile delete mode 100644 arch/arc/plat-eznps/ctop.c delete mode 100644 arch/arc/plat-eznps/entry.S delete mode 100644 arch/arc/plat-eznps/include/plat/ctop.h delete mode 100644 arch/arc/plat-eznps/include/plat/mtm.h delete mode 100644 arch/arc/plat-eznps/include/plat/smp.h delete mode 100644 arch/arc/plat-eznps/mtm.c delete mode 100644 arch/arc/plat-eznps/platform.c delete mode 100644 arch/arc/plat-eznps/smp.c
MAINTAINERS +0 -7
@@ -6614,13 +6614,6 @@ L: [email protected] S: Maintained F: drivers/iommu/exynos-iommu.c -EZchip NPS platform support -M: Vineet Gupta <[email protected]> -M: Ofer Levi <[email protected]> -S: Supported -F: arch/arc/boot/dts/eznps.dts -F: arch/arc/plat-eznps - F2FS FILE SYSTEM M: Jaegeuk Kim <[email protected]> M: Chao Yu <[email protected]>
arch/arc/Makefile +0 -5
@@ -94,13 +94,8 @@ core-y += arch/arc/boot/dts/ core-y += arch/arc/plat-sim/ core-$(CONFIG_ARC_PLAT_TB10X) += arch/arc/plat-tb10x/ core-$(CONFIG_ARC_PLAT_AXS10X) += arch/arc/plat-axs10x/ -core-$(CONFIG_ARC_PLAT_EZNPS) += arch/arc/plat-eznps/ core-$(CONFIG_ARC_SOC_HSDK) += arch/arc/plat-hsdk/ -ifdef CONFIG_ARC_PLAT_EZNPS -KBUILD_CPPFLAGS += -I$(srctree)/arch/arc/plat-eznps/include -endif - drivers-$(CONFIG_OPROFILE) += arch/arc/oprofile/ libs-y += arch/arc/lib/ $(LIBGCC)
arch/arc/configs/nps_defconfig deleted +0 -80
80 lines not on this page · raw message
arch/arc/include/asm/atomic.h +0 -104
116 lines not on this page · raw message
arch/arc/include/asm/barrier.h +1 -8
@@ -27,7 +27,7 @@#define rmb () asm volatile("dmb 1\n" : : : "memory")#define wmb () asm volatile("dmb 2\n" : : : "memory") -#elif !defined(CONFIG_ARC_PLAT_EZNPS )/* CONFIG_ISA_ARCOMPACT */ +#else /* * ARCompact based cores (ARC700) only have SYNC instruction which is super
@@ -37,13 +37,6 @@#define mb () asm volatile("sync\n" : : : "memory") -#else /* CONFIG_ARC_PLAT_EZNPS */ - -#include <plat/ctop.h> - -#define mb () asm volatile (".word %0" : : "i"(CTOP_INST_SCHD_RW) : "memory") -#define rmb () asm volatile (".word %0" : : "i"(CTOP_INST_SCHD_RD) : "memory") -#endif #include <asm-generic/barrier.h>
arch/arc/include/asm/bitops.h +2 -56
79 lines not on this page · raw message
arch/arc/include/asm/cmpxchg.h +2 -68
94 lines not on this page · raw message
arch/arc/include/asm/entry-compact.h +0 -27
@@ -33,10 +33,6 @@#include <asm/irqflags-compact.h> #include <asm/thread_info.h> /* For THREAD_SIZE */ -#ifdef CONFIG_ARC_PLAT_EZNPS -#include <plat/ctop.h> -#endif -/*-------------------------------------------------------------- * Switch to Kernel Mode stack if SP points to User Mode stack *
@@ -189,12 +185,6 @@ PUSHAX lp_start PUSHAX erbta -#ifdef CONFIG_ARC_PLAT_EZNPS - .word CTOP_INST_SCHD_RW - PUSHAX CTOP_AUX_GPA1 - PUSHAX CTOP_AUX_EFLAGS -#endif - lr r10, [ecr] st r10, [sp, PT_event] /* EV_Trap expects r10 to have ECR */ .endm
@@ -211,11 +201,6 @@* by hardware and that is not good. *-------------------------------------------------------------*/ .macro EXCEPTION_EPILOGUE -#ifdef CONFIG_ARC_PLAT_EZNPS - .word CTOP_INST_SCHD_RW - POPAX CTOP_AUX_EFLAGS - POPAX CTOP_AUX_GPA1 -#endif POPAX erbtaPOPAX lp_start
@@ -278,11 +263,6 @@ PUSHAX lp_start PUSHAX bta_l\LVL\() -#ifdef CONFIG_ARC_PLAT_EZNPS - .word CTOP_INST_SCHD_RW - PUSHAX CTOP_AUX_GPA1 - PUSHAX CTOP_AUX_EFLAGS -#endif .endm/*--------------------------------------------------------------
@@ -295,11 +275,6 @@* by hardware and that is not good. *-------------------------------------------------------------*/ .macro INTERRUPT_EPILOGUE LVL -#ifdef CONFIG_ARC_PLAT_EZNPS - .word CTOP_INST_SCHD_RW - POPAX CTOP_AUX_EFLAGS - POPAX CTOP_AUX_GPA1 -#endif POPAX bta_l\LVL\() POPAX lp_start
@@ -327,13 +302,11 @@ bic \reg, sp, (THREAD_SIZE - 1) .endm -#ifndef CONFIG_ARC_PLAT_EZNPS /* Get CPU-ID of this core */ .macro GET_CPU_ID reg lr \reg, [identity] lsr \reg, \reg, 8 bmsk \reg, \reg, 7 .endm -#endif #endif /* __ASM_ARC_ENTRY_COMPACT_H */
arch/arc/include/asm/processor.h +0 -37
@@ -17,13 +17,6 @@#include <asm/dsp.h> #include <asm/fpu.h> -#ifdef CONFIG_ARC_PLAT_EZNPS -struct eznps_dp { -unsigned int eflags; -unsigned int gpa1; -}; -#endif -/* Arch specific stuff which needs to be saved per task. * However these items are not so important so as to earn a place in * struct thread_info
@@ -38,9 +31,6 @@ struct thread_struct {#ifdef CONFIG_ARC_FPU_SAVE_RESTORE struct arc_fpu fpu;#endif -#ifdef CONFIG_ARC_PLAT_EZNPS -struct eznps_dp dp; -#endif };#define INIT_THREAD { \
@@ -60,17 +50,8 @@ struct task_struct;* A lot of busy-wait loops in SMP are based off of non-volatile data otherwise * get optimised away by gcc */ -#ifndef CONFIG_EZNPS_MTM_EXT -#define cpu_relax () barrier() -#else - -#define cpu_relax () \ - __asm__ __volatile__ (".word %0" : : "i"(CTOP_INST_SCHD_RW) : "memory") - -#endif -#define KSTK_EIP (tsk) (task_pt_regs(tsk)->ret)#define KSTK_ESP (tsk) (task_pt_regs(tsk)->sp)
@@ -118,25 +99,7 @@ extern unsigned int get_wchan(struct task_struct *p);#define USER_KERNEL_GUTTER (VMALLOC_START - TASK_SIZE) -#ifdef CONFIG_ARC_PLAT_EZNPS -/* NPS architecture defines special window of 129M in user address space for -* special memory areas, when accessing this window the MMU do not use TLB. -* Instead MMU direct the access to: -* 0x57f00000:0x57ffffff -- 1M of closely coupled memory (aka CMEM) -* 0x58000000:0x5fffffff -- 16 huge pages, 8M each, with fixed map (aka FMTs) -* -* CMEM - is the fastest memory we got and its size is 16K. -* FMT - is used to map either to internal/external memory. -* Internal memory is the second fast memory and its size is 16M -* External memory is the biggest memory (16G) and also the slowest. -* -* STACK_TOP need to be PMD align (21bit) that is why we supply 0x57e00000. -*/ -#define STACK_TOP 0x57e00000 -#else #define STACK_TOP TASK_SIZE -#endif -#define STACK_TOP_MAX STACK_TOP/* This decides where the kernel will search for a free chunk of vm
arch/arc/include/asm/ptrace.h +0 -5
@@ -16,11 +16,6 @@ #ifdef CONFIG_ISA_ARCOMPACT struct pt_regs { -#ifdef CONFIG_ARC_PLAT_EZNPS - unsigned long eflags; /* Extended FLAGS */ - unsigned long gpa1; /* General Purpose Aux */ -#endif - /* Real registers */ unsigned long bta; /* bta_l1, bta_l2, erbta */
arch/arc/include/asm/setup.h +0 -4
@@ -9,11 +9,7 @@#include <linux/types.h> #include <uapi/asm/setup.h> -#ifdef CONFIG_ARC_PLAT_EZNPS -#define COMMAND_LINE_SIZE 2048 -#else #define COMMAND_LINE_SIZE 256 -#endif /* * Data structure to map a ID to string
arch/arc/include/asm/spinlock.h +0 -6
@@ -232,15 +232,9 @@ static inline void arch_spin_lock(arch_spinlock_t *lock) __asm__ __volatile__("1: ex %0, [%1] \n" -#ifdef CONFIG_EZNPS_MTM_EXT - " .word %3 \n" -#endif" breq %0, %2, 1b \n" :"+&r" (val) :"r" (&(lock->slock)),"ir" (__ARCH_SPIN_LOCK_LOCKED__) -#ifdef CONFIG_EZNPS_MTM_EXT - , "i"(CTOP_INST_SCHD_RW) -#endif :"memory" );smp_mb ();
arch/arc/include/asm/switch_to.h +0 -9
@@ -12,19 +12,10 @@#include <asm/dsp-impl.h> #include <asm/fpu.h> -#ifdef CONFIG_ARC_PLAT_EZNPS -extern void dp_save_restore (struct task_struct *p,struct task_struct *n); -#define ARC_EZNPS_DP_PREV (p, n) dp_save_restore(p, n) -#else -#define ARC_EZNPS_DP_PREV (p, n) - -#endif /* !CONFIG_ARC_PLAT_EZNPS */ -struct task_struct *__switch_to (struct task_struct *p,struct task_struct *n);#define switch_to (prev, next, last) \ do { \ - ARC_EZNPS_DP_PREV(prev, next); \ dsp_save_restore(prev, next); \ fpu_save_restore(prev, next); \ last = __switch_to(prev, next);\
arch/arc/kernel/ctx_sw.c +0 -13
@@ -14,9 +14,6 @@#include <asm/asm-offsets.h> #include <linux/sched.h> #include <linux/sched/debug.h> -#ifdef CONFIG_ARC_PLAT_EZNPS -#include <plat/ctop.h> -#endif #define KSP_WORD_OFF ((TASK_THREAD + THREAD_KSP) / 4)
@@ -67,17 +64,10 @@ __switch_to(struct task_struct *prev_task, struct task_struct *next_task)*/ #ifndef CONFIG_SMP "st %2, [@_current_task] \n\t" -#else -#ifdef CONFIG_ARC_PLAT_EZNPS -"lr r24, [%4] \n\t" -#ifndef CONFIG_EZNPS_MTM_EXT - "lsr r24, r24, 4 \n\t" -#endif #else"lr r24, [identity] \n\t" "lsr r24, r24, 8 \n\t" "bmsk r24, r24, 7 \n\t" -#endif "add2 r24, @_current_task, r24 \n\t" "st %2, [r24] \n\t"#endif
@@ -115,9 +105,6 @@ __switch_to(struct task_struct *prev_task, struct task_struct *next_task) : "=r"(tmp) : "n"(KSP_WORD_OFF), "r"(next), "r"(prev) -#ifdef CONFIG_ARC_PLAT_EZNPS - , "i"(CTOP_AUX_LOGIC_GLOBAL_ID) -#endif : "blink" );
arch/arc/kernel/process.c +0 -15
@@ -116,17 +116,6 @@ void arch_cpu_idle(void) :"I"(arg)); /* can't be "r" has to be embedded const */ } -#elif defined(CONFIG_EZNPS_MTM_EXT)/* ARC700 variant in NPS */ - -void arch_cpu_idle (void ) -{ -/* only the calling HW thread needs to sleep */ - __asm__ __volatile__( -".word %0 \n" - : - :"i" (CTOP_INST_HWSCHD_WFT_IE12 )); -} -#else /* ARC700 */ void arch_cpu_idle (void )
@@ -278,10 +267,6 @@ void start_thread(struct pt_regs *regs, unsigned long pc, unsigned long usp)*/ regs->status32 =STATUS_U_MASK |STATUS_L_MASK |ISA_INIT_STATUS_BITS ; -#ifdef CONFIG_EZNPS_MTM_EXT - regs->eflags =0 ; -#endif -fpu_init_task (regs);/* bogus seed values for debugging */
arch/arc/mm/tlbex.S +0 -7
@@ -281,13 +281,6 @@ ex_saved_reg1: .macro COMMIT_ENTRY_TO_MMU #if (CONFIG_ARC_MMU_VER < 4) -#ifdef CONFIG_EZNPS_MTM_EXT - /* verify if entry for this vaddr+ASID already exists */ - sr TLBProbe, [ARC_REG_TLBCOMMAND] - lr r0, [ARC_REG_TLBINDEX] - bbit0 r0, 31, 88f -#endif - /* Get free TLB slot: Set = computed from vaddr, way = random */ sr TLBGetIndex, [ARC_REG_TLBCOMMAND]
arch/arc/plat-eznps/Kconfig deleted +0 -58
58 lines not on this page · raw message
arch/arc/plat-eznps/Makefile deleted +0 -8
@@ -1,8 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-only -# -# Makefile for the linux kernel. -# - -obj-y := entry.o platform.o ctop.o -obj-$(CONFIG_SMP) += smp.o -obj-$(CONFIG_EZNPS_MTM_EXT) += mtm.o
arch/arc/plat-eznps/ctop.c deleted +0 -21
@@ -1,21 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-only -/* -* Copyright(c) 2015 EZchip Technologies. -*/ - -#include <linux/sched.h> -#include <asm/processor.h> -#include <plat/ctop.h> - -void dp_save_restore (struct task_struct *prev,struct task_struct *next) -{ -struct eznps_dp *prev_task_dp = &prev->thread.dp; -struct eznps_dp *next_task_dp = &next->thread.dp; - -/* Here we save all Data Plane related auxiliary registers */ - prev_task_dp->eflags =read_aux_reg (CTOP_AUX_EFLAGS ); -write_aux_reg (CTOP_AUX_EFLAGS , next_task_dp->eflags); - - prev_task_dp->gpa1 =read_aux_reg (CTOP_AUX_GPA1 ); -write_aux_reg (CTOP_AUX_GPA1 , next_task_dp->gpa1); -}
arch/arc/plat-eznps/entry.S deleted +0 -60
60 lines not on this page · raw message
arch/arc/plat-eznps/include/plat/ctop.h deleted +0 -208
208 lines not on this page · raw message
arch/arc/plat-eznps/include/plat/mtm.h deleted +0 -49
49 lines not on this page · raw message
arch/arc/plat-eznps/include/plat/smp.h deleted +0 -15
@@ -1,15 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -/* -* Copyright(c) 2015 EZchip Technologies. -*/ - -#ifndef __PLAT_EZNPS_SMP_H -#define __PLAT_EZNPS_SMP_H - -#ifdef CONFIG_SMP - -extern void res_service (void ); - -#endif /* CONFIG_SMP */ - -#endif
arch/arc/plat-eznps/mtm.c deleted +0 -166
166 lines not on this page · raw message
arch/arc/plat-eznps/platform.c deleted +0 -91
91 lines not on this page · raw message
arch/arc/plat-eznps/smp.c deleted +0 -138
138 lines not on this page · raw message
Signature · 7 lines
2.25.1 _______________________________________________ linux-snps-arc mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-snps-arc
Hi Vineet,
I love your patch! Yet something to improve:
url: https://github.com/0day-ci/linux/commits/Vineet-Gupta/ARC-plat-eznps-Drop-support-for-EZChip-NPS-platform/20200909-121133 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 34d4ddd359dbcdf6c5fb3f85a179243d7a1cb7f8 config: arc-randconfig-r026-20200909 compiler: arc-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc randconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
If you fix the issue, kindly add following tag as appropriate
All errors (new ones prefixed by >>):
Quoted 1 line
Quoted 1 line
arch/arc/Kconfig:100: can't open file "arch/arc/plat-eznps/Kconfig"
make[2]: *** [scripts/kconfig/Makefile:71: oldconfig] Error 1 make[1]: *** [Makefile:606: oldconfig] Error 2
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'oldconfig' not remade because of errors.
--
Quoted 1 line
Quoted 1 line
arch/arc/Kconfig:100: can't open file "arch/arc/plat-eznps/Kconfig"
make[2]: *** [scripts/kconfig/Makefile:71: olddefconfig] Error 1 make[1]: *** [Makefile:606: olddefconfig] Error 2
make: *** [Makefile:185: __sub-make] Error 2
make: Target 'olddefconfig' not remade because of errors.
# https://github.com/0day-ci/linux/commit/80d11f778086417bae2b58423840deaa2e527ce6
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Vineet-Gupta/ARC-plat-eznps-Drop-support-for-EZChip-NPS-platform/20200909-121133 git checkout 80d11f778086417bae2b58423840deaa2e527ce6
vim +100 arch/arc/Kconfig
cfdbc2e16e65c1e Vineet Gupta 2013-01-18 96 072eb693904a52d Christian Ruppert 2013-04-12 97 source "arch/arc/plat-tb10x/Kconfig" 556cc1c5f528dcc Alexey Brodkin 2014-01-27 98 source "arch/arc/plat-axs10x/Kconfig" cfdbc2e16e65c1e Vineet Gupta 2013-01-18 99 #New platform adds here 966657890e874d3 Noam Camus 2015-10-16 @100 source "arch/arc/plat-eznps/Kconfig" a518d63777a4e94 Alexey Brodkin 2017-08-15 101 source "arch/arc/plat-hsdk/Kconfig" 93ad700de2abc11 Vineet Gupta 2013-01-22 102
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org