blob: 75a6df7fd26541c40a9052d2d54fc26b47138143 [file] [log] [blame]
David Daney23a271e2011-02-17 18:23:32 -08001if CPU_CAVIUM_OCTEON
David Daney5b3b1682009-01-08 16:46:40 -08002
David Daneyc9941152010-10-07 16:03:53 -07003config CAVIUM_CN63XXP1
4 bool "Enable CN63XXP1 errata worarounds"
David Daneyc9941152010-10-07 16:03:53 -07005 default "n"
6 help
7 The CN63XXP1 chip requires build time workarounds to
8 function reliably, select this option to enable them. These
9 workarounds will cause a slight decrease in performance on
10 non-CN63XXP1 hardware, so it is recommended to select "n"
11 unless it is known the workarounds are needed.
12
David Daney5b3b1682009-01-08 16:46:40 -080013config CAVIUM_OCTEON_2ND_KERNEL
14 bool "Build the kernel to be used as a 2nd kernel on the same chip"
David Daney5b3b1682009-01-08 16:46:40 -080015 default "n"
16 help
17 This option configures this kernel to be linked at a different
18 address and use the 2nd uart for output. This allows a kernel built
19 with this option to be run at the same time as one built without this
20 option.
21
22config CAVIUM_OCTEON_HW_FIX_UNALIGNED
23 bool "Enable hardware fixups of unaligned loads and stores"
David Daney5b3b1682009-01-08 16:46:40 -080024 default "y"
25 help
26 Configure the Octeon hardware to automatically fix unaligned loads
27 and stores. Normally unaligned accesses are fixed using a kernel
28 exception handler. This option enables the hardware automatic fixups,
29 which requires only an extra 3 cycles. Disable this option if you
30 are running code that relies on address exceptions on unaligned
31 accesses.
32
33config CAVIUM_OCTEON_CVMSEG_SIZE
34 int "Number of L1 cache lines reserved for CVMSEG memory"
David Daney5b3b1682009-01-08 16:46:40 -080035 range 0 54
36 default 1
37 help
38 CVMSEG LM is a segment that accesses portions of the dcache as a
39 local memory; the larger CVMSEG is, the smaller the cache is.
40 This selects the size of CVMSEG LM, which is in cache blocks. The
41 legally range is from zero to 54 cache blocks (i.e. CVMSEG LM is
42 between zero and 6192 bytes).
43
44config CAVIUM_OCTEON_LOCK_L2
45 bool "Lock often used kernel code in the L2"
David Daney5b3b1682009-01-08 16:46:40 -080046 default "y"
47 help
48 Enable locking parts of the kernel into the L2 cache.
49
50config CAVIUM_OCTEON_LOCK_L2_TLB
51 bool "Lock the TLB handler in L2"
52 depends on CAVIUM_OCTEON_LOCK_L2
53 default "y"
54 help
55 Lock the low level TLB fast path into L2.
56
57config CAVIUM_OCTEON_LOCK_L2_EXCEPTION
58 bool "Lock the exception handler in L2"
59 depends on CAVIUM_OCTEON_LOCK_L2
60 default "y"
61 help
62 Lock the low level exception handler into L2.
63
64config CAVIUM_OCTEON_LOCK_L2_LOW_LEVEL_INTERRUPT
65 bool "Lock the interrupt handler in L2"
66 depends on CAVIUM_OCTEON_LOCK_L2
67 default "y"
68 help
69 Lock the low level interrupt handler into L2.
70
71config CAVIUM_OCTEON_LOCK_L2_INTERRUPT
72 bool "Lock the 2nd level interrupt handler in L2"
73 depends on CAVIUM_OCTEON_LOCK_L2
74 default "y"
75 help
76 Lock the 2nd level interrupt handler in L2.
77
78config CAVIUM_OCTEON_LOCK_L2_MEMCPY
79 bool "Lock memcpy() in L2"
80 depends on CAVIUM_OCTEON_LOCK_L2
81 default "y"
82 help
83 Lock the kernel's implementation of memcpy() into L2.
84
David Daneyb93b2ab2010-10-01 13:27:34 -070085config IOMMU_HELPER
86 bool
87
88config NEED_SG_DMA_LENGTH
89 bool
90
91config SWIOTLB
92 def_bool y
David Daneyb93b2ab2010-10-01 13:27:34 -070093 select IOMMU_HELPER
94 select NEED_SG_DMA_LENGTH
David Daney23a271e2011-02-17 18:23:32 -080095
96
Venkat Subbiah0e49caf2012-12-02 00:51:26 +000097config OCTEON_ILM
98 tristate "Module to measure interrupt latency using Octeon CIU Timer"
99 help
100 This driver is a module to measure interrupt latency using the
101 the CIU Timers on Octeon.
102
103 To compile this driver as a module, choose M here. The module
104 will be called octeon-ilm
105
David Daney23a271e2011-02-17 18:23:32 -0800106endif # CPU_CAVIUM_OCTEON