Skip to content

Commit a8ad136

Browse files
paulburtonralfbaechle
authored andcommitted
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>
1 parent 2bcb3fb commit a8ad136

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎arch/mips/kernel/cpu-probe.c‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,8 +1195,11 @@ void cpu_probe(void)
11951195
else
11961196
c->srsets = 1;
11971197

1198-
if (cpu_has_msa)
1198+
if (cpu_has_msa) {
11991199
c->msa_id = cpu_get_msa_id();
1200+
WARN(c->msa_id & MSA_IR_WRPF,
1201+
"Vector register partitioning unimplemented!");
1202+
}
12001203

12011204
cpu_probe_vmbits(c);
12021205

0 commit comments

Comments
 (0)