Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] MIPS: Limit MIPS_MT_SMP support by ISA reversion
@ 2023-04-07 22:35 Jiaxun Yang
  2023-04-08  0:30 ` Guenter Roeck
  2023-05-16 15:05 ` Maciej W. Rozycki
  0 siblings, 2 replies; 9+ messages in thread
From: Jiaxun Yang @ 2023-04-07 22:35 UTC (permalink / raw)
  To: linux-mips; +Cc: tsbogend, Jiaxun Yang, Guenter Roeck

MIPS MT ASE is only available on ISA between Release 1 and Release 5.
Add ISA level dependency to Kconfig to fix build.

Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
 arch/mips/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 5e399a5ac3b3..ecc7a755fae6 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -2194,7 +2194,8 @@ config CPU_R4K_CACHE_TLB
 config MIPS_MT_SMP
 	bool "MIPS MT SMP support (1 TC on each available VPE)"
 	default y
-	depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MIPSR6 && !CPU_MICROMIPS
+	depends on TARGET_ISA_REV > 0 && TARGET_ISA_REV < 6
+	depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MICROMIPS
 	select CPU_MIPSR2_IRQ_VI
 	select CPU_MIPSR2_IRQ_EI
 	select SYNC_R4K
-- 
2.39.2 (Apple Git-143)


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-05-16 22:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-07 22:35 [PATCH] MIPS: Limit MIPS_MT_SMP support by ISA reversion Jiaxun Yang
2023-04-08  0:30 ` Guenter Roeck
2023-04-08 10:10   ` Jiaxun Yang
2023-04-08 12:17     ` Thomas Bogendoerfer
2023-04-08 12:59       ` Jiaxun Yang
2023-05-16 15:05 ` Maciej W. Rozycki
2023-05-16 19:56   ` Jiaxun Yang
2023-05-16 20:47     ` Maciej W. Rozycki
2023-05-16 22:54       ` Jiaxun Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox