]> www.infradead.org Git - nvme.git/commit
MIPS: SMP-CPS: Fix address for GCR_ACCESS register for CM3 and later
authorGregory CLEMENT <gregory.clement@bootlin.com>
Mon, 22 Jul 2024 13:15:39 +0000 (15:15 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 23 Jul 2024 07:30:13 +0000 (09:30 +0200)
commita263e5f309f32301e1f3ad113293f4e68a82a646
tree688b31ece2cdc9f33d473fae62e489838d1103d4
parentfa165f919016829e542e37782a3452512dffa5ea
MIPS: SMP-CPS: Fix address for GCR_ACCESS register for CM3 and later

When the CM block migrated from CM2.5 to CM3.0, the address offset for
the Global CSR Access Privilege register was modified. We saw this in
the "MIPS64 I6500 Multiprocessing System Programmer's Guide," it is
stated that "the Global CSR Access Privilege register is located at
offset 0x0120" in section 5.4. It is at least the same for I6400.

This fix allows to use the VP cores in SMP mode if the reset values
were modified by the bootloader.

Based on the work of Vladimir Kondratiev
<vladimir.kondratiev@mobileye.com> and the feedback from Jiaxun Yang
<jiaxun.yang@flygoat.com>.

Fixes: 197e89e0984a ("MIPS: mips-cm: Implement mips_cm_revision")
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Reviewed-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/include/asm/mips-cm.h
arch/mips/kernel/smp-cps.c