aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2014-01-28 09:28:43 -0500
committerRalf Baechle <ralf@linux-mips.org>2014-03-26 18:09:11 -0400
commita8ad136789b4256fa372d59daaddb91b72aa0753 (patch)
tree0e13b5f91cdefe555e20d671732601dfe8c5301f
parent2bcb3fbc3fc593d2ec1efbdeb3e71b9475afe320 (diff)
MIPS: Warn if vector register partitioning is implemented
No current systems implementing MSA include support for vector register partitioning which makes it somewhat difficult to implement support for it in the kernel. Thus for the moment the kernel includes no such support. However if the kernel were to be run on a system which implemented register partitioning then it would not function correctly, mishandling MSA disabled exceptions. Print a warning if run on a system with vector register partitioning implemented to indicate this problem should it occur. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/6494/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/kernel/cpu-probe.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index 420d2fc595d0..dec20f580cea 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -1195,8 +1195,11 @@ void cpu_probe(void)
1195 else 1195 else
1196 c->srsets = 1; 1196 c->srsets = 1;
1197 1197
1198 if (cpu_has_msa) 1198 if (cpu_has_msa) {
1199 c->msa_id = cpu_get_msa_id(); 1199 c->msa_id = cpu_get_msa_id();
1200 WARN(c->msa_id & MSA_IR_WRPF,
1201 "Vector register partitioning unimplemented!");
1202 }
1200 1203
1201 cpu_probe_vmbits(c); 1204 cpu_probe_vmbits(c);
1202 1205