1menu "CPU errata selection" 2 3config ERRATA_ANDES 4 bool "Andes AX45MP errata" 5 depends on RISCV_SBI 6 help 7 All Andes errata Kconfig depend on this Kconfig. Disabling 8 this Kconfig will disable all Andes errata. Please say "Y" 9 here if your platform uses Andes CPU cores. 10 11 Otherwise, please say "N" here to avoid unnecessary overhead. 12 13config ERRATA_ANDES_CMO 14 bool "Apply Andes cache management errata" 15 depends on ERRATA_ANDES && ARCH_R9A07G043 16 select RISCV_DMA_NONCOHERENT 17 default y 18 help 19 This will apply the cache management errata to handle the 20 non-standard handling on non-coherent operations on Andes cores. 21 22 If you don't know what to do here, say "Y". 23 24config ERRATA_MIPS 25 bool "MIPS errata" 26 select RISCV_ALTERNATIVE_EARLY 27 help 28 All MIPS errata Kconfig depend on this Kconfig. Disabling 29 this Kconfig will disable all MIPS errata. Please say "Y" 30 here if your platform uses MIPS CPU cores. 31 32 Otherwise, please say "N" here to avoid unnecessary overhead. 33 34config ERRATA_MIPS_P8700_PAUSE_OPCODE 35 bool "Fix the PAUSE Opcode for MIPS P8700" 36 depends on ERRATA_MIPS && 64BIT 37 default n 38 help 39 The RISCV MIPS P8700 uses a different opcode for PAUSE. 40 It is a 'hint' encoding of the SLLI instruction, 41 with rd=0, rs1=0 and imm=5. It will behave as a NOP 42 instruction if no additional behavior beyond that of 43 SLLI is implemented. 44 45 If you are not using the P8700 processor, say n. 46 47config ERRATA_MIPS_P8700_WFI 48 bool "Replace WFI with mips.pause for MIPS P8700" 49 depends on ERRATA_MIPS && 64BIT 50 default n 51 help 52 The RISCV MIPS P8700 has bugs with the WFI instruction. 53 This errata replaces all WFI instructions with the MIPS 54 P8700 pause opcode to avoid these issues. 55 56 If you are not using the P8700 processor, say n. 57 58config ERRATA_SIFIVE 59 bool "SiFive errata" 60 depends on 64BIT 61 help 62 All SiFive errata Kconfig depend on this Kconfig. Disabling 63 this Kconfig will disable all SiFive errata. Please say "Y" 64 here if your platform uses SiFive CPU cores. 65 66 Otherwise, please say "N" here to avoid unnecessary overhead. 67 68config ERRATA_SIFIVE_CIP_453 69 bool "Apply SiFive errata CIP-453" 70 depends on ERRATA_SIFIVE && 64BIT 71 default y 72 help 73 This will apply the SiFive CIP-453 errata to add sign extension 74 to the $badaddr when exception type is instruction page fault 75 and instruction access fault. 76 77 If you don't know what to do here, say "Y". 78 79config ERRATA_SIFIVE_CIP_1200 80 bool "Apply SiFive errata CIP-1200" 81 depends on ERRATA_SIFIVE && 64BIT 82 default y 83 help 84 This will apply the SiFive CIP-1200 errata to repalce all 85 "sfence.vma addr" with "sfence.vma" to ensure that the addr 86 has been flushed from TLB. 87 88 If you don't know what to do here, say "Y". 89 90config ERRATA_STARFIVE_JH7100 91 bool "StarFive JH7100 support" 92 depends on ARCH_STARFIVE 93 depends on !DMA_DIRECT_REMAP 94 depends on NONPORTABLE 95 select DMA_GLOBAL_POOL 96 select RISCV_DMA_NONCOHERENT 97 select RISCV_NONSTANDARD_CACHE_OPS 98 select CACHEMAINT_FOR_DMA 99 select SIFIVE_CCACHE 100 default n 101 help 102 The StarFive JH7100 was a test chip for the JH7110 and has 103 caches that are non-coherent with respect to peripheral DMAs. 104 It was designed before the Zicbom extension so needs non-standard 105 cache operations through the SiFive cache controller. 106 107 Say "Y" if you want to support the BeagleV Starlight and/or 108 StarFive VisionFive V1 boards. 109 110config ERRATA_SIFIVE_MAL_9092 111 bool "Apply SiFive HLV/HLVX/HSV fence errata" 112 depends on ERRATA_SIFIVE && 64BIT 113 default y 114 help 115 This will apply the SiFive MAL-9092 errata to add fence.rw 116 instructions around all HLV/HLVX/HSV instructions. 117 118 Note: HSTATUS.HU is cleared during KVM initialization. If future 119 changes enable HSTATUS.HU to allow hypervisor instructions in 120 U-mode, additional errata handling may be required. 121 122 If you don't know what to do here, say "Y". 123 124config ERRATA_THEAD 125 bool "T-HEAD errata" 126 help 127 All T-HEAD errata Kconfig depend on this Kconfig. Disabling 128 this Kconfig will disable all T-HEAD errata. Please say "Y" 129 here if your platform uses T-HEAD CPU cores. 130 131 Otherwise, please say "N" here to avoid unnecessary overhead. 132 133config ERRATA_THEAD_MAE 134 bool "Apply T-Head's memory attribute extension (XTheadMae) errata" 135 depends on ERRATA_THEAD && 64BIT && MMU 136 select RISCV_ALTERNATIVE_EARLY 137 default y 138 help 139 This will apply the memory attribute extension errata to handle the 140 non-standard PTE utilization on T-Head SoCs (XTheadMae). 141 142 If you don't know what to do here, say "Y". 143 144config ERRATA_THEAD_CMO 145 bool "Apply T-Head cache management errata" 146 depends on ERRATA_THEAD && MMU 147 select DMA_DIRECT_REMAP 148 select RISCV_DMA_NONCOHERENT 149 select RISCV_NONSTANDARD_CACHE_OPS 150 default y 151 help 152 This will apply the cache management errata to handle the 153 non-standard handling on non-coherent operations on T-Head SoCs. 154 155 If you don't know what to do here, say "Y". 156 157config ERRATA_THEAD_PMU 158 bool "Apply T-Head PMU errata" 159 depends on ERRATA_THEAD && RISCV_PMU_SBI 160 default y 161 help 162 The T-Head C9xx cores implement a PMU overflow extension very 163 similar to the core SSCOFPMF extension. 164 165 This will apply the overflow errata to handle the non-standard 166 behaviour via the regular SBI PMU driver and interface. 167 168 If you don't know what to do here, say "Y". 169 170config ERRATA_THEAD_GHOSTWRITE 171 bool "Apply T-Head Ghostwrite errata" 172 depends on ERRATA_THEAD && RISCV_ISA_XTHEADVECTOR 173 select RISCV_ALTERNATIVE_EARLY 174 default y 175 help 176 The T-Head C9xx cores have a vulnerability in the xtheadvector 177 instruction set. When this errata is enabled, the CPUs will be probed 178 to determine if they are vulnerable and disable xtheadvector. 179 180 If you don't know what to do here, say "Y". 181 182endmenu # "CPU errata selection" 183