]> git.ipfire.org Git - thirdparty/linux.git/blob - arch/csky/Kconfig
io_uring: reset -EBUSY error when io sq thread is waken up
[thirdparty/linux.git] / arch / csky / Kconfig
1 # SPDX-License-Identifier: GPL-2.0-only
2 config CSKY
3 def_bool y
4 select ARCH_32BIT_OFF_T
5 select ARCH_HAS_DMA_PREP_COHERENT
6 select ARCH_HAS_GCOV_PROFILE_ALL
7 select ARCH_HAS_SYNC_DMA_FOR_CPU
8 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
9 select ARCH_USE_BUILTIN_BSWAP
10 select ARCH_USE_QUEUED_RWLOCKS if NR_CPUS>2
11 select COMMON_CLK
12 select CLKSRC_MMIO
13 select CSKY_MPINTC if CPU_CK860
14 select CSKY_MP_TIMER if CPU_CK860
15 select CSKY_APB_INTC
16 select DMA_DIRECT_REMAP
17 select IRQ_DOMAIN
18 select HANDLE_DOMAIN_IRQ
19 select DW_APB_TIMER_OF
20 select GENERIC_IOREMAP
21 select GENERIC_LIB_ASHLDI3
22 select GENERIC_LIB_ASHRDI3
23 select GENERIC_LIB_LSHRDI3
24 select GENERIC_LIB_MULDI3
25 select GENERIC_LIB_CMPDI2
26 select GENERIC_LIB_UCMPDI2
27 select GENERIC_ALLOCATOR
28 select GENERIC_ATOMIC64
29 select GENERIC_CLOCKEVENTS
30 select GENERIC_CPU_DEVICES
31 select GENERIC_IRQ_CHIP
32 select GENERIC_IRQ_PROBE
33 select GENERIC_IRQ_SHOW
34 select GENERIC_IRQ_MULTI_HANDLER
35 select GENERIC_SCHED_CLOCK
36 select GENERIC_SMP_IDLE_THREAD
37 select GX6605S_TIMER if CPU_CK610
38 select HAVE_ARCH_TRACEHOOK
39 select HAVE_ARCH_AUDITSYSCALL
40 select HAVE_COPY_THREAD_TLS
41 select HAVE_DYNAMIC_FTRACE
42 select HAVE_DYNAMIC_FTRACE_WITH_REGS
43 select HAVE_FUNCTION_TRACER
44 select HAVE_FUNCTION_GRAPH_TRACER
45 select HAVE_FTRACE_MCOUNT_RECORD
46 select HAVE_KERNEL_GZIP
47 select HAVE_KERNEL_LZO
48 select HAVE_KERNEL_LZMA
49 select HAVE_KPROBES if !CPU_CK610
50 select HAVE_KPROBES_ON_FTRACE if !CPU_CK610
51 select HAVE_KRETPROBES if !CPU_CK610
52 select HAVE_PERF_EVENTS
53 select HAVE_PERF_REGS
54 select HAVE_PERF_USER_STACK_DUMP
55 select HAVE_DMA_CONTIGUOUS
56 select HAVE_REGS_AND_STACK_ACCESS_API
57 select HAVE_RSEQ
58 select HAVE_STACKPROTECTOR
59 select HAVE_SYSCALL_TRACEPOINTS
60 select MAY_HAVE_SPARSE_IRQ
61 select MODULES_USE_ELF_RELA if MODULES
62 select OF
63 select OF_EARLY_FLATTREE
64 select PERF_USE_VMALLOC if CPU_CK610
65 select RTC_LIB
66 select TIMER_OF
67 select USB_ARCH_HAS_EHCI
68 select USB_ARCH_HAS_OHCI
69 select GENERIC_PCI_IOMAP
70 select HAVE_PCI
71 select PCI_DOMAINS_GENERIC if PCI
72 select PCI_SYSCALL if PCI
73 select PCI_MSI if PCI
74
75 config LOCKDEP_SUPPORT
76 def_bool y
77
78 config ARCH_SUPPORTS_UPROBES
79 def_bool y if !CPU_CK610
80
81 config CPU_HAS_CACHEV2
82 bool
83
84 config CPU_HAS_FPUV2
85 bool
86
87 config CPU_HAS_HILO
88 bool
89
90 config CPU_HAS_TLBI
91 bool
92
93 config CPU_HAS_LDSTEX
94 bool
95 help
96 For SMP, CPU needs "ldex&stex" instructions for atomic operations.
97
98 config CPU_NEED_TLBSYNC
99 bool
100
101 config CPU_NEED_SOFTALIGN
102 bool
103
104 config CPU_NO_USER_BKPT
105 bool
106 help
107 For abiv2 we couldn't use "trap 1" as user space bkpt in gdbserver, because
108 abiv2 is 16/32bit instruction set and "trap 1" is 32bit.
109 So we need a 16bit instruction as user space bkpt, and it will cause an illegal
110 instruction exception.
111 In kernel we parse the *regs->pc to determine whether to send SIGTRAP or not.
112
113 config GENERIC_CALIBRATE_DELAY
114 def_bool y
115
116 config GENERIC_CSUM
117 def_bool y
118
119 config GENERIC_HWEIGHT
120 def_bool y
121
122 config MMU
123 def_bool y
124
125 config STACKTRACE_SUPPORT
126 def_bool y
127
128 config TIME_LOW_RES
129 def_bool y
130
131 config TRACE_IRQFLAGS_SUPPORT
132 def_bool y
133
134 config CPU_TLB_SIZE
135 int
136 default "128" if (CPU_CK610 || CPU_CK807 || CPU_CK810)
137 default "1024" if (CPU_CK860)
138
139 config CPU_ASID_BITS
140 int
141 default "8" if (CPU_CK610 || CPU_CK807 || CPU_CK810)
142 default "12" if (CPU_CK860)
143
144 config L1_CACHE_SHIFT
145 int
146 default "4" if (CPU_CK610)
147 default "5" if (CPU_CK807 || CPU_CK810)
148 default "6" if (CPU_CK860)
149
150 menu "Processor type and features"
151
152 choice
153 prompt "CPU MODEL"
154 default CPU_CK807
155
156 config CPU_CK610
157 bool "CSKY CPU ck610"
158 select CPU_NEED_TLBSYNC
159 select CPU_NEED_SOFTALIGN
160 select CPU_NO_USER_BKPT
161
162 config CPU_CK810
163 bool "CSKY CPU ck810"
164 select CPU_HAS_HILO
165 select CPU_NEED_TLBSYNC
166
167 config CPU_CK807
168 bool "CSKY CPU ck807"
169 select CPU_HAS_HILO
170
171 config CPU_CK860
172 bool "CSKY CPU ck860"
173 select CPU_HAS_TLBI
174 select CPU_HAS_CACHEV2
175 select CPU_HAS_LDSTEX
176 select CPU_HAS_FPUV2
177 endchoice
178
179 choice
180 prompt "C-SKY PMU type"
181 depends on PERF_EVENTS
182 depends on CPU_CK807 || CPU_CK810 || CPU_CK860
183
184 config CPU_PMU_NONE
185 bool "None"
186
187 config CSKY_PMU_V1
188 bool "Performance Monitoring Unit Ver.1"
189
190 endchoice
191
192 choice
193 prompt "Power Manager Instruction (wait/doze/stop)"
194 default CPU_PM_NONE
195
196 config CPU_PM_NONE
197 bool "None"
198
199 config CPU_PM_WAIT
200 bool "wait"
201
202 config CPU_PM_DOZE
203 bool "doze"
204
205 config CPU_PM_STOP
206 bool "stop"
207 endchoice
208
209 menuconfig HAVE_TCM
210 bool "Tightly-Coupled/Sram Memory"
211 select GENERIC_ALLOCATOR
212 help
213 The implementation are not only used by TCM (Tightly-Coupled Meory)
214 but also used by sram on SOC bus. It follow existed linux tcm
215 software interface, so that old tcm application codes could be
216 re-used directly.
217
218 if HAVE_TCM
219 config ITCM_RAM_BASE
220 hex "ITCM ram base"
221 default 0xffffffff
222
223 config ITCM_NR_PAGES
224 int "Page count of ITCM size: NR*4KB"
225 range 1 256
226 default 32
227
228 config HAVE_DTCM
229 bool "DTCM Support"
230
231 config DTCM_RAM_BASE
232 hex "DTCM ram base"
233 depends on HAVE_DTCM
234 default 0xffffffff
235
236 config DTCM_NR_PAGES
237 int "Page count of DTCM size: NR*4KB"
238 depends on HAVE_DTCM
239 range 1 256
240 default 32
241 endif
242
243 config CPU_HAS_VDSP
244 bool "CPU has VDSP coprocessor"
245 depends on CPU_HAS_FPU && CPU_HAS_FPUV2
246
247 config CPU_HAS_FPU
248 bool "CPU has FPU coprocessor"
249 depends on CPU_CK807 || CPU_CK810 || CPU_CK860
250
251 config CPU_HAS_ICACHE_INS
252 bool "CPU has Icache invalidate instructions"
253 depends on CPU_HAS_CACHEV2
254
255 config CPU_HAS_TEE
256 bool "CPU has Trusted Execution Environment"
257 depends on CPU_CK810
258
259 config SMP
260 bool "Symmetric Multi-Processing (SMP) support for C-SKY"
261 depends on CPU_CK860
262 default n
263
264 config NR_CPUS
265 int "Maximum number of CPUs (2-32)"
266 range 2 32
267 depends on SMP
268 default "2"
269
270 config HIGHMEM
271 bool "High Memory Support"
272 depends on !CPU_CK610
273 default y
274
275 config FORCE_MAX_ZONEORDER
276 int "Maximum zone order"
277 default "11"
278
279 config RAM_BASE
280 hex "DRAM start addr (the same with memory-section in dts)"
281 default 0x0
282
283 config HOTPLUG_CPU
284 bool "Support for hot-pluggable CPUs"
285 select GENERIC_IRQ_MIGRATION
286 depends on SMP
287 help
288 Say Y here to allow turning CPUs off and on. CPUs can be
289 controlled through /sys/devices/system/cpu/cpu1/hotplug/target.
290
291 Say N if you want to disable CPU hotplug.
292 endmenu
293
294 source "arch/csky/Kconfig.platforms"
295
296 source "kernel/Kconfig.hz"