aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Daney <david.daney@cavium.com>2014-05-28 17:52:06 -0400
committerRalf Baechle <ralf@linux-mips.org>2014-05-30 15:01:10 -0400
commit8a837cdb0a51c4b45aca8966cf11af99b397c97d (patch)
treebf44cf65a0a3dce8d75ec37d4e5ed2ac03773fcf
parent6e5111636d0ad6deb65a8280fdcd49e4753e5aec (diff)
MIPS: OCTEON: Move CAVIUM_OCTEON_CVMSEG_SIZE to CPU_CAVIUM_OCTEON
CVMSEG is related to the CPU core not the SoC system. So needs to be configurable there. Signed-off-by: David Daney <david.daney@cavium.com> Signed-off-by: Andreas Herrmann <andreas.herrmann@caviumnetworks.com> Cc: linux-mips@linux-mips.org Cc: James Hogan <james.hogan@imgtec.com> Cc: kvm@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/7013/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/cavium-octeon/Kconfig23
1 files changed, 11 insertions, 12 deletions
diff --git a/arch/mips/cavium-octeon/Kconfig b/arch/mips/cavium-octeon/Kconfig
index 227705d9d5ae..602866657938 100644
--- a/arch/mips/cavium-octeon/Kconfig
+++ b/arch/mips/cavium-octeon/Kconfig
@@ -10,6 +10,17 @@ config CAVIUM_CN63XXP1
10 non-CN63XXP1 hardware, so it is recommended to select "n" 10 non-CN63XXP1 hardware, so it is recommended to select "n"
11 unless it is known the workarounds are needed. 11 unless it is known the workarounds are needed.
12 12
13config CAVIUM_OCTEON_CVMSEG_SIZE
14 int "Number of L1 cache lines reserved for CVMSEG memory"
15 range 0 54
16 default 1
17 help
18 CVMSEG LM is a segment that accesses portions of the dcache as a
19 local memory; the larger CVMSEG is, the smaller the cache is.
20 This selects the size of CVMSEG LM, which is in cache blocks. The
21 legally range is from zero to 54 cache blocks (i.e. CVMSEG LM is
22 between zero and 6192 bytes).
23
13endif # CPU_CAVIUM_OCTEON 24endif # CPU_CAVIUM_OCTEON
14 25
15if CAVIUM_OCTEON_SOC 26if CAVIUM_OCTEON_SOC
@@ -23,17 +34,6 @@ config CAVIUM_OCTEON_2ND_KERNEL
23 with this option to be run at the same time as one built without this 34 with this option to be run at the same time as one built without this
24 option. 35 option.
25 36
26config CAVIUM_OCTEON_CVMSEG_SIZE
27 int "Number of L1 cache lines reserved for CVMSEG memory"
28 range 0 54
29 default 1
30 help
31 CVMSEG LM is a segment that accesses portions of the dcache as a
32 local memory; the larger CVMSEG is, the smaller the cache is.
33 This selects the size of CVMSEG LM, which is in cache blocks. The
34 legally range is from zero to 54 cache blocks (i.e. CVMSEG LM is
35 between zero and 6192 bytes).
36
37config CAVIUM_OCTEON_LOCK_L2 37config CAVIUM_OCTEON_LOCK_L2
38 bool "Lock often used kernel code in the L2" 38 bool "Lock often used kernel code in the L2"
39 default "y" 39 default "y"
@@ -86,7 +86,6 @@ config SWIOTLB
86 select IOMMU_HELPER 86 select IOMMU_HELPER
87 select NEED_SG_DMA_LENGTH 87 select NEED_SG_DMA_LENGTH
88 88
89
90config OCTEON_ILM 89config OCTEON_ILM
91 tristate "Module to measure interrupt latency using Octeon CIU Timer" 90 tristate "Module to measure interrupt latency using Octeon CIU Timer"
92 help 91 help