Add support for the interAptiv cores
cover Add support for the interAptiv cores
Hi,
This patchset adds support for the interAptiv cores.
The interAptiv is a power-efficient multi-core microprocessor for use in system-on-chip (SoC) applications. The interAptiv combines a multi-threading pipeline with a coherence manager to deliver improved computational throughput and power efficiency. The interAptiv can contain one to four MIPS32R3 interAptiv cores, system level coherence manager with L2 cache, optional coherent I/O port, and optional floating point unit.
http://www.imgtec.com/mips/mips-interaptiv.asp
This patchset depends on the proAptiv patchset
http://www.linux-mips.org/archives/linux-mips/2013-11/msg00086.html
Leonid Yegoshin (3):
MIPS: Add processor identifiers for the interAptiv processors
MIPS: Add support for interAptiv cores
MIPS: kernel: cpu-probe: Add support for probing interAptiv cores
arch/mips/include/asm/cpu-type.h | 1 + arch/mips/include/asm/cpu.h | 4 +++- arch/mips/kernel/cpu-probe.c | 8 ++++++++ arch/mips/kernel/idle.c | 1 + arch/mips/kernel/spram.c | 1 + arch/mips/kernel/traps.c | 1 + arch/mips/mm/c-r4k.c | 1 + arch/mips/oprofile/common.c | 1 + arch/mips/oprofile/op_model_mipsxx.c | 4 ++++ 9 files changed, 21 insertions(+), 1 deletion(-)
Signature · 1 line
1.8.4.3
PATCH 1/3 MIPS: Add processor identifiers for the interAptiv processors
From: Leonid Yegoshin <[email protected]>
Add processor identifiers for UP and MT interAptiv processors.
--- arch/mips/include/asm/cpu.h | 2 ++ 1 file changed, 2 insertions(+)
arch/mips/include/asm/cpu.h +2 -0
@@ -111,6 +111,8 @@#define PRID_IMP_1074K 0x9a00#define PRID_IMP_M14KC 0x9c00#define PRID_IMP_M14KEC 0x9e00 +#define PRID_IMP_INTERAPTIV_UP 0xa000 +#define PRID_IMP_INTERAPTIV_MP 0xa100#define PRID_IMP_PROAPTIV_UP 0xa200#define PRID_IMP_PROAPTIV_MP 0xa300
Signature · 1 line
1.8.4.3
PATCH 2/3 MIPS: Add support for interAptiv cores
In reply to Markos ChandrasFrom: Leonid Yegoshin <[email protected]>
The interAptiv is a power-efficient multi-core microprocessor for use in system-on-chip (SoC) applications. The interAptiv combines a multi-threading pipeline with a coherence manager to deliver improved computational throughput and power efficiency. The interAptiv can contain one to four MIPS32R3 interAptiv cores, system level coherence manager with L2 cache, optional coherent I/O port, and optional floating point unit.
--- arch/mips/include/asm/cpu-type.h | 1 + arch/mips/include/asm/cpu.h | 2 +- arch/mips/kernel/idle.c | 1 + arch/mips/kernel/spram.c | 1 + arch/mips/kernel/traps.c | 1 + arch/mips/mm/c-r4k.c | 1 + arch/mips/oprofile/common.c | 1 + arch/mips/oprofile/op_model_mipsxx.c | 4 ++++ 8 files changed, 11 insertions(+), 1 deletion(-)
arch/mips/include/asm/cpu-type.h +1 -0
@@ -47,6 +47,7 @@ static inline int __pure __get_cpu_type(const int cpu_type)case CPU_74K :case CPU_M14KC :case CPU_M14KEC : +case CPU_INTERAPTIV :case CPU_PROAPTIV :#endif
arch/mips/include/asm/cpu.h +1 -1
@@ -293,7 +293,7 @@ enum cpu_type_enum {CPU_4KC ,CPU_4KEC ,CPU_4KSC ,CPU_24K ,CPU_34K ,CPU_1004K ,CPU_74K ,CPU_ALCHEMY ,CPU_PR4450 ,CPU_BMIPS32 ,CPU_BMIPS3300 ,CPU_BMIPS4350 ,CPU_BMIPS4380 ,CPU_BMIPS5000 ,CPU_JZRISC ,CPU_LOONGSON1 ,CPU_M14KC , -CPU_M14KEC ,CPU_PROAPTIV , +CPU_M14KEC ,CPU_INTERAPTIV ,CPU_PROAPTIV ,/* * MIPS64 class processors
arch/mips/kernel/idle.c +1 -0
@@ -184,6 +184,7 @@ void __init check_wait(void)case CPU_24K :case CPU_34K :case CPU_1004K : +case CPU_INTERAPTIV :case CPU_PROAPTIV : cpu_wait = r4k_wait;if (read_c0_config7 () &MIPS_CONF7_WII )
arch/mips/kernel/spram.c +1 -0
@@ -206,6 +206,7 @@ void spram_config(void)case CPU_34K :case CPU_74K :case CPU_1004K : +case CPU_INTERAPTIV :case CPU_PROAPTIV : config0 =read_c0_config ();/* FIXME: addresses are Malta specific */
arch/mips/kernel/traps.c +1 -0
@@ -1337,6 +1337,7 @@ static inline void parity_protection_init(void)case CPU_34K :case CPU_74K :case CPU_1004K : +case CPU_INTERAPTIV :case CPU_PROAPTIV : {#define ERRCTL_PE 0x80000000
arch/mips/mm/c-r4k.c +1 -0
@@ -1098,6 +1098,7 @@ static void probe_pcache(void)case CPU_34K :case CPU_74K :case CPU_1004K : +case CPU_INTERAPTIV :case CPU_PROAPTIV :if (current_cpu_type () ==CPU_74K )alias_74k_erratum (c);
arch/mips/oprofile/common.c +1 -0
@@ -86,6 +86,7 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)case CPU_34K :case CPU_1004K :case CPU_74K : +case CPU_INTERAPTIV :case CPU_PROAPTIV :case CPU_LOONGSON1 :case CPU_SB1 :
arch/mips/oprofile/op_model_mipsxx.c +4 -0
@@ -376,6 +376,10 @@ static int __init mipsxx_init(void) op_model_mipsxx_ops.cpu_type ="mips/74K" ;break ; +case CPU_INTERAPTIV : + op_model_mipsxx_ops.cpu_type ="mips/interAptiv" ; +break ; +case CPU_PROAPTIV : op_model_mipsxx_ops.cpu_type ="mips/proAptiv" ;break ;
Signature · 1 line
1.8.4.3
PATCH 3/3 MIPS: kernel: cpu-probe: Add support for probing interAptiv cores
In reply to Markos ChandrasFrom: Leonid Yegoshin <[email protected]>
--- arch/mips/kernel/cpu-probe.c | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/mips/kernel/cpu-probe.c +8 -0
@@ -809,6 +809,14 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c, unsigned int cpu) c->cputype =CPU_74K ; __cpu_name[cpu] ="MIPS 1074Kc" ;break ; +case PRID_IMP_INTERAPTIV_UP : + c->cputype =CPU_INTERAPTIV ; + __cpu_name[cpu] ="MIPS interAptiv" ; +break ; +case PRID_IMP_INTERAPTIV_MP : + c->cputype =CPU_INTERAPTIV ; + __cpu_name[cpu] ="MIPS interAptiv (multi)" ; +break ;case PRID_IMP_PROAPTIV_UP : c->cputype =CPU_PROAPTIV ; __cpu_name[cpu] ="MIPS proAptiv" ;
Signature · 1 line
1.8.4.3
PATCH v2 2/3 MIPS: Add support for interAptiv cores
In reply to Markos ChandrasFrom: Leonid Yegoshin <[email protected]>
The interAptiv is a power-efficient multi-core microprocessor for use in system-on-chip (SoC) applications. The interAptiv combines a multi-threading pipeline with a coherence manager to deliver improved computational throughput and power efficiency. The interAptiv can contain one to four MIPS32R3 interAptiv cores, system level coherence manager with L2 cache, optional coherent I/O port, and optional floating point unit.
---
Changes since v1:
- Add missing CPU_INTERAPTIV case in arch/mips/kernel/sc-mips.c
--- arch/mips/include/asm/cpu-type.h | 1 + arch/mips/include/asm/cpu.h | 2 +- arch/mips/kernel/idle.c | 1 + arch/mips/kernel/spram.c | 1 + arch/mips/kernel/traps.c | 1 + arch/mips/mm/c-r4k.c | 1 + arch/mips/mm/sc-mips.c | 1 + arch/mips/oprofile/common.c | 1 + arch/mips/oprofile/op_model_mipsxx.c | 4 ++++ 9 files changed, 12 insertions(+), 1 deletion(-)
arch/mips/include/asm/cpu-type.h +1 -0
@@ -47,6 +47,7 @@ static inline int __pure __get_cpu_type(const int cpu_type)case CPU_74K :case CPU_M14KC :case CPU_M14KEC : +case CPU_INTERAPTIV :case CPU_PROAPTIV :#endif
arch/mips/include/asm/cpu.h +1 -1
@@ -293,7 +293,7 @@ enum cpu_type_enum {CPU_4KC ,CPU_4KEC ,CPU_4KSC ,CPU_24K ,CPU_34K ,CPU_1004K ,CPU_74K ,CPU_ALCHEMY ,CPU_PR4450 ,CPU_BMIPS32 ,CPU_BMIPS3300 ,CPU_BMIPS4350 ,CPU_BMIPS4380 ,CPU_BMIPS5000 ,CPU_JZRISC ,CPU_LOONGSON1 ,CPU_M14KC , -CPU_M14KEC ,CPU_PROAPTIV , +CPU_M14KEC ,CPU_INTERAPTIV ,CPU_PROAPTIV ,/* * MIPS64 class processors
arch/mips/kernel/idle.c +1 -0
@@ -184,6 +184,7 @@ void __init check_wait(void)case CPU_24K :case CPU_34K :case CPU_1004K : +case CPU_INTERAPTIV :case CPU_PROAPTIV : cpu_wait = r4k_wait;if (read_c0_config7 () &MIPS_CONF7_WII )
arch/mips/kernel/spram.c +1 -0
@@ -206,6 +206,7 @@ void spram_config(void)case CPU_34K :case CPU_74K :case CPU_1004K : +case CPU_INTERAPTIV :case CPU_PROAPTIV : config0 =read_c0_config ();/* FIXME: addresses are Malta specific */
arch/mips/kernel/traps.c +1 -0
@@ -1337,6 +1337,7 @@ static inline void parity_protection_init(void)case CPU_34K :case CPU_74K :case CPU_1004K : +case CPU_INTERAPTIV :case CPU_PROAPTIV : {#define ERRCTL_PE 0x80000000
arch/mips/mm/c-r4k.c +1 -0
@@ -1098,6 +1098,7 @@ static void probe_pcache(void)case CPU_34K :case CPU_74K :case CPU_1004K : +case CPU_INTERAPTIV :case CPU_PROAPTIV :if (current_cpu_type () ==CPU_74K )alias_74k_erratum (c);
arch/mips/mm/sc-mips.c +1 -0
@@ -76,6 +76,7 @@ static inline int mips_sc_is_activated(struct cpuinfo_mips *c)case CPU_34K :case CPU_74K :case CPU_1004K : +case CPU_INTERAPTIV :case CPU_PROAPTIV :case CPU_BMIPS5000 :if (config2 & (1 <<12 ))
arch/mips/oprofile/common.c +1 -0
@@ -86,6 +86,7 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)case CPU_34K :case CPU_1004K :case CPU_74K : +case CPU_INTERAPTIV :case CPU_PROAPTIV :case CPU_LOONGSON1 :case CPU_SB1 :
arch/mips/oprofile/op_model_mipsxx.c +4 -0
@@ -376,6 +376,10 @@ static int __init mipsxx_init(void) op_model_mipsxx_ops.cpu_type ="mips/74K" ;break ; +case CPU_INTERAPTIV : + op_model_mipsxx_ops.cpu_type ="mips/interAptiv" ; +break ; +case CPU_PROAPTIV : op_model_mipsxx_ops.cpu_type ="mips/proAptiv" ;break ;
Signature · 1 line
1.8.4.4