MIPS: Remove unused R4300 CPU support
PATCH 1/4 MIPS: Remove unused R4300 CPU support
Our R4300 CPU support can only be included if a system selects CONFIG_SYS_HAS_CPU_R4300. No system does, making all R4300-related CPU support dead code. Remove it.
---
arch/mips/Kconfig | 12 ------------ arch/mips/Makefile | 1 - arch/mips/include/asm/cpu-type.h | 5 ----- arch/mips/include/asm/cpu.h | 2 +- arch/mips/include/asm/module.h | 2 -- arch/mips/kernel/cpu-probe.c | 9 --------- arch/mips/kernel/idle.c | 1 - arch/mips/mm/c-r4k.c | 1 - arch/mips/mm/tlbex.c | 1 - 9 files changed, 1 insertion(+), 33 deletions(-)
arch/mips/Kconfig +0 -12
@@ -1599,15 +1599,6 @@ config CPU_VR41XX kernel built with this option will not run on any other type of processor or vice versa. -config CPU_R4300 - bool "R4300" - depends on SYS_HAS_CPU_R4300 - select CPU_SUPPORTS_32BIT_KERNEL - select CPU_SUPPORTS_64BIT_KERNEL - select CPU_HAS_LOAD_STORE_LR - help - MIPS Technologies R4300-series processors. - config CPU_R4X00 bool "R4x00" depends on SYS_HAS_CPU_R4X00
@@ -1969,9 +1960,6 @@ config SYS_HAS_CPU_TX39XX config SYS_HAS_CPU_VR41XX bool -config SYS_HAS_CPU_R4300 - bool - config SYS_HAS_CPU_R4X00 bool
arch/mips/Makefile +0 -1
@@ -163,7 +163,6 @@ cflags-y += -fno-stack-check # cflags-$(CONFIG_CPU_R3000) += -march=r3000 cflags-$(CONFIG_CPU_TX39XX) += -march=r3900 -cflags-$(CONFIG_CPU_R4300) += -march=r4300 -Wa,--trap cflags-$(CONFIG_CPU_VR41XX) += -march=r4100 -Wa,--trap cflags-$(CONFIG_CPU_R4X00) += -march=r4600 -Wa,--trap cflags-$(CONFIG_CPU_TX49XX) += -march=r4600 -Wa,--trap
arch/mips/include/asm/cpu-type.h +0 -5
@@ -116,11 +116,6 @@ static inline int __pure __get_cpu_type(const int cpu_type)case CPU_VR4181A :#endif -#ifdef CONFIG_SYS_HAS_CPU_R4300 -case CPU_R4300 : -case CPU_R4310 : -#endif -#ifdef CONFIG_SYS_HAS_CPU_R4X00 case CPU_R4000PC :case CPU_R4000SC :
arch/mips/include/asm/cpu.h +1 -1
@@ -293,7 +293,7 @@ enum cpu_type_enum {/* * R4000 class processors */ -CPU_R4000PC ,CPU_R4000SC ,CPU_R4000MC ,CPU_R4200 ,CPU_R4300 ,CPU_R4310 , +CPU_R4000PC ,CPU_R4000SC ,CPU_R4000MC ,CPU_R4200 ,CPU_R4400PC ,CPU_R4400SC ,CPU_R4400MC ,CPU_R4600 ,CPU_R4640 ,CPU_R4650 ,CPU_R4700 ,CPU_R5000 ,CPU_R5500 ,CPU_NEVADA ,CPU_R5432 ,CPU_R10000 , CPU_R12000, CPU_R14000, CPU_R16000, CPU_VR41XX, CPU_VR4111, CPU_VR4121,
arch/mips/include/asm/module.h +0 -2
@@ -103,8 +103,6 @@ search_module_dbetables(unsigned long addr)#define MODULE_PROC_FAMILY "TX39XX "#elif definedCONFIG_CPU_VR41XX #define MODULE_PROC_FAMILY "VR41XX " -#elif definedCONFIG_CPU_R4300 -#define MODULE_PROC_FAMILY "R4300 "#elif definedCONFIG_CPU_R4X00 #define MODULE_PROC_FAMILY "R4X00 "#elif definedCONFIG_CPU_TX49XX
arch/mips/kernel/cpu-probe.c +0 -9
@@ -1384,15 +1384,6 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c, unsigned int cpu)break ; }break ; -case PRID_IMP_R4300 : - c->cputype =CPU_R4300 ; - __cpu_name[cpu] ="R4300" ; -set_isa (c,MIPS_CPU_ISA_III ); - c->fpu_msk31 |=FPU_CSR_CONDX ; - c->options =R4K_OPTS |MIPS_CPU_FPU |MIPS_CPU_32FPR | -MIPS_CPU_LLSC ; - c->tlbsize =32 ; -break ;case PRID_IMP_R4600 : c->cputype =CPU_R4600 ; __cpu_name[cpu] ="R4600" ;
arch/mips/kernel/idle.c +0 -1
@@ -151,7 +151,6 @@ void __init check_wait(void) cpu_wait = r39xx_wait;break ;case CPU_R4200 : -/* case CPU_R4300: */ case CPU_R4600 :case CPU_R4640 :case CPU_R4650 :
arch/mips/mm/c-r4k.c +0 -1
@@ -1134,7 +1134,6 @@ static void probe_pcache(void)case CPU_R4400PC :case CPU_R4400SC :case CPU_R4400MC : -case CPU_R4300 : icache_size =1 << (12 + ((config &CONF_IC ) >>9 )); c->icache.linesz =16 << ((config &CONF_IB ) >>5 ); c->icache.ways =1 ;
arch/mips/mm/tlbex.c +0 -1
@@ -545,7 +545,6 @@ void build_tlb_write_entry(u32 **p, struct uasm_label **l,tlbw (p);break ; -case CPU_R4300 :case CPU_5KC :case CPU_TX49XX :case CPU_PR4450 :
Signature · 1 line
2.22.0
PATCH 2/4 MIPS: Remove unused R5432 CPU support
Our R5432 CPU support can only be included if a system selects CONFIG_SYS_HAS_CPU_R5432. No system does, making all R5432-related CPU support dead code. Remove it.
---
arch/mips/Kconfig | 11 ----------- arch/mips/Makefile | 2 -- arch/mips/include/asm/cpu-type.h | 4 ---- arch/mips/include/asm/cpu.h | 2 +- arch/mips/include/asm/module.h | 2 -- arch/mips/kernel/cpu-probe.c | 8 -------- arch/mips/mm/c-r4k.c | 1 - arch/mips/mm/tlbex.c | 1 - 8 files changed, 1 insertion(+), 30 deletions(-)
arch/mips/Kconfig +0 -11
@@ -1629,14 +1629,6 @@ config CPU_R5000 help MIPS Technologies R5000-series processors other than the Nevada. -config CPU_R5432 - bool "R5432" - depends on SYS_HAS_CPU_R5432 - select CPU_SUPPORTS_32BIT_KERNEL - select CPU_SUPPORTS_64BIT_KERNEL - select CPU_SUPPORTS_HUGEPAGES - select CPU_HAS_LOAD_STORE_LR - config CPU_R5500 bool "R5500" depends on SYS_HAS_CPU_R5500
@@ -1969,9 +1961,6 @@ config SYS_HAS_CPU_TX49XX config SYS_HAS_CPU_R5000 bool -config SYS_HAS_CPU_R5432 - bool - config SYS_HAS_CPU_R5500 bool
arch/mips/Makefile +0 -2
@@ -173,8 +173,6 @@ cflags-$(CONFIG_CPU_MIPS64_R1) += -march=mips64 -Wa,--trap cflags-$(CONFIG_CPU_MIPS64_R2) += -march=mips64r2 -Wa,--trap cflags-$(CONFIG_CPU_MIPS64_R6) += -march=mips64r6 -Wa,--trap cflags-$(CONFIG_CPU_R5000) += -march=r5000 -Wa,--trap -cflags-$(CONFIG_CPU_R5432) += $(call cc-option,-march=r5400,-march=r5000) \ - -Wa,--trap cflags-$(CONFIG_CPU_R5500) += $(call cc-option,-march=r5500,-march=r5000) \ -Wa,--trap cflags-$(CONFIG_CPU_NEVADA) += $(call cc-option,-march=rm5200,-march=r5000) \
arch/mips/include/asm/cpu-type.h +0 -4
@@ -138,10 +138,6 @@ static inline int __pure __get_cpu_type(const int cpu_type)case CPU_R5000 :#endif -#ifdef CONFIG_SYS_HAS_CPU_R5432 -case CPU_R5432 : -#endif -#ifdef CONFIG_SYS_HAS_CPU_R5500 case CPU_R5500 :#endif
arch/mips/include/asm/cpu.h +1 -1
@@ -295,7 +295,7 @@ enum cpu_type_enum {*/ CPU_R4000PC ,CPU_R4000SC ,CPU_R4000MC ,CPU_R4200 ,CPU_R4400PC ,CPU_R4400SC ,CPU_R4400MC ,CPU_R4600 ,CPU_R4640 ,CPU_R4650 , -CPU_R4700 ,CPU_R5000 ,CPU_R5500 ,CPU_NEVADA ,CPU_R5432 ,CPU_R10000 , +CPU_R4700 ,CPU_R5000 ,CPU_R5500 ,CPU_NEVADA ,CPU_R10000 ,CPU_R12000 ,CPU_R14000 ,CPU_R16000 ,CPU_VR41XX ,CPU_VR4111 ,CPU_VR4121 ,CPU_VR4122 ,CPU_VR4131 ,CPU_VR4133 ,CPU_VR4181 ,CPU_VR4181A ,CPU_RM7000 , CPU_SR71000, CPU_TX49XX,
arch/mips/include/asm/module.h +0 -2
@@ -109,8 +109,6 @@ search_module_dbetables(unsigned long addr)#define MODULE_PROC_FAMILY "TX49XX "#elif definedCONFIG_CPU_R5000 #define MODULE_PROC_FAMILY "R5000 " -#elif definedCONFIG_CPU_R5432 -#define MODULE_PROC_FAMILY "R5432 "#elif definedCONFIG_CPU_R5500 #define MODULE_PROC_FAMILY "R5500 "#elif definedCONFIG_CPU_NEVADA
arch/mips/kernel/cpu-probe.c +0 -8
@@ -1459,14 +1459,6 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c, unsigned int cpu)MIPS_CPU_LLSC ; c->tlbsize =48 ;break ; -case PRID_IMP_R5432 : - c->cputype =CPU_R5432 ; - __cpu_name[cpu] ="R5432" ; -set_isa (c,MIPS_CPU_ISA_IV ); - c->options =R4K_OPTS |MIPS_CPU_FPU |MIPS_CPU_32FPR | -MIPS_CPU_WATCH |MIPS_CPU_LLSC ; - c->tlbsize =48 ; -break ;case PRID_IMP_R5500 : c->cputype =CPU_R5500 ; __cpu_name[cpu] ="R5500" ;
arch/mips/mm/c-r4k.c +0 -1
@@ -1098,7 +1098,6 @@ static void probe_pcache(void) c->options |=MIPS_CPU_CACHE_CDEX_P ;break ; -case CPU_R5432 :case CPU_R5500 : icache_size =1 << (12 + ((config &CONF_IC ) >>9 )); c->icache.linesz =16 << ((config &CONF_IB ) >>5 );
arch/mips/mm/tlbex.c +0 -1
@@ -603,7 +603,6 @@ void build_tlb_write_entry(u32 **p, struct uasm_label **l,case CPU_VR4131 :case CPU_VR4133 : -case CPU_R5432 :uasm_i_nop (p);uasm_i_nop (p);tlbw (p);
Signature · 1 line
2.22.0
PATCH 3/4 MIPS: Remove unused R5432_CP0_INTERRUPT_WAR
In reply to Paul BurtonR5432_CP0_INTERRUPT_WAR is defined as 0 for every system we support, and so the workaround is never used. Remove the dead code.
---
arch/mips/include/asm/mach-cavium-octeon/war.h | 1 - arch/mips/include/asm/mach-generic/war.h | 1 - arch/mips/include/asm/mach-ip22/war.h | 1 - arch/mips/include/asm/mach-ip27/war.h | 1 - arch/mips/include/asm/mach-ip28/war.h | 1 - arch/mips/include/asm/mach-ip32/war.h | 1 - arch/mips/include/asm/mach-malta/war.h | 1 - arch/mips/include/asm/mach-pmcs-msp71xx/war.h | 1 - arch/mips/include/asm/mach-rc32434/war.h | 1 - arch/mips/include/asm/mach-rm/war.h | 1 - arch/mips/include/asm/mach-sibyte/war.h | 1 - arch/mips/include/asm/mach-tx49xx/war.h | 1 - arch/mips/include/asm/war.h | 13 ------------- arch/mips/kernel/genex.S | 3 --- 14 files changed, 28 deletions(-)
arch/mips/include/asm/mach-cavium-octeon/war.h +0 -1
@@ -12,7 +12,6 @@#define R4600_V1_INDEX_ICACHEOP_WAR 0#define R4600_V1_HIT_CACHEOP_WAR 0#define R4600_V2_HIT_CACHEOP_WAR 0 -#define R5432_CP0_INTERRUPT_WAR 0#define BCM1250_M3_WAR 0#define SIBYTE_1956_WAR 0#define MIPS4K_ICACHE_REFILL_WAR 0
arch/mips/include/asm/mach-generic/war.h +0 -1
@@ -11,7 +11,6 @@#define R4600_V1_INDEX_ICACHEOP_WAR 0#define R4600_V1_HIT_CACHEOP_WAR 0#define R4600_V2_HIT_CACHEOP_WAR 0 -#define R5432_CP0_INTERRUPT_WAR 0#define BCM1250_M3_WAR 0#define SIBYTE_1956_WAR 0#define MIPS4K_ICACHE_REFILL_WAR 0
arch/mips/include/asm/mach-ip22/war.h +0 -1
@@ -15,7 +15,6 @@#define R4600_V1_INDEX_ICACHEOP_WAR 1#define R4600_V1_HIT_CACHEOP_WAR 1#define R4600_V2_HIT_CACHEOP_WAR 1 -#define R5432_CP0_INTERRUPT_WAR 0#define BCM1250_M3_WAR 0#define SIBYTE_1956_WAR 0#define MIPS4K_ICACHE_REFILL_WAR 0
arch/mips/include/asm/mach-ip27/war.h +0 -1
@@ -11,7 +11,6 @@#define R4600_V1_INDEX_ICACHEOP_WAR 0#define R4600_V1_HIT_CACHEOP_WAR 0#define R4600_V2_HIT_CACHEOP_WAR 0 -#define R5432_CP0_INTERRUPT_WAR 0#define BCM1250_M3_WAR 0#define SIBYTE_1956_WAR 0#define MIPS4K_ICACHE_REFILL_WAR 0
arch/mips/include/asm/mach-ip28/war.h +0 -1
@@ -11,7 +11,6 @@#define R4600_V1_INDEX_ICACHEOP_WAR 0#define R4600_V1_HIT_CACHEOP_WAR 0#define R4600_V2_HIT_CACHEOP_WAR 0 -#define R5432_CP0_INTERRUPT_WAR 0#define BCM1250_M3_WAR 0#define SIBYTE_1956_WAR 0#define MIPS4K_ICACHE_REFILL_WAR 0
arch/mips/include/asm/mach-ip32/war.h +0 -1
@@ -11,7 +11,6 @@#define R4600_V1_INDEX_ICACHEOP_WAR 0#define R4600_V1_HIT_CACHEOP_WAR 0#define R4600_V2_HIT_CACHEOP_WAR 0 -#define R5432_CP0_INTERRUPT_WAR 0#define BCM1250_M3_WAR 0#define SIBYTE_1956_WAR 0#define MIPS4K_ICACHE_REFILL_WAR 0
arch/mips/include/asm/mach-malta/war.h +0 -1
@@ -11,7 +11,6 @@#define R4600_V1_INDEX_ICACHEOP_WAR 0#define R4600_V1_HIT_CACHEOP_WAR 0#define R4600_V2_HIT_CACHEOP_WAR 0 -#define R5432_CP0_INTERRUPT_WAR 0#define BCM1250_M3_WAR 0#define SIBYTE_1956_WAR 0#define MIPS4K_ICACHE_REFILL_WAR 1
arch/mips/include/asm/mach-pmcs-msp71xx/war.h +0 -1
@@ -11,7 +11,6 @@#define R4600_V1_INDEX_ICACHEOP_WAR 0#define R4600_V1_HIT_CACHEOP_WAR 0#define R4600_V2_HIT_CACHEOP_WAR 0 -#define R5432_CP0_INTERRUPT_WAR 0#define BCM1250_M3_WAR 0#define SIBYTE_1956_WAR 0#define MIPS4K_ICACHE_REFILL_WAR 0
arch/mips/include/asm/mach-rc32434/war.h +0 -1
@@ -11,7 +11,6 @@#define R4600_V1_INDEX_ICACHEOP_WAR 0#define R4600_V1_HIT_CACHEOP_WAR 0#define R4600_V2_HIT_CACHEOP_WAR 0 -#define R5432_CP0_INTERRUPT_WAR 0#define BCM1250_M3_WAR 0#define SIBYTE_1956_WAR 0#define MIPS4K_ICACHE_REFILL_WAR 1
arch/mips/include/asm/mach-rm/war.h +0 -1
@@ -15,7 +15,6 @@#define R4600_V1_INDEX_ICACHEOP_WAR 0#define R4600_V1_HIT_CACHEOP_WAR 0#define R4600_V2_HIT_CACHEOP_WAR 1 -#define R5432_CP0_INTERRUPT_WAR 0#define BCM1250_M3_WAR 0#define SIBYTE_1956_WAR 0#define MIPS4K_ICACHE_REFILL_WAR 0
arch/mips/include/asm/mach-sibyte/war.h +0 -1
@@ -11,7 +11,6 @@#define R4600_V1_INDEX_ICACHEOP_WAR 0#define R4600_V1_HIT_CACHEOP_WAR 0#define R4600_V2_HIT_CACHEOP_WAR 0 -#define R5432_CP0_INTERRUPT_WAR 0#if defined(CONFIG_SB1_PASS_2_WORKAROUNDS )
arch/mips/include/asm/mach-tx49xx/war.h +0 -1
@@ -11,7 +11,6 @@#define R4600_V1_INDEX_ICACHEOP_WAR 0#define R4600_V1_HIT_CACHEOP_WAR 0#define R4600_V2_HIT_CACHEOP_WAR 0 -#define R5432_CP0_INTERRUPT_WAR 0#define BCM1250_M3_WAR 0#define SIBYTE_1956_WAR 0#define MIPS4K_ICACHE_REFILL_WAR 0
arch/mips/include/asm/war.h +0 -13
@@ -128,19 +128,6 @@#error Check setting of R4600_V2_HIT_CACHEOP_WAR for your platform#endif -/* -* When an interrupt happens on a CP0 register read instruction, CPU may -* lock up or read corrupted values of CP0 registers after it enters -* the exception handler. -* -* This workaround makes sure that we read a "safe" CP0 register as the -* first thing in the exception handler, which breaks one of the -* pre-conditions for this problem. -*/ -#ifndef R5432_CP0_INTERRUPT_WAR -#error Check setting of R5432_CP0_INTERRUPT_WAR for your platform -#endif -/* * Workaround for the Sibyte M3 errata the text of which can be found at *
arch/mips/kernel/genex.S +0 -3
@@ -32,9 +32,6 @@ NESTED(except_vec3_generic, 0, sp) .set push .set noat -#if R5432_CP0_INTERRUPT_WAR - mfc0 k0, CP0_INDEX -#endif mfc0 k1, CP0_CAUSE andi k1, k1, 0x7c #ifdef CONFIG_64BIT
Signature · 1 line
2.22.0
PATCH 4/4 MIPS: Remove unused R8000 CPU support
In reply to Paul BurtonOur R8000 CPU support can only be included if a system selects CONFIG_SYS_HAS_CPU_R8000. No system does, making all R8000-related CPU support dead code. Remove it.
---
arch/mips/Kconfig | 24 +-- arch/mips/Makefile | 1 - arch/mips/include/asm/addrspace.h | 9 -- arch/mips/include/asm/cpu-type.h | 4 - arch/mips/include/asm/cpu.h | 5 - arch/mips/include/asm/module.h | 2 - arch/mips/kernel/cpu-probe.c | 9 -- arch/mips/mm/Makefile | 1 - arch/mips/mm/tlb-r8k.c | 239 ------------------------------ arch/mips/mm/tlbex.c | 4 - 10 files changed, 5 insertions(+), 293 deletions(-) delete mode 100644 arch/mips/mm/tlb-r8k.c
arch/mips/Kconfig +5 -19
@@ -1650,16 +1650,6 @@ config CPU_NEVADA help QED / PMC-Sierra RM52xx-series ("Nevada") processors. -config CPU_R8000 - bool "R8000" - depends on SYS_HAS_CPU_R8000 - select CPU_HAS_PREFETCH - select CPU_HAS_LOAD_STORE_LR - select CPU_SUPPORTS_64BIT_KERNEL - help - MIPS Technologies R8000 processors. Note these processors are - uncommon and the support for them is incomplete. - config CPU_R10000 bool "R10000" depends on SYS_HAS_CPU_R10000
@@ -1967,9 +1957,6 @@ config SYS_HAS_CPU_R5500 config SYS_HAS_CPU_NEVADA bool -config SYS_HAS_CPU_R8000 - bool - config SYS_HAS_CPU_R10000 bool select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
@@ -2169,13 +2156,13 @@ config PAGE_SIZE_4KB config PAGE_SIZE_8KB bool "8kB" - depends on CPU_R8000 || CPU_CAVIUM_OCTEON + depends on CPU_CAVIUM_OCTEON depends on !MIPS_VA_BITS_48 help Using 8kB page size will result in higher performance kernel at the price of higher memory consumption. This option is available - only on R8000 and cnMIPS processors. Note that you will need a - suitable Linux distribution to support this. + only on cnMIPS processors. Note that you will need a suitable Linux + distribution to support this. config PAGE_SIZE_16KB bool "16kB"
@@ -2266,7 +2253,7 @@ config CPU_HAS_PREFETCH config CPU_GENERIC_DUMP_TLB bool - default y if !(CPU_R3000 || CPU_R8000 || CPU_TX39XX) + default y if !(CPU_R3000 || CPU_TX39XX) config MIPS_FP_SUPPORT bool "Floating Point support" if EXPERT
@@ -2295,7 +2282,7 @@ config CPU_R4K_FPU config CPU_R4K_CACHE_TLB bool - default y if !(CPU_R3000 || CPU_R8000 || CPU_SB1 || CPU_TX39XX || CPU_CAVIUM_OCTEON) + default y if !(CPU_R3000 || CPU_SB1 || CPU_TX39XX || CPU_CAVIUM_OCTEON) config MIPS_MT_SMP bool "MIPS MT SMP support (1 TC on each available VPE)"
@@ -2552,7 +2539,6 @@ config CPU_R4400_WORKAROUNDS config MIPS_ASID_SHIFT int default 6 if CPU_R3000 || CPU_TX39XX - default 4 if CPU_R8000 default 0 config MIPS_ASID_BITS
arch/mips/Makefile +0 -1
@@ -183,7 +183,6 @@ cflags-$(CONFIG_CPU_SB1) += $(call cc-option,-march=sb1,-march=r5000) \ -Wa,--trap cflags-$(CONFIG_CPU_SB1) += $(call cc-option,-mno-mdmx) cflags-$(CONFIG_CPU_SB1) += $(call cc-option,-mno-mips3d) -cflags-$(CONFIG_CPU_R8000) += -march=r8000 -Wa,--trap cflags-$(CONFIG_CPU_R10000) += $(call cc-option,-march=r10000,-march=r8000) \ -Wa,--trap cflags-$(CONFIG_CPU_CAVIUM_OCTEON) += $(call cc-option,-march=octeon) -Wa,--trap
arch/mips/include/asm/addrspace.h +0 -9
@@ -135,18 +135,9 @@*/ #define TO_PHYS_MASK _CONST64_(0x07ffffffffffffff)/* 2^^59 - 1 */ -#ifndef CONFIG_CPU_R8000 - -/* -* The R8000 doesn't have the 32-bit compat spaces so we don't define them -* in order to catch bugs in the source code. -*/ -#define COMPAT_K1BASE32 _CONST64_(0xffffffffa0000000)#define PHYS_TO_COMPATK1 (x) ((x) | COMPAT_K1BASE32)/* 32-bit compat k1 */ -#endif -#define KDM_TO_PHYS (x) (_ACAST64_ (x) & TO_PHYS_MASK)#define PHYS_TO_K0 (x) (_ACAST64_ (x) | CAC_BASE)
arch/mips/include/asm/cpu-type.h +0 -4
@@ -146,10 +146,6 @@ static inline int __pure __get_cpu_type(const int cpu_type)case CPU_NEVADA :#endif -#ifdef CONFIG_SYS_HAS_CPU_R8000 -case CPU_R8000 : -#endif -#ifdef CONFIG_SYS_HAS_CPU_R10000 case CPU_R10000 :case CPU_R12000 :
arch/mips/include/asm/cpu.h +0 -5
@@ -300,11 +300,6 @@ enum cpu_type_enum {CPU_VR4122 ,CPU_VR4131 ,CPU_VR4133 ,CPU_VR4181 ,CPU_VR4181A ,CPU_RM7000 ,CPU_SR71000 ,CPU_TX49XX , -/* -* R8000 class processors -*/ -CPU_R8000 , -/* * TX3900 class processors */
arch/mips/include/asm/module.h +0 -2
@@ -113,8 +113,6 @@ search_module_dbetables(unsigned long addr)#define MODULE_PROC_FAMILY "R5500 "#elif definedCONFIG_CPU_NEVADA #define MODULE_PROC_FAMILY "NEVADA " -#elif definedCONFIG_CPU_R8000 -#define MODULE_PROC_FAMILY "R8000 "#elif definedCONFIG_CPU_R10000 #define MODULE_PROC_FAMILY "R10000 "#elif definedCONFIG_CPU_RM7000
arch/mips/kernel/cpu-probe.c +0 -9
@@ -1491,15 +1491,6 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c, unsigned int cpu)*/ c->tlbsize = (read_c0_info () & (1 <<29 )) ?64 :48 ;break ; -case PRID_IMP_R8000 : - c->cputype =CPU_R8000 ; - __cpu_name[cpu] ="RM8000" ; -set_isa (c,MIPS_CPU_ISA_IV ); - c->options =MIPS_CPU_TLB |MIPS_CPU_4KEX | -MIPS_CPU_FPU |MIPS_CPU_32FPR | -MIPS_CPU_LLSC ; - c->tlbsize =384 ;/* has weird TLB: 3-way x 128 */ -break ;case PRID_IMP_R10000 : c->cputype =CPU_R10000 ; __cpu_name[cpu] ="R10000" ;
arch/mips/mm/Makefile +0 -1
@@ -30,7 +30,6 @@ obj-$(CONFIG_DMA_NONCOHERENT) += dma-noncoherent.o obj-$(CONFIG_CPU_R4K_CACHE_TLB) += c-r4k.o cex-gen.o tlb-r4k.o obj-$(CONFIG_CPU_R3000) += c-r3k.o tlb-r3k.o -obj-$(CONFIG_CPU_R8000) += c-r4k.o cex-gen.o tlb-r8k.o obj-$(CONFIG_CPU_SB1) += c-r4k.o cerr-sb1.o cex-sb1.o tlb-r4k.o obj-$(CONFIG_CPU_TX39XX) += c-tx39.o tlb-r3k.o obj-$(CONFIG_CPU_CAVIUM_OCTEON) += c-octeon.o cex-oct.o tlb-r4k.o
arch/mips/mm/tlb-r8k.c deleted +0 -239
239 lines not on this page · raw message
arch/mips/mm/tlbex.c +0 -4
@@ -2633,10 +2633,6 @@ void build_tlb_refill_handler(void)#endif break ; -case CPU_R8000 : -panic ("No R8000 TLB refill handler yet" ); -break ; -default :if (cpu_has_ldpte)setup_pw ();
Signature · 1 line
2.22.0
Re: [PATCH 4/4] MIPS: Remove unused R8000 CPU support
Quoted 5 lines · Paul Burton
Our R8000 CPU support can only be included if a system selects
CONFIG_SYS_HAS_CPU_R8000. No system does, making all R8000-related CPU support dead code. Remove it.Signed-off-by Paul Burton <[email protected]>
[snip]
I actually have one of these CPUs, and the SGI IP26 system to go with it. Fascinating CPU design. More like a multi-chip set rather than just a single CPU die. That said, no tears are shed over this code getting excised, as it's half-complete, because only the R8K TLB code was written. The cache code (c-r8k.c?) was never completed. I don't even know if the R8K TLB code was ever tested on real hardware. A scanned copy of the CPU manual is on the linux-mips FTP server somewhere, and I think I have a copy somewhere as well, if anyone ever gets interested again.
Signature · 10 lines
Joshua Kinard Gentoo/MIPS [email protected] rsa6144/5C63F4E3F5C6C943 2015-04-27 177C 1972 1FB8 F254 BAD0 3E72 5C63 F4E3 F5C6 C943 "The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between." --Emperor Turhan, Centauri Republic
Re: [PATCH 4/4] MIPS: Remove unused R8000 CPU support
Quoted 8 lines · Joshua Kinard
Quoted 5 lines
Our R8000 CPU support can only be included if a system selects
CONFIG_SYS_HAS_CPU_R8000. No system does, making all R8000-related CPU support dead code. Remove it.Signed-off-by Paul Burton <[email protected]>[snip]
Quoted 8 lines
I actually have one of these CPUs, and the SGI IP26 system to go with it. Fascinating CPU design. More like a multi-chip set rather than just a single CPU die. That said, no tears are shed over this code getting excised, as it's half-complete, because only the R8K TLB code was written. The cache code (
c-r8k.c?) was never completed. I don't even know if the R8K TLB code was ever tested on real hardware. A scanned copy of the CPU manual is on the linux-mips FTP server somewhere, and I think I have a copy somewhere as well, if anyone ever gets interested again.
With all the old-timers I believe gone from the MIPS world I doubt this
is ever going to happen.
Maciej
Hello,
Quoted 5 lines · Paul Burton
Our R4300 CPU support can only be included if a system selects
CONFIG_SYS_HAS_CPU_R4300. No system does, making all R4300-related CPU support dead code. Remove it.Signed-off-by Paul Burton <[email protected]>
Series applied to mips-next.
Thanks,
Paul
[ This message was auto-generated; if you believe anything is incorrect
then please email [email protected] to report it. ]