Merge tag 'x86-boot-2022-06-05' of git://git.kernel.org/pub/scm/linux/kernel/git...
[platform/kernel/linux-rpi.git] / arch / riscv / Kconfig.erratas
1 menu "CPU errata selection"
2
3 config ERRATA_SIFIVE
4         bool "SiFive errata"
5         depends on !XIP_KERNEL
6         select RISCV_ALTERNATIVE
7         help
8           All SiFive errata Kconfig depend on this Kconfig. Disabling
9           this Kconfig will disable all SiFive errata. Please say "Y"
10           here if your platform uses SiFive CPU cores.
11
12           Otherwise, please say "N" here to avoid unnecessary overhead.
13
14 config ERRATA_SIFIVE_CIP_453
15         bool "Apply SiFive errata CIP-453"
16         depends on ERRATA_SIFIVE && 64BIT
17         default y
18         help
19           This will apply the SiFive CIP-453 errata to add sign extension
20           to the $badaddr when exception type is instruction page fault
21           and instruction access fault.
22
23           If you don't know what to do here, say "Y".
24
25 config ERRATA_SIFIVE_CIP_1200
26         bool "Apply SiFive errata CIP-1200"
27         depends on ERRATA_SIFIVE && 64BIT
28         default y
29         help
30           This will apply the SiFive CIP-1200 errata to repalce all
31           "sfence.vma addr" with "sfence.vma" to ensure that the addr
32           has been flushed from TLB.
33
34           If you don't know what to do here, say "Y".
35
36 config ERRATA_THEAD
37         bool "T-HEAD errata"
38         select RISCV_ALTERNATIVE
39         help
40           All T-HEAD errata Kconfig depend on this Kconfig. Disabling
41           this Kconfig will disable all T-HEAD errata. Please say "Y"
42           here if your platform uses T-HEAD CPU cores.
43
44           Otherwise, please say "N" here to avoid unnecessary overhead.
45
46 config ERRATA_THEAD_PBMT
47         bool "Apply T-Head memory type errata"
48         depends on ERRATA_THEAD && 64BIT
49         select RISCV_ALTERNATIVE_EARLY
50         default y
51         help
52           This will apply the memory type errata to handle the non-standard
53           memory type bits in page-table-entries on T-Head SoCs.
54
55           If you don't know what to do here, say "Y".
56
57 endmenu