Kconfig 2.9 KB

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