Kconfig 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. config CAVIUM_OCTEON_SPECIFIC_OPTIONS
  2. bool "Enable Octeon specific options"
  3. depends on CPU_CAVIUM_OCTEON
  4. default "y"
  5. config CAVIUM_CN63XXP1
  6. bool "Enable CN63XXP1 errata worarounds"
  7. depends on CAVIUM_OCTEON_SPECIFIC_OPTIONS
  8. default "n"
  9. help
  10. The CN63XXP1 chip requires build time workarounds to
  11. function reliably, select this option to enable them. These
  12. workarounds will cause a slight decrease in performance on
  13. non-CN63XXP1 hardware, so it is recommended to select "n"
  14. unless it is known the workarounds are needed.
  15. config CAVIUM_OCTEON_2ND_KERNEL
  16. bool "Build the kernel to be used as a 2nd kernel on the same chip"
  17. depends on CAVIUM_OCTEON_SPECIFIC_OPTIONS
  18. default "n"
  19. help
  20. This option configures this kernel to be linked at a different
  21. address and use the 2nd uart for output. This allows a kernel built
  22. with this option to be run at the same time as one built without this
  23. option.
  24. config CAVIUM_OCTEON_HW_FIX_UNALIGNED
  25. bool "Enable hardware fixups of unaligned loads and stores"
  26. depends on CAVIUM_OCTEON_SPECIFIC_OPTIONS
  27. default "y"
  28. help
  29. Configure the Octeon hardware to automatically fix unaligned loads
  30. and stores. Normally unaligned accesses are fixed using a kernel
  31. exception handler. This option enables the hardware automatic fixups,
  32. which requires only an extra 3 cycles. Disable this option if you
  33. are running code that relies on address exceptions on unaligned
  34. accesses.
  35. config CAVIUM_OCTEON_CVMSEG_SIZE
  36. int "Number of L1 cache lines reserved for CVMSEG memory"
  37. depends on CAVIUM_OCTEON_SPECIFIC_OPTIONS
  38. range 0 54
  39. default 1
  40. help
  41. CVMSEG LM is a segment that accesses portions of the dcache as a
  42. local memory; the larger CVMSEG is, the smaller the cache is.
  43. This selects the size of CVMSEG LM, which is in cache blocks. The
  44. legally range is from zero to 54 cache blocks (i.e. CVMSEG LM is
  45. between zero and 6192 bytes).
  46. config CAVIUM_OCTEON_LOCK_L2
  47. bool "Lock often used kernel code in the L2"
  48. depends on CAVIUM_OCTEON_SPECIFIC_OPTIONS
  49. default "y"
  50. help
  51. Enable locking parts of the kernel into the L2 cache.
  52. config CAVIUM_OCTEON_LOCK_L2_TLB
  53. bool "Lock the TLB handler in L2"
  54. depends on CAVIUM_OCTEON_LOCK_L2
  55. default "y"
  56. help
  57. Lock the low level TLB fast path into L2.
  58. config CAVIUM_OCTEON_LOCK_L2_EXCEPTION
  59. bool "Lock the exception handler in L2"
  60. depends on CAVIUM_OCTEON_LOCK_L2
  61. default "y"
  62. help
  63. Lock the low level exception handler into L2.
  64. config 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. config CAVIUM_OCTEON_LOCK_L2_INTERRUPT
  71. bool "Lock the 2nd level interrupt handler in L2"
  72. depends on CAVIUM_OCTEON_LOCK_L2
  73. default "y"
  74. help
  75. Lock the 2nd level interrupt handler in L2.
  76. config CAVIUM_OCTEON_LOCK_L2_MEMCPY
  77. bool "Lock memcpy() in L2"
  78. depends on CAVIUM_OCTEON_LOCK_L2
  79. default "y"
  80. help
  81. Lock the kernel's implementation of memcpy() into L2.
  82. config ARCH_SPARSEMEM_ENABLE
  83. def_bool y
  84. select SPARSEMEM_STATIC
  85. depends on CPU_CAVIUM_OCTEON
  86. config CAVIUM_OCTEON_HELPER
  87. def_bool y
  88. depends on OCTEON_ETHERNET || PCI
  89. config IOMMU_HELPER
  90. bool
  91. config NEED_SG_DMA_LENGTH
  92. bool
  93. config SWIOTLB
  94. def_bool y
  95. depends on CPU_CAVIUM_OCTEON
  96. select IOMMU_HELPER
  97. select NEED_SG_DMA_LENGTH