Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

David Daney and committed by
Ralf Baechle
8a837cdb 6e511163

+11 -12
+11 -12
arch/mips/cavium-octeon/Kconfig
··· 10 10 non-CN63XXP1 hardware, so it is recommended to select "n" 11 11 unless it is known the workarounds are needed. 12 12 13 + config 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 + 13 24 endif # CPU_CAVIUM_OCTEON 14 25 15 26 if CAVIUM_OCTEON_SOC ··· 33 22 address and use the 2nd uart for output. This allows a kernel built 34 23 with this option to be run at the same time as one built without this 35 24 option. 36 - 37 - config CAVIUM_OCTEON_CVMSEG_SIZE 38 - int "Number of L1 cache lines reserved for CVMSEG memory" 39 - range 0 54 40 - default 1 41 - help 42 - CVMSEG LM is a segment that accesses portions of the dcache as a 43 - local memory; the larger CVMSEG is, the smaller the cache is. 44 - This selects the size of CVMSEG LM, which is in cache blocks. The 45 - legally range is from zero to 54 cache blocks (i.e. CVMSEG LM is 46 - between zero and 6192 bytes). 47 25 48 26 config CAVIUM_OCTEON_LOCK_L2 49 27 bool "Lock often used kernel code in the L2" ··· 85 85 def_bool y 86 86 select IOMMU_HELPER 87 87 select NEED_SG_DMA_LENGTH 88 - 89 88 90 89 config OCTEON_ILM 91 90 tristate "Module to measure interrupt latency using Octeon CIU Timer"