18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ciif CPU_CAVIUM_OCTEON
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ciconfig CAVIUM_CN63XXP1
58c2ecf20Sopenharmony_ci	bool "Enable CN63XXP1 errata workarounds"
68c2ecf20Sopenharmony_ci	default "n"
78c2ecf20Sopenharmony_ci	help
88c2ecf20Sopenharmony_ci	  The CN63XXP1 chip requires build time workarounds to
98c2ecf20Sopenharmony_ci	  function reliably, select this option to enable them.  These
108c2ecf20Sopenharmony_ci	  workarounds will cause a slight decrease in performance on
118c2ecf20Sopenharmony_ci	  non-CN63XXP1 hardware, so it is recommended to select "n"
128c2ecf20Sopenharmony_ci	  unless it is known the workarounds are needed.
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciconfig CAVIUM_OCTEON_CVMSEG_SIZE
158c2ecf20Sopenharmony_ci	int "Number of L1 cache lines reserved for CVMSEG memory"
168c2ecf20Sopenharmony_ci	range 0 54
178c2ecf20Sopenharmony_ci	default 1
188c2ecf20Sopenharmony_ci	help
198c2ecf20Sopenharmony_ci	  CVMSEG LM is a segment that accesses portions of the dcache as a
208c2ecf20Sopenharmony_ci	  local memory; the larger CVMSEG is, the smaller the cache is.
218c2ecf20Sopenharmony_ci	  This selects the size of CVMSEG LM, which is in cache blocks. The
228c2ecf20Sopenharmony_ci	  legally range is from zero to 54 cache blocks (i.e. CVMSEG LM is
238c2ecf20Sopenharmony_ci	  between zero and 6192 bytes).
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciendif # CPU_CAVIUM_OCTEON
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ciif CAVIUM_OCTEON_SOC
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ciconfig CAVIUM_OCTEON_LOCK_L2
308c2ecf20Sopenharmony_ci	bool "Lock often used kernel code in the L2"
318c2ecf20Sopenharmony_ci	default "y"
328c2ecf20Sopenharmony_ci	help
338c2ecf20Sopenharmony_ci	  Enable locking parts of the kernel into the L2 cache.
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ciconfig CAVIUM_OCTEON_LOCK_L2_TLB
368c2ecf20Sopenharmony_ci	bool "Lock the TLB handler in L2"
378c2ecf20Sopenharmony_ci	depends on CAVIUM_OCTEON_LOCK_L2
388c2ecf20Sopenharmony_ci	default "y"
398c2ecf20Sopenharmony_ci	help
408c2ecf20Sopenharmony_ci	  Lock the low level TLB fast path into L2.
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ciconfig CAVIUM_OCTEON_LOCK_L2_EXCEPTION
438c2ecf20Sopenharmony_ci	bool "Lock the exception handler in L2"
448c2ecf20Sopenharmony_ci	depends on CAVIUM_OCTEON_LOCK_L2
458c2ecf20Sopenharmony_ci	default "y"
468c2ecf20Sopenharmony_ci	help
478c2ecf20Sopenharmony_ci	  Lock the low level exception handler into L2.
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ciconfig CAVIUM_OCTEON_LOCK_L2_LOW_LEVEL_INTERRUPT
508c2ecf20Sopenharmony_ci	bool "Lock the interrupt handler in L2"
518c2ecf20Sopenharmony_ci	depends on CAVIUM_OCTEON_LOCK_L2
528c2ecf20Sopenharmony_ci	default "y"
538c2ecf20Sopenharmony_ci	help
548c2ecf20Sopenharmony_ci	  Lock the low level interrupt handler into L2.
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ciconfig CAVIUM_OCTEON_LOCK_L2_INTERRUPT
578c2ecf20Sopenharmony_ci	bool "Lock the 2nd level interrupt handler in L2"
588c2ecf20Sopenharmony_ci	depends on CAVIUM_OCTEON_LOCK_L2
598c2ecf20Sopenharmony_ci	default "y"
608c2ecf20Sopenharmony_ci	help
618c2ecf20Sopenharmony_ci	  Lock the 2nd level interrupt handler in L2.
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ciconfig CAVIUM_OCTEON_LOCK_L2_MEMCPY
648c2ecf20Sopenharmony_ci	bool "Lock memcpy() in L2"
658c2ecf20Sopenharmony_ci	depends on CAVIUM_OCTEON_LOCK_L2
668c2ecf20Sopenharmony_ci	default "y"
678c2ecf20Sopenharmony_ci	help
688c2ecf20Sopenharmony_ci	  Lock the kernel's implementation of memcpy() into L2.
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_ciconfig OCTEON_ILM
718c2ecf20Sopenharmony_ci	tristate "Module to measure interrupt latency using Octeon CIU Timer"
728c2ecf20Sopenharmony_ci	help
738c2ecf20Sopenharmony_ci	  This driver is a module to measure interrupt latency using the
748c2ecf20Sopenharmony_ci	  the CIU Timers on Octeon.
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci	  To compile this driver as a module, choose M here.  The module
778c2ecf20Sopenharmony_ci	  will be called octeon-ilm
788c2ecf20Sopenharmony_ci
798c2ecf20Sopenharmony_ciendif # CAVIUM_OCTEON_SOC
80