Kconfig.errata 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. menu "CPU errata selection"
  2. config ERRATA_ANDES
  3. bool "Andes AX45MP errata"
  4. depends on RISCV_ALTERNATIVE && RISCV_SBI
  5. help
  6. All Andes errata Kconfig depend on this Kconfig. Disabling
  7. this Kconfig will disable all Andes errata. Please say "Y"
  8. here if your platform uses Andes CPU cores.
  9. Otherwise, please say "N" here to avoid unnecessary overhead.
  10. config ERRATA_ANDES_CMO
  11. bool "Apply Andes cache management errata"
  12. depends on ERRATA_ANDES && ARCH_R9A07G043
  13. select RISCV_DMA_NONCOHERENT
  14. default y
  15. help
  16. This will apply the cache management errata to handle the
  17. non-standard handling on non-coherent operations on Andes cores.
  18. If you don't know what to do here, say "Y".
  19. config ERRATA_SIFIVE
  20. bool "SiFive errata"
  21. depends on RISCV_ALTERNATIVE
  22. help
  23. All SiFive errata Kconfig depend on this Kconfig. Disabling
  24. this Kconfig will disable all SiFive errata. Please say "Y"
  25. here if your platform uses SiFive CPU cores.
  26. Otherwise, please say "N" here to avoid unnecessary overhead.
  27. config ERRATA_SIFIVE_CIP_453
  28. bool "Apply SiFive errata CIP-453"
  29. depends on ERRATA_SIFIVE && 64BIT
  30. default y
  31. help
  32. This will apply the SiFive CIP-453 errata to add sign extension
  33. to the $badaddr when exception type is instruction page fault
  34. and instruction access fault.
  35. If you don't know what to do here, say "Y".
  36. config ERRATA_SIFIVE_CIP_1200
  37. bool "Apply SiFive errata CIP-1200"
  38. depends on ERRATA_SIFIVE && 64BIT
  39. default y
  40. help
  41. This will apply the SiFive CIP-1200 errata to repalce all
  42. "sfence.vma addr" with "sfence.vma" to ensure that the addr
  43. has been flushed from TLB.
  44. If you don't know what to do here, say "Y".
  45. config ERRATA_STARFIVE_JH7100
  46. bool "StarFive JH7100 support"
  47. depends on ARCH_STARFIVE
  48. depends on !DMA_DIRECT_REMAP
  49. depends on NONPORTABLE
  50. select DMA_GLOBAL_POOL
  51. select RISCV_DMA_NONCOHERENT
  52. select RISCV_NONSTANDARD_CACHE_OPS
  53. select SIFIVE_CCACHE
  54. default n
  55. help
  56. The StarFive JH7100 was a test chip for the JH7110 and has
  57. caches that are non-coherent with respect to peripheral DMAs.
  58. It was designed before the Zicbom extension so needs non-standard
  59. cache operations through the SiFive cache controller.
  60. Say "Y" if you want to support the BeagleV Starlight and/or
  61. StarFive VisionFive V1 boards.
  62. config ERRATA_THEAD
  63. bool "T-HEAD errata"
  64. depends on RISCV_ALTERNATIVE
  65. help
  66. All T-HEAD errata Kconfig depend on this Kconfig. Disabling
  67. this Kconfig will disable all T-HEAD errata. Please say "Y"
  68. here if your platform uses T-HEAD CPU cores.
  69. Otherwise, please say "N" here to avoid unnecessary overhead.
  70. config ERRATA_THEAD_MAE
  71. bool "Apply T-Head's memory attribute extension (XTheadMae) errata"
  72. depends on ERRATA_THEAD && 64BIT && MMU
  73. select RISCV_ALTERNATIVE_EARLY
  74. default y
  75. help
  76. This will apply the memory attribute extension errata to handle the
  77. non-standard PTE utilization on T-Head SoCs (XTheadMae).
  78. If you don't know what to do here, say "Y".
  79. config ERRATA_THEAD_CMO
  80. bool "Apply T-Head cache management errata"
  81. depends on ERRATA_THEAD && MMU
  82. select DMA_DIRECT_REMAP
  83. select RISCV_DMA_NONCOHERENT
  84. select RISCV_NONSTANDARD_CACHE_OPS
  85. default y
  86. help
  87. This will apply the cache management errata to handle the
  88. non-standard handling on non-coherent operations on T-Head SoCs.
  89. If you don't know what to do here, say "Y".
  90. config ERRATA_THEAD_PMU
  91. bool "Apply T-Head PMU errata"
  92. depends on ERRATA_THEAD && RISCV_PMU_SBI
  93. default y
  94. help
  95. The T-Head C9xx cores implement a PMU overflow extension very
  96. similar to the core SSCOFPMF extension.
  97. This will apply the overflow errata to handle the non-standard
  98. behaviour via the regular SBI PMU driver and interface.
  99. If you don't know what to do here, say "Y".
  100. endmenu # "CPU errata selection"