* [PATCH v2] Add MIPS64R2 core support.
@ 2012-05-11 6:29 Steven J. Hill
2012-05-11 17:25 ` Sergei Shtylyov
0 siblings, 1 reply; 8+ messages in thread
From: Steven J. Hill @ 2012-05-11 6:29 UTC (permalink / raw)
To: linux-mips, ralf; +Cc: Steven J. Hill, Leonid Yegoshin
From: "Steven J. Hill" <sjhill@mips.com>
Signed-off-by: Leonid Yegoshin <yegoshin@mips.com>
Signed-off-by: Steven J. Hill <sjhill@mips.com>
---
arch/mips/Kconfig | 7 +++++++
arch/mips/include/asm/cpu.h | 2 +-
arch/mips/kernel/cpu-probe.c | 4 ++++
arch/mips/kernel/traps.c | 1 +
4 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index d0570f4..862a9c3 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -282,6 +282,7 @@ config MIPS_MALTA
select SYS_HAS_CPU_MIPS32_R1
select SYS_HAS_CPU_MIPS32_R2
select SYS_HAS_CPU_MIPS64_R1
+ select SYS_HAS_CPU_MIPS64_R2
select SYS_HAS_CPU_NEVADA
select SYS_HAS_CPU_RM7000
select SYS_HAS_EARLY_PRINTK
@@ -2488,6 +2489,7 @@ config TRAD_SIGNALS
config MIPS32_COMPAT
bool "Kernel support for Linux/MIPS 32-bit binary compatibility"
depends on 64BIT
+ default y if CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
help
Select this option if you want Linux/MIPS 32-bit binary
compatibility. Since all software available for Linux/MIPS is
@@ -2507,6 +2509,7 @@ config SYSVIPC_COMPAT
config MIPS32_O32
bool "Kernel support for o32 binaries"
depends on MIPS32_COMPAT
+ default y if CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
help
Select this option if you want to run o32 binaries. These are pure
32-bit binaries as used by the 32-bit Linux/MIPS port. Most of
@@ -2525,6 +2528,10 @@ config MIPS32_N32
If unsure, say N.
+comment "64bit kernel, but support of 32bit applications is disabled!"
+ depends on 64BIT && !MIPS32_O32 && !MIPS32_N32
+ depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
+
config BINFMT_ELF32
bool
default y if MIPS32_O32 || MIPS32_N32
diff --git a/arch/mips/include/asm/cpu.h b/arch/mips/include/asm/cpu.h
index 0a619f8..559bd12 100644
--- a/arch/mips/include/asm/cpu.h
+++ b/arch/mips/include/asm/cpu.h
@@ -268,7 +268,7 @@ enum cpu_type_enum {
/*
* MIPS64 class processors
*/
- CPU_5KC, CPU_20KC, CPU_25KF, CPU_SB1, CPU_SB1A, CPU_LOONGSON2,
+ CPU_5KC, CPU_5KE, CPU_20KC, CPU_25KF, CPU_SB1, CPU_SB1A, CPU_LOONGSON2,
CPU_CAVIUM_OCTEON, CPU_CAVIUM_OCTEON_PLUS, CPU_CAVIUM_OCTEON2,
CPU_XLR, CPU_XLP,
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index e5f0b27..fe76d60 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -817,6 +817,10 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c, unsigned int cpu)
c->cputype = CPU_5KC;
__cpu_name[cpu] = "MIPS 5Kc";
break;
+ case PRID_IMP_5KE:
+ c->cputype = CPU_5KE;
+ __cpu_name[cpu] = "MIPS 5KE";
+ break;
case PRID_IMP_20KC:
c->cputype = CPU_20KC;
__cpu_name[cpu] = "MIPS 20Kc";
diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c
index 7bec6f8..a69edbe 100644
--- a/arch/mips/kernel/traps.c
+++ b/arch/mips/kernel/traps.c
@@ -1349,6 +1349,7 @@ static inline void parity_protection_init(void)
break;
case CPU_5KC:
+ case CPU_5KE:
write_c0_ecc(0x80000000);
back_to_back_c0_hazard();
/* Set the PE bit (bit 31) in the c0_errctl register. */
--
1.7.10
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH v2] Add MIPS64R2 core support.
2012-05-11 6:29 [PATCH v2] Add MIPS64R2 core support Steven J. Hill
@ 2012-05-11 17:25 ` Sergei Shtylyov
2012-05-11 17:32 ` Yegoshin, Leonid
0 siblings, 1 reply; 8+ messages in thread
From: Sergei Shtylyov @ 2012-05-11 17:25 UTC (permalink / raw)
To: Steven J. Hill; +Cc: linux-mips, ralf, Leonid Yegoshin
On 05/11/2012 10:29 AM, Steven J. Hill wrote:
> From: "Steven J. Hill"<sjhill@mips.com>
Looks like the subject is incorrect. Should be "Add MIPS 5KE support"?
> Signed-off-by: Leonid Yegoshin<yegoshin@mips.com>
> Signed-off-by: Steven J. Hill<sjhill@mips.com>
[...]
> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
> index d0570f4..862a9c3 100644
> --- a/arch/mips/Kconfig
> +++ b/arch/mips/Kconfig
> @@ -282,6 +282,7 @@ config MIPS_MALTA
> select SYS_HAS_CPU_MIPS32_R1
> select SYS_HAS_CPU_MIPS32_R2
> select SYS_HAS_CPU_MIPS64_R1
> + select SYS_HAS_CPU_MIPS64_R2
> select SYS_HAS_CPU_NEVADA
> select SYS_HAS_CPU_RM7000
> select SYS_HAS_EARLY_PRINTK
> @@ -2488,6 +2489,7 @@ config TRAD_SIGNALS
> config MIPS32_COMPAT
> bool "Kernel support for Linux/MIPS 32-bit binary compatibility"
> depends on 64BIT
> + default y if CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
> help
> Select this option if you want Linux/MIPS 32-bit binary
> compatibility. Since all software available for Linux/MIPS is
> @@ -2507,6 +2509,7 @@ config SYSVIPC_COMPAT
> config MIPS32_O32
> bool "Kernel support for o32 binaries"
> depends on MIPS32_COMPAT
> + default y if CPU_SUPPORTS_32BIT_KERNEL&& SYS_SUPPORTS_32BIT_KERNEL
> help
> Select this option if you want to run o32 binaries. These are pure
> 32-bit binaries as used by the 32-bit Linux/MIPS port. Most of
> @@ -2525,6 +2528,10 @@ config MIPS32_N32
>
> If unsure, say N.
>
> +comment "64bit kernel, but support of 32bit applications is disabled!"
> + depends on 64BIT&& !MIPS32_O32&& !MIPS32_N32
> + depends on CPU_SUPPORTS_32BIT_KERNEL&& SYS_SUPPORTS_32BIT_KERNEL
> +
The above looks like a material for separate patch...
WBR, Sergei
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH v2] Add MIPS64R2 core support.
2012-05-11 17:25 ` Sergei Shtylyov
@ 2012-05-11 17:32 ` Yegoshin, Leonid
2012-05-11 17:37 ` Sergei Shtylyov
0 siblings, 1 reply; 8+ messages in thread
From: Yegoshin, Leonid @ 2012-05-11 17:32 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: Hill, Steven, linux-mips@linux-mips.org, ralf@linux-mips.org
Not exactly - it adds 64R2 support in Malta, plus small verification that build kernel could run 32bit binaries.
I don't think it has sense to multiply patches here, there is no sense to have this separated.
5KEc is just test-bed.
Sergei Shtylyov <sshtylyov@mvista.com> wrote:
On 05/11/2012 10:29 AM, Steven J. Hill wrote:
> From: "Steven J. Hill"<sjhill@mips.com>
Looks like the subject is incorrect. Should be "Add MIPS 5KE support"?
> Signed-off-by: Leonid Yegoshin<yegoshin@mips.com>
> Signed-off-by: Steven J. Hill<sjhill@mips.com>
[...]
> diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
> index d0570f4..862a9c3 100644
> --- a/arch/mips/Kconfig
> +++ b/arch/mips/Kconfig
> @@ -282,6 +282,7 @@ config MIPS_MALTA
> select SYS_HAS_CPU_MIPS32_R1
> select SYS_HAS_CPU_MIPS32_R2
> select SYS_HAS_CPU_MIPS64_R1
> + select SYS_HAS_CPU_MIPS64_R2
> select SYS_HAS_CPU_NEVADA
> select SYS_HAS_CPU_RM7000
> select SYS_HAS_EARLY_PRINTK
> @@ -2488,6 +2489,7 @@ config TRAD_SIGNALS
> config MIPS32_COMPAT
> bool "Kernel support for Linux/MIPS 32-bit binary compatibility"
> depends on 64BIT
> + default y if CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
> help
> Select this option if you want Linux/MIPS 32-bit binary
> compatibility. Since all software available for Linux/MIPS is
> @@ -2507,6 +2509,7 @@ config SYSVIPC_COMPAT
> config MIPS32_O32
> bool "Kernel support for o32 binaries"
> depends on MIPS32_COMPAT
> + default y if CPU_SUPPORTS_32BIT_KERNEL&& SYS_SUPPORTS_32BIT_KERNEL
> help
> Select this option if you want to run o32 binaries. These are pure
> 32-bit binaries as used by the 32-bit Linux/MIPS port. Most of
> @@ -2525,6 +2528,10 @@ config MIPS32_N32
>
> If unsure, say N.
>
> +comment "64bit kernel, but support of 32bit applications is disabled!"
> + depends on 64BIT&& !MIPS32_O32&& !MIPS32_N32
> + depends on CPU_SUPPORTS_32BIT_KERNEL&& SYS_SUPPORTS_32BIT_KERNEL
> +
The above looks like a material for separate patch...
WBR, Sergei
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH v2] Add MIPS64R2 core support.
2012-05-11 17:32 ` Yegoshin, Leonid
@ 2012-05-11 17:37 ` Sergei Shtylyov
2012-05-11 17:45 ` Yegoshin, Leonid
0 siblings, 1 reply; 8+ messages in thread
From: Sergei Shtylyov @ 2012-05-11 17:37 UTC (permalink / raw)
To: Yegoshin, Leonid
Cc: Hill, Steven, linux-mips@linux-mips.org, ralf@linux-mips.org
Hello.
On 05/11/2012 09:32 PM, Yegoshin, Leonid wrote:
> Not exactly - it adds 64R2 support in Malta, plus small verification that build kernel could run 32bit binaries.
> I don't think it has sense to multiply patches here, there is no sense to have this separated.
> 5KEc is just test-bed.
Well, rule of thumb is do one thing per patch. You do three. All that
without proper description.
WBR, Sergei
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH v2] Add MIPS64R2 core support.
2012-05-11 17:37 ` Sergei Shtylyov
@ 2012-05-11 17:45 ` Yegoshin, Leonid
2012-05-11 18:05 ` Sergei Shtylyov
0 siblings, 1 reply; 8+ messages in thread
From: Yegoshin, Leonid @ 2012-05-11 17:45 UTC (permalink / raw)
To: Sergei Shtylyov
Cc: Hill, Steven, linux-mips@linux-mips.org, ralf@linux-mips.org
I don't see any advantage in separation of it.
Sergei Shtylyov <sshtylyov@mvista.com> wrote:
Hello.
On 05/11/2012 09:32 PM, Yegoshin, Leonid wrote:
> Not exactly - it adds 64R2 support in Malta, plus small verification that build kernel could run 32bit binaries.
> I don't think it has sense to multiply patches here, there is no sense to have this separated.
> 5KEc is just test-bed.
Well, rule of thumb is do one thing per patch. You do three. All that
without proper description.
WBR, Sergei
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [PATCH v2] Add MIPS64R2 core support.
2012-05-11 17:45 ` Yegoshin, Leonid
@ 2012-05-11 18:05 ` Sergei Shtylyov
2012-05-11 18:23 ` Hill, Steven
0 siblings, 1 reply; 8+ messages in thread
From: Sergei Shtylyov @ 2012-05-11 18:05 UTC (permalink / raw)
To: Yegoshin, Leonid
Cc: Hill, Steven, linux-mips@linux-mips.org, ralf@linux-mips.org
Hello.
On 05/11/2012 09:45 PM, Yegoshin, Leonid wrote:
> I don't see any advantage in separation of it.
I do. And I certainly do see an advantage of bothering to describe your
changes, not just throwing in patch with unclear summary, no changelog at all,
doing 3 things at once and then hoping for it to be silently accepted.
> Sergei Shtylyov<sshtylyov@mvista.com> wrote:
> Hello.
> On 05/11/2012 09:32 PM, Yegoshin, Leonid wrote:
>> Not exactly - it adds 64R2 support in Malta, plus small verification that build kernel could run 32bit binaries.
>> I don't think it has sense to multiply patches here, there is no sense to have this separated.
>> 5KEc is just test-bed.
> Well, rule of thumb is do one thing per patch. You do three. All that
> without proper description.
PS: Please stop top-posting.
WBR, Sergei
^ permalink raw reply [flat|nested] 8+ messages in thread* RE: [PATCH v2] Add MIPS64R2 core support.
2012-05-11 18:05 ` Sergei Shtylyov
@ 2012-05-11 18:23 ` Hill, Steven
2012-05-11 18:36 ` Sergei Shtylyov
0 siblings, 1 reply; 8+ messages in thread
From: Hill, Steven @ 2012-05-11 18:23 UTC (permalink / raw)
To: Sergei Shtylyov, Yegoshin, Leonid; +Cc: linux-mips@linux-mips.org
Sergei,
Stop copying Ralf. Copying the mailing list is sufficient.
Leonid,
Could you please write a couple of sentences describing the 6 lines that you added in 'arch/mips/Kconfig' ? We can then add that with the sentence "Add support for MIPS64R2 on the Malta platform." That will be sufficient and prevents having to split this patch up. Just email it to me internally and I will repost the patch.
-Steve
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH v2] Add MIPS64R2 core support.
2012-05-11 18:23 ` Hill, Steven
@ 2012-05-11 18:36 ` Sergei Shtylyov
0 siblings, 0 replies; 8+ messages in thread
From: Sergei Shtylyov @ 2012-05-11 18:36 UTC (permalink / raw)
To: Hill, Steven; +Cc: Yegoshin, Leonid, linux-mips@linux-mips.org
Hello.
On 05/11/2012 10:23 PM, Hill, Steven wrote:
> Sergei,
> Stop copying Ralf. Copying the mailing list is sufficient.
I just replied to all, as usual.
> Leonid,
> Could you please write a couple of sentences describing the 6 lines that you added in 'arch/mips/Kconfig' ? We can then add that with the sentence "Add support for MIPS64R2 on the Malta platform." That will be sufficient and prevents having to split this patch up. Just email it to me internally and I will repost the patch.
Yeah, that would be a good start. Although I'd still insist on splitting it up.
> -Steve
WBR, Sergei
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-05-11 18:37 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-11 6:29 [PATCH v2] Add MIPS64R2 core support Steven J. Hill
2012-05-11 17:25 ` Sergei Shtylyov
2012-05-11 17:32 ` Yegoshin, Leonid
2012-05-11 17:37 ` Sergei Shtylyov
2012-05-11 17:45 ` Yegoshin, Leonid
2012-05-11 18:05 ` Sergei Shtylyov
2012-05-11 18:23 ` Hill, Steven
2012-05-11 18:36 ` Sergei Shtylyov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.