Vincent Chen | 6f4eea9 | 2021-03-22 22:26:03 +0800 | [diff] [blame] | 1 | menu "CPU errata selection" |
| 2 | |
| 3 | config RISCV_ERRATA_ALTERNATIVE |
| 4 | bool "RISC-V alternative scheme" |
| 5 | default y |
| 6 | help |
| 7 | This Kconfig allows the kernel to automatically patch the |
| 8 | errata required by the execution platform at run time. The |
| 9 | code patching is performed once in the boot stages. It means |
| 10 | that the overhead from this mechanism is just taken once. |
| 11 | |
Vincent Chen | 1a0e5db | 2021-03-22 22:26:04 +0800 | [diff] [blame] | 12 | config ERRATA_SIFIVE |
| 13 | bool "SiFive errata" |
| 14 | depends on RISCV_ERRATA_ALTERNATIVE |
| 15 | help |
| 16 | All SiFive errata Kconfig depend on this Kconfig. Disabling |
| 17 | this Kconfig will disable all SiFive errata. Please say "Y" |
| 18 | here if your platform uses SiFive CPU cores. |
| 19 | |
| 20 | Otherwise, please say "N" here to avoid unnecessary overhead. |
| 21 | |
Vincent Chen | 800149a | 2021-03-22 22:26:05 +0800 | [diff] [blame] | 22 | config ERRATA_SIFIVE_CIP_453 |
| 23 | bool "Apply SiFive errata CIP-453" |
Vincent Chen | 0e0d499 | 2021-04-29 00:58:36 -0700 | [diff] [blame] | 24 | depends on ERRATA_SIFIVE && 64BIT |
Vincent Chen | 800149a | 2021-03-22 22:26:05 +0800 | [diff] [blame] | 25 | default y |
| 26 | help |
| 27 | This will apply the SiFive CIP-453 errata to add sign extension |
| 28 | to the $badaddr when exception type is instruction page fault |
| 29 | and instruction access fault. |
| 30 | |
| 31 | If you don't know what to do here, say "Y". |
| 32 | |
Vincent Chen | bff3ff5 | 2021-03-22 22:26:06 +0800 | [diff] [blame] | 33 | config ERRATA_SIFIVE_CIP_1200 |
| 34 | bool "Apply SiFive errata CIP-1200" |
Vincent Chen | 0e0d499 | 2021-04-29 00:58:36 -0700 | [diff] [blame] | 35 | depends on ERRATA_SIFIVE && 64BIT |
Vincent Chen | bff3ff5 | 2021-03-22 22:26:06 +0800 | [diff] [blame] | 36 | default y |
| 37 | help |
| 38 | This will apply the SiFive CIP-1200 errata to repalce all |
| 39 | "sfence.vma addr" with "sfence.vma" to ensure that the addr |
| 40 | has been flushed from TLB. |
| 41 | |
| 42 | If you don't know what to do here, say "Y". |
| 43 | |
Vincent Chen | 6f4eea9 | 2021-03-22 22:26:03 +0800 | [diff] [blame] | 44 | endmenu |