linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] MIPS: select CPU_MIPS64 for remaining MIPS64 CPUs
@ 2021-02-27 12:26 Jason A. Donenfeld
  2021-02-27 13:40 ` Maciej W. Rozycki
  0 siblings, 1 reply; 8+ messages in thread
From: Jason A. Donenfeld @ 2021-02-27 12:26 UTC (permalink / raw)
  To: linux-kernel, linux-mips
  Cc: Jason A. Donenfeld, Thomas Bogendoerfer, Ralf Baechle,
	George Cherian, Huacai Chen, Jiaxun Yang

The CPU_MIPS64 and CPU_MIPS32 variables are supposed to be able to
distinguish broadly between 64-bit and 32-bit MIPS CPUs. However, they
weren't selected by the specialty CPUs, Octeon and Loongson, which meant
it was possible to hit a weird state of:

    MIPS=y, CONFIG_64BIT=y, CPU_MIPS64=n

This commit rectifies the issue by having CPU_MIPS64 be selected when
the missing Octeon or Loongson models are selected.

Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: George Cherian <gcherian@marvell.com>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
---
 arch/mips/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index d89efba3d8a4..3e0e8f1d2e82 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -2118,7 +2118,7 @@ config CPU_MIPS32
 config CPU_MIPS64
 	bool
 	default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R5 || \
-		     CPU_MIPS64_R6
+		     CPU_MIPS64_R6 || CPU_LOONGSON64 || CPU_CAVIUM_OCTEON
 
 #
 # These indicate the revision of the architecture
-- 
2.30.1


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

end of thread, other threads:[~2021-03-03  0:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-27 12:26 [PATCH] MIPS: select CPU_MIPS64 for remaining MIPS64 CPUs Jason A. Donenfeld
2021-02-27 13:40 ` Maciej W. Rozycki
2021-02-27 22:59   ` Jason A. Donenfeld
2021-02-27 23:02     ` [PATCH v2] " Jason A. Donenfeld
2021-03-01 14:49       ` Thomas Bogendoerfer
2021-03-01 16:27         ` Jason A. Donenfeld
2021-03-02 23:03           ` Thomas Bogendoerfer
2021-03-03  0:05             ` Jason A. Donenfeld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).