diff options
author | Paul Burton <paul.burton@imgtec.com> | 2014-01-27 10:23:10 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-03-26 18:09:10 -0400 |
commit | a5e9a69e2cb64c15246291fdc0e27134b9cdce37 (patch) | |
tree | 08526b5d7b97772290a00abaa36fe7df220bbfa9 /arch/mips/Kconfig | |
parent | 7f65afb97f279d9d02d0779384e8bd5ace064dea (diff) |
MIPS: Detect the MSA ASE
This patch adds support for probing the MSAP bit within the Config3
register in order to detect the presence of the MSA ASE. Presence of the
ASE will be indicated in /proc/cpuinfo. The value of the MSA
implementation register will be displayed at boot to aid debugging and
verification of a correct setup, as is done for the FPU.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6430/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/Kconfig')
-rw-r--r-- | arch/mips/Kconfig | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index e5e6aaded3dd..f627739eca49 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -1208,6 +1208,7 @@ config CPU_MIPS32_R2 | |||
1208 | select CPU_HAS_PREFETCH | 1208 | select CPU_HAS_PREFETCH |
1209 | select CPU_SUPPORTS_32BIT_KERNEL | 1209 | select CPU_SUPPORTS_32BIT_KERNEL |
1210 | select CPU_SUPPORTS_HIGHMEM | 1210 | select CPU_SUPPORTS_HIGHMEM |
1211 | select CPU_SUPPORTS_MSA | ||
1211 | select HAVE_KVM | 1212 | select HAVE_KVM |
1212 | help | 1213 | help |
1213 | Choose this option to build a kernel for release 2 or later of the | 1214 | Choose this option to build a kernel for release 2 or later of the |
@@ -1243,6 +1244,7 @@ config CPU_MIPS64_R2 | |||
1243 | select CPU_SUPPORTS_64BIT_KERNEL | 1244 | select CPU_SUPPORTS_64BIT_KERNEL |
1244 | select CPU_SUPPORTS_HIGHMEM | 1245 | select CPU_SUPPORTS_HIGHMEM |
1245 | select CPU_SUPPORTS_HUGEPAGES | 1246 | select CPU_SUPPORTS_HUGEPAGES |
1247 | select CPU_SUPPORTS_MSA | ||
1246 | help | 1248 | help |
1247 | Choose this option to build a kernel for release 2 or later of the | 1249 | Choose this option to build a kernel for release 2 or later of the |
1248 | MIPS64 architecture. Many modern embedded systems with a 64-bit | 1250 | MIPS64 architecture. Many modern embedded systems with a 64-bit |
@@ -2081,6 +2083,20 @@ config CPU_MICROMIPS | |||
2081 | When this option is enabled the kernel will be built using the | 2083 | When this option is enabled the kernel will be built using the |
2082 | microMIPS ISA | 2084 | microMIPS ISA |
2083 | 2085 | ||
2086 | config CPU_HAS_MSA | ||
2087 | bool "Support for the MIPS SIMD Architecture" | ||
2088 | depends on CPU_SUPPORTS_MSA | ||
2089 | default y | ||
2090 | help | ||
2091 | MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers | ||
2092 | and a set of SIMD instructions to operate on them. When this option | ||
2093 | is enabled the kernel will support detection of the MSA ASE. If you | ||
2094 | know that your kernel will only be running on CPUs which do not | ||
2095 | support MSA then you may wish to say N here to reduce the size of | ||
2096 | your kernel. | ||
2097 | |||
2098 | If unsure, say Y. | ||
2099 | |||
2084 | config CPU_HAS_WB | 2100 | config CPU_HAS_WB |
2085 | bool | 2101 | bool |
2086 | 2102 | ||
@@ -2146,6 +2162,9 @@ config SYS_SUPPORTS_SMARTMIPS | |||
2146 | config SYS_SUPPORTS_MICROMIPS | 2162 | config SYS_SUPPORTS_MICROMIPS |
2147 | bool | 2163 | bool |
2148 | 2164 | ||
2165 | config CPU_SUPPORTS_MSA | ||
2166 | bool | ||
2167 | |||
2149 | config ARCH_FLATMEM_ENABLE | 2168 | config ARCH_FLATMEM_ENABLE |
2150 | def_bool y | 2169 | def_bool y |
2151 | depends on !NUMA && !CPU_LOONGSON2 | 2170 | depends on !NUMA && !CPU_LOONGSON2 |