hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/mips/Kconfig
....@@ -2,37 +2,43 @@
22 config MIPS
33 bool
44 default y
5
- select ARCH_BINFMT_ELF_STATE
6
- select ARCH_CLOCKSOURCE_DATA
7
- select ARCH_DISCARD_MEMBLOCK
8
- select ARCH_HAS_ELF_RANDOMIZE
5
+ select ARCH_32BIT_OFF_T if !64BIT
6
+ select ARCH_BINFMT_ELF_STATE if MIPS_FP_SUPPORT
7
+ select ARCH_HAS_FORTIFY_SOURCE
8
+ select ARCH_HAS_KCOV
9
+ select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE if !EVA
10
+ select ARCH_HAS_PTE_SPECIAL if !(32BIT && CPU_HAS_RIXI)
911 select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
12
+ select ARCH_HAS_UBSAN_SANITIZE_ALL
1013 select ARCH_SUPPORTS_UPROBES
1114 select ARCH_USE_BUILTIN_BSWAP
1215 select ARCH_USE_CMPXCHG_LOCKREF if 64BIT
1316 select ARCH_USE_QUEUED_RWLOCKS
1417 select ARCH_USE_QUEUED_SPINLOCKS
18
+ select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
1519 select ARCH_WANT_IPC_PARSE_VERSION
16
- select BUILDTIME_EXTABLE_SORT
20
+ select BUILDTIME_TABLE_SORT
1721 select CLONE_BACKWARDS
22
+ select CPU_NO_EFFICIENT_FFS if (TARGET_ISA_REV < 1)
1823 select CPU_PM if CPU_IDLE
19
- select DMA_DIRECT_OPS
2024 select GENERIC_ATOMIC64 if !64BIT
2125 select GENERIC_CLOCKEVENTS
2226 select GENERIC_CMOS_UPDATE
2327 select GENERIC_CPU_AUTOPROBE
2428 select GENERIC_GETTIMEOFDAY
29
+ select GENERIC_IOMAP
2530 select GENERIC_IRQ_PROBE
2631 select GENERIC_IRQ_SHOW
32
+ select GENERIC_ISA_DMA if EISA
2733 select GENERIC_LIB_ASHLDI3
2834 select GENERIC_LIB_ASHRDI3
2935 select GENERIC_LIB_CMPDI2
3036 select GENERIC_LIB_LSHRDI3
3137 select GENERIC_LIB_UCMPDI2
32
- select GENERIC_PCI_IOMAP
3338 select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC
3439 select GENERIC_SMP_IDLE_THREAD
3540 select GENERIC_TIME_VSYSCALL
41
+ select GUP_GET_PTE_LOW_HIGH if CPU_MIPS32 && PHYS_ADDR_T_64BIT
3642 select HANDLE_DOMAIN_IRQ
3743 select HAVE_ARCH_COMPILER_H
3844 select HAVE_ARCH_JUMP_LABEL
....@@ -41,73 +47,100 @@
4147 select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT
4248 select HAVE_ARCH_SECCOMP_FILTER
4349 select HAVE_ARCH_TRACEHOOK
44
- select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES && 64BIT
45
- select HAVE_CBPF_JIT if (!64BIT && !CPU_MICROMIPS)
46
- select HAVE_EBPF_JIT if (64BIT && !CPU_MICROMIPS)
50
+ select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES
51
+ select HAVE_ASM_MODVERSIONS
52
+ select HAVE_CBPF_JIT if !64BIT && !CPU_MICROMIPS
4753 select HAVE_CONTEXT_TRACKING
48
- select HAVE_COPY_THREAD_TLS
54
+ select HAVE_TIF_NOHZ
4955 select HAVE_C_RECORDMCOUNT
5056 select HAVE_DEBUG_KMEMLEAK
5157 select HAVE_DEBUG_STACKOVERFLOW
5258 select HAVE_DMA_CONTIGUOUS
5359 select HAVE_DYNAMIC_FTRACE
60
+ select HAVE_EBPF_JIT if 64BIT && !CPU_MICROMIPS && TARGET_ISA_REV >= 2
5461 select HAVE_EXIT_THREAD
62
+ select HAVE_FAST_GUP
5563 select HAVE_FTRACE_MCOUNT_RECORD
5664 select HAVE_FUNCTION_GRAPH_TRACER
5765 select HAVE_FUNCTION_TRACER
58
- select HAVE_GENERIC_DMA_COHERENT
66
+ select HAVE_GCC_PLUGINS
67
+ select HAVE_GENERIC_VDSO
5968 select HAVE_IDE
69
+ select HAVE_IOREMAP_PROT
6070 select HAVE_IRQ_EXIT_ON_IRQ_STACK
6171 select HAVE_IRQ_TIME_ACCOUNTING
6272 select HAVE_KPROBES
6373 select HAVE_KRETPROBES
64
- select HAVE_MEMBLOCK
65
- select HAVE_MEMBLOCK_NODE_MAP
74
+ select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
6675 select HAVE_MOD_ARCH_SPECIFIC
6776 select HAVE_NMI
6877 select HAVE_OPROFILE
6978 select HAVE_PERF_EVENTS
7079 select HAVE_REGS_AND_STACK_ACCESS_API
7180 select HAVE_RSEQ
81
+ select HAVE_SPARSE_SYSCALL_NR
7282 select HAVE_STACKPROTECTOR
7383 select HAVE_SYSCALL_TRACEPOINTS
7484 select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP
75
- select HAVE_GENERIC_VDSO
7685 select IRQ_FORCED_THREADING
77
- select MODULES_USE_ELF_RELA if MODULES && 64BIT
86
+ select ISA if EISA
7887 select MODULES_USE_ELF_REL if MODULES
88
+ select MODULES_USE_ELF_RELA if MODULES && 64BIT
7989 select PERF_USE_VMALLOC
80
- select RTC_LIB if !MACH_LOONGSON64
90
+ select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
91
+ select RTC_LIB
92
+ select SET_FS
8193 select SYSCTL_EXCEPTION_TRACE
8294 select VIRT_TO_BUS
95
+
96
+config MIPS_FIXUP_BIGPHYS_ADDR
97
+ bool
98
+
99
+config MIPS_GENERIC
100
+ bool
101
+
102
+config MACH_INGENIC
103
+ bool
104
+ select SYS_SUPPORTS_32BIT_KERNEL
105
+ select SYS_SUPPORTS_LITTLE_ENDIAN
106
+ select SYS_SUPPORTS_ZBOOT
107
+ select DMA_NONCOHERENT
108
+ select IRQ_MIPS_CPU
109
+ select PINCTRL
110
+ select GPIOLIB
111
+ select COMMON_CLK
112
+ select GENERIC_IRQ_CHIP
113
+ select BUILTIN_DTB if MIPS_NO_APPENDED_DTB
114
+ select USE_OF
115
+ select CPU_SUPPORTS_CPUFREQ
116
+ select MIPS_EXTERNAL_TIMER
83117
84118 menu "Machine selection"
85119
86120 choice
87121 prompt "System type"
88
- default MIPS_GENERIC
122
+ default MIPS_GENERIC_KERNEL
89123
90
-config MIPS_GENERIC
124
+config MIPS_GENERIC_KERNEL
91125 bool "Generic board-agnostic MIPS kernel"
126
+ select MIPS_GENERIC
92127 select BOOT_RAW
93128 select BUILTIN_DTB
94129 select CEVT_R4K
95130 select CLKSRC_MIPS_GIC
96131 select COMMON_CLK
97
- select CPU_MIPSR2_IRQ_VI
98132 select CPU_MIPSR2_IRQ_EI
133
+ select CPU_MIPSR2_IRQ_VI
99134 select CSRC_R4K
100135 select DMA_PERDEV_COHERENT
101
- select HW_HAS_PCI
136
+ select HAVE_PCI
102137 select IRQ_MIPS_CPU
103
- select LIBFDT
104138 select MIPS_AUTO_PFN_OFFSET
105139 select MIPS_CPU_SCACHE
106140 select MIPS_GIC
107141 select MIPS_L1_CACHE_SHIFT_7
108142 select NO_EXCEPT_FILL
109143 select PCI_DRIVERS_GENERIC
110
- select PINCTRL
111144 select SMP_UP if SMP
112145 select SWAP_IO_SPACE
113146 select SYS_HAS_CPU_MIPS32_R1
....@@ -122,11 +155,13 @@
122155 select SYS_SUPPORTS_HIGHMEM
123156 select SYS_SUPPORTS_LITTLE_ENDIAN
124157 select SYS_SUPPORTS_MICROMIPS
125
- select SYS_SUPPORTS_MIPS_CPS
126158 select SYS_SUPPORTS_MIPS16
159
+ select SYS_SUPPORTS_MIPS_CPS
127160 select SYS_SUPPORTS_MULTITHREADING
128161 select SYS_SUPPORTS_RELOCATABLE
129162 select SYS_SUPPORTS_SMARTMIPS
163
+ select SYS_SUPPORTS_ZBOOT
164
+ select UHI_BOOT
130165 select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
131166 select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
132167 select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
....@@ -147,6 +182,7 @@
147182 select CSRC_R4K
148183 select IRQ_MIPS_CPU
149184 select DMA_MAYBE_COHERENT # Au1000,1500,1100 aren't, rest is
185
+ select MIPS_FIXUP_BIGPHYS_ADDR if PCI
150186 select SYS_HAS_CPU_MIPS32_R1
151187 select SYS_SUPPORTS_32BIT_KERNEL
152188 select SYS_SUPPORTS_APM_EMULATION
....@@ -171,7 +207,7 @@
171207 select SYS_SUPPORTS_ZBOOT_UART16550
172208 select GPIOLIB
173209 select VLYNQ
174
- select HAVE_CLK
210
+ select HAVE_LEGACY_CLK
175211 help
176212 Support for the Texas Instruments AR7 System-on-a-Chip
177213 family: TNETD7100, 7200 and 7300.
....@@ -199,11 +235,8 @@
199235 select DMA_NONCOHERENT
200236 select GPIOLIB
201237 select PINCTRL
202
- select HAVE_CLK
203238 select COMMON_CLK
204
- select CLKDEV_LOOKUP
205239 select IRQ_MIPS_CPU
206
- select MIPS_MACHINE
207240 select SYS_HAS_CPU_MIPS32_R2
208241 select SYS_HAS_EARLY_PRINTK
209242 select SYS_SUPPORTS_32BIT_KERNEL
....@@ -258,7 +291,7 @@
258291 select CEVT_R4K
259292 select CSRC_R4K
260293 select DMA_NONCOHERENT
261
- select HW_HAS_PCI
294
+ select HAVE_PCI
262295 select IRQ_MIPS_CPU
263296 select SYS_HAS_CPU_MIPS32_R1
264297 select NO_EXCEPT_FILL
....@@ -274,7 +307,7 @@
274307 select BCM47XX_SPROM
275308 select BCM47XX_SSB if !BCM47XX_BCMA
276309 help
277
- Support for BCM47XX based boards
310
+ Support for BCM47XX based boards
278311
279312 config BCM63XX
280313 bool "Broadcom BCM63XX based boards"
....@@ -292,11 +325,11 @@
292325 select SYS_HAS_CPU_BMIPS4380
293326 select SWAP_IO_SPACE
294327 select GPIOLIB
295
- select HAVE_CLK
296328 select MIPS_L1_CACHE_SHIFT_4
297329 select CLKDEV_LOOKUP
330
+ select HAVE_LEGACY_CLK
298331 help
299
- Support for BCM63XX based boards
332
+ Support for BCM63XX based boards
300333
301334 config MIPS_COBALT
302335 bool "Cobalt Server"
....@@ -304,13 +337,12 @@
304337 select CSRC_R4K
305338 select CEVT_GT641XX
306339 select DMA_NONCOHERENT
307
- select HW_HAS_PCI
340
+ select FORCE_PCI
308341 select I8253
309342 select I8259
310343 select IRQ_MIPS_CPU
311344 select IRQ_GT641XX
312345 select PCI_GT64XXX_PCI0
313
- select PCI
314346 select SYS_HAS_CPU_NEVADA
315347 select SYS_HAS_EARLY_PRINTK
316348 select SYS_SUPPORTS_32BIT_KERNEL
....@@ -357,8 +389,11 @@
357389
358390 config MACH_JAZZ
359391 bool "Jazz family of machines"
392
+ select ARC_MEMORY
393
+ select ARC_PROMLIB
360394 select ARCH_MIGHT_HAVE_PC_PARPORT
361395 select ARCH_MIGHT_HAVE_PC_SERIO
396
+ select DMA_OPS
362397 select FW_ARC
363398 select FW_ARC32
364399 select ARCH_MAY_HAVE_PC_FDC
....@@ -376,25 +411,18 @@
376411 select SYS_SUPPORTS_64BIT_KERNEL
377412 select SYS_SUPPORTS_100HZ
378413 help
379
- This a family of machines based on the MIPS R4030 chipset which was
380
- used by several vendors to build RISC/os and Windows NT workstations.
381
- Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and
382
- Olivetti M700-10 workstations.
414
+ This a family of machines based on the MIPS R4030 chipset which was
415
+ used by several vendors to build RISC/os and Windows NT workstations.
416
+ Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and
417
+ Olivetti M700-10 workstations.
383418
384
-config MACH_INGENIC
419
+config MACH_INGENIC_SOC
385420 bool "Ingenic SoC based machines"
386
- select SYS_SUPPORTS_32BIT_KERNEL
387
- select SYS_SUPPORTS_LITTLE_ENDIAN
421
+ select MIPS_GENERIC
422
+ select MACH_INGENIC
388423 select SYS_SUPPORTS_ZBOOT_UART16550
389
- select DMA_NONCOHERENT
390
- select IRQ_MIPS_CPU
391
- select PINCTRL
392
- select GPIOLIB
393
- select COMMON_CLK
394
- select GENERIC_IRQ_CHIP
395
- select BUILTIN_DTB
396
- select USE_OF
397
- select LIBFDT
424
+ select CPU_SUPPORTS_CPUFREQ
425
+ select MIPS_EXTERNAL_TIMER
398426
399427 config LANTIQ
400428 bool "Lantiq based platforms"
....@@ -414,31 +442,15 @@
414442 select SWAP_IO_SPACE
415443 select BOOT_RAW
416444 select CLKDEV_LOOKUP
445
+ select HAVE_LEGACY_CLK
417446 select USE_OF
418447 select PINCTRL
419448 select PINCTRL_LANTIQ
420449 select ARCH_HAS_RESET_CONTROLLER
421450 select RESET_CONTROLLER
422451
423
-config LASAT
424
- bool "LASAT Networks platforms"
425
- select CEVT_R4K
426
- select CRC32
427
- select CSRC_R4K
428
- select DMA_NONCOHERENT
429
- select SYS_HAS_EARLY_PRINTK
430
- select HW_HAS_PCI
431
- select IRQ_MIPS_CPU
432
- select PCI_GT64XXX_PCI0
433
- select MIPS_NILE4
434
- select R5000_CPU_SCACHE
435
- select SYS_HAS_CPU_R5000
436
- select SYS_SUPPORTS_32BIT_KERNEL
437
- select SYS_SUPPORTS_64BIT_KERNEL if BROKEN
438
- select SYS_SUPPORTS_LITTLE_ENDIAN
439
-
440452 config MACH_LOONGSON32
441
- bool "Loongson-1 family of machines"
453
+ bool "Loongson 32-bit family of machines"
442454 select SYS_SUPPORTS_ZBOOT
443455 help
444456 This enables support for the Loongson-1 family of machines.
....@@ -447,18 +459,54 @@
447459 the Institute of Computing Technology (ICT), Chinese Academy of
448460 Sciences (CAS).
449461
450
-config MACH_LOONGSON64
451
- bool "Loongson-2/3 family of machines"
462
+config MACH_LOONGSON2EF
463
+ bool "Loongson-2E/F family of machines"
452464 select SYS_SUPPORTS_ZBOOT
465
+ help
466
+ This enables the support of early Loongson-2E/F family of machines.
467
+
468
+config MACH_LOONGSON64
469
+ bool "Loongson 64-bit family of machines"
470
+ select ARCH_SPARSEMEM_ENABLE
471
+ select ARCH_MIGHT_HAVE_PC_PARPORT
472
+ select ARCH_MIGHT_HAVE_PC_SERIO
473
+ select GENERIC_ISA_DMA_SUPPORT_BROKEN
474
+ select BOOT_ELF32
475
+ select BOARD_SCACHE
476
+ select CSRC_R4K
477
+ select CEVT_R4K
478
+ select CPU_HAS_WB
479
+ select FORCE_PCI
480
+ select ISA
481
+ select I8259
482
+ select IRQ_MIPS_CPU
483
+ select NO_EXCEPT_FILL
484
+ select NR_CPUS_DEFAULT_64
485
+ select USE_GENERIC_EARLY_PRINTK_8250
486
+ select PCI_DRIVERS_GENERIC
487
+ select SYS_HAS_CPU_LOONGSON64
488
+ select SYS_HAS_EARLY_PRINTK
489
+ select SYS_SUPPORTS_SMP
490
+ select SYS_SUPPORTS_HOTPLUG_CPU
491
+ select SYS_SUPPORTS_NUMA
492
+ select SYS_SUPPORTS_64BIT_KERNEL
493
+ select SYS_SUPPORTS_HIGHMEM
494
+ select SYS_SUPPORTS_LITTLE_ENDIAN
495
+ select SYS_SUPPORTS_ZBOOT
496
+ select ZONE_DMA32
497
+ select NUMA
498
+ select SMP
499
+ select COMMON_CLK
500
+ select USE_OF
501
+ select BUILTIN_DTB
502
+ select PCI_HOST_GENERIC
453503 help
454504 This enables the support of Loongson-2/3 family of machines.
455505
456
- Loongson-2 is a family of single-core CPUs and Loongson-3 is a
457
- family of multi-core CPUs. They are both 64-bit general-purpose
458
- MIPS-compatible CPUs. Loongson-2/3 are developed by the Institute
459
- of Computing Technology (ICT), Chinese Academy of Sciences (CAS)
460
- in the People's Republic of China. The chief architect is Professor
461
- Weiwu Hu.
506
+ Loongson-2 and Loongson-3 are 64-bit general-purpose processors with
507
+ GS264/GS464/GS464E/GS464V microarchitecture (except old Loongson-2E
508
+ and Loongson-2F which will be removed), developed by the Institute
509
+ of Computing Technology (ICT), Chinese Academy of Sciences (CAS).
462510
463511 config MACH_PISTACHIO
464512 bool "IMG Pistachio SoC based boards"
....@@ -471,7 +519,6 @@
471519 select DMA_NONCOHERENT
472520 select GPIOLIB
473521 select IRQ_MIPS_CPU
474
- select LIBFDT
475522 select MFD_SYSCON
476523 select MIPS_CPU_SCACHE
477524 select MIPS_GIC
....@@ -499,22 +546,22 @@
499546 select BOOT_RAW
500547 select BUILTIN_DTB
501548 select CEVT_R4K
502
- select CSRC_R4K
503549 select CLKSRC_MIPS_GIC
504550 select COMMON_CLK
551
+ select CSRC_R4K
505552 select DMA_MAYBE_COHERENT
506553 select GENERIC_ISA_DMA
507554 select HAVE_PCSPKR_PLATFORM
508
- select IRQ_MIPS_CPU
509
- select MIPS_GIC
510
- select HW_HAS_PCI
555
+ select HAVE_PCI
511556 select I8253
512557 select I8259
558
+ select IRQ_MIPS_CPU
513559 select MIPS_BONITO64
514560 select MIPS_CPU_SCACHE
561
+ select MIPS_GIC
515562 select MIPS_L1_CACHE_SHIFT_6
516
- select PCI_GT64XXX_PCI0
517563 select MIPS_MSC
564
+ select PCI_GT64XXX_PCI0
518565 select SMP_UP if SMP
519566 select SWAP_IO_SPACE
520567 select SYS_HAS_CPU_MIPS32_R1
....@@ -533,19 +580,17 @@
533580 select SYS_SUPPORTS_HIGHMEM
534581 select SYS_SUPPORTS_LITTLE_ENDIAN
535582 select SYS_SUPPORTS_MICROMIPS
583
+ select SYS_SUPPORTS_MIPS16
536584 select SYS_SUPPORTS_MIPS_CMP
537585 select SYS_SUPPORTS_MIPS_CPS
538
- select SYS_SUPPORTS_MIPS16
539586 select SYS_SUPPORTS_MULTITHREADING
587
+ select SYS_SUPPORTS_RELOCATABLE
540588 select SYS_SUPPORTS_SMARTMIPS
541589 select SYS_SUPPORTS_VPE_LOADER
542590 select SYS_SUPPORTS_ZBOOT
543
- select SYS_SUPPORTS_RELOCATABLE
544591 select USE_OF
545
- select LIBFDT
592
+ select WAR_ICACHE_REFILLS
546593 select ZONE_DMA32 if 64BIT
547
- select BUILTIN_DTB
548
- select LIBFDT
549594 help
550595 This enables support for the MIPS Technologies Malta evaluation
551596 board.
....@@ -558,13 +603,6 @@
558603 Microchip PIC32 is a family of general-purpose 32 bit MIPS core
559604 microcontrollers.
560605
561
-config NEC_MARKEINS
562
- bool "NEC EMMA2RH Mark-eins board"
563
- select SOC_EMMA2RH
564
- select HW_HAS_PCI
565
- help
566
- This enables support for the NEC Electronics Mark-eins boards.
567
-
568606 config MACH_VR41XX
569607 bool "NEC VR4100 series based machines"
570608 select CEVT_R4K
....@@ -572,43 +610,6 @@
572610 select SYS_HAS_CPU_VR41XX
573611 select SYS_SUPPORTS_MIPS16
574612 select GPIOLIB
575
-
576
-config NXP_STB220
577
- bool "NXP STB220 board"
578
- select SOC_PNX833X
579
- help
580
- Support for NXP Semiconductors STB220 Development Board.
581
-
582
-config NXP_STB225
583
- bool "NXP 225 board"
584
- select SOC_PNX833X
585
- select SOC_PNX8335
586
- help
587
- Support for NXP Semiconductors STB225 Development Board.
588
-
589
-config PMC_MSP
590
- bool "PMC-Sierra MSP chipsets"
591
- select CEVT_R4K
592
- select CSRC_R4K
593
- select DMA_NONCOHERENT
594
- select SWAP_IO_SPACE
595
- select NO_EXCEPT_FILL
596
- select BOOT_RAW
597
- select SYS_HAS_CPU_MIPS32_R1
598
- select SYS_HAS_CPU_MIPS32_R2
599
- select SYS_SUPPORTS_32BIT_KERNEL
600
- select SYS_SUPPORTS_BIG_ENDIAN
601
- select SYS_SUPPORTS_MIPS16
602
- select IRQ_MIPS_CPU
603
- select SERIAL_8250
604
- select SERIAL_8250_CONSOLE
605
- select USB_EHCI_BIG_ENDIAN_MMIO
606
- select USB_EHCI_BIG_ENDIAN_DESC
607
- help
608
- This adds support for the PMC-Sierra family of Multi-Service
609
- Processor System-On-A-Chips. These parts include a number
610
- of integrated peripherals, interfaces and DSPs in addition to
611
- a variety of MIPS cores.
612613
613614 config RALINK
614615 bool "Ralink based machines"
....@@ -623,6 +624,7 @@
623624 select SYS_SUPPORTS_32BIT_KERNEL
624625 select SYS_SUPPORTS_LITTLE_ENDIAN
625626 select SYS_SUPPORTS_MIPS16
627
+ select SYS_SUPPORTS_ZBOOT
626628 select SYS_HAS_EARLY_PRINTK
627629 select CLKDEV_LOOKUP
628630 select ARCH_HAS_RESET_CONTROLLER
....@@ -630,6 +632,8 @@
630632
631633 config SGI_IP22
632634 bool "SGI IP22 (Indy/Indigo2)"
635
+ select ARC_MEMORY
636
+ select ARC_PROMLIB
633637 select FW_ARC
634638 select FW_ARC32
635639 select ARCH_MIGHT_HAVE_PC_SERIO
....@@ -638,7 +642,7 @@
638642 select CSRC_R4K
639643 select DEFAULT_SGI_PARTITION
640644 select DMA_NONCOHERENT
641
- select HW_HAS_EISA
645
+ select HAVE_EISA
642646 select I8253
643647 select I8259
644648 select IP22_CPU_SCACHE
....@@ -653,17 +657,13 @@
653657 select SWAP_IO_SPACE
654658 select SYS_HAS_CPU_R4X00
655659 select SYS_HAS_CPU_R5000
656
- #
657
- # Disable EARLY_PRINTK for now since it leads to overwritten prom
658
- # memory during early boot on some machines.
659
- #
660
- # See http://www.linux-mips.org/cgi-bin/mesg.cgi?a=linux-mips&i=20091119164009.GA15038%40deprecation.cyrius.com
661
- # for a more details discussion
662
- #
663
- # select SYS_HAS_EARLY_PRINTK
660
+ select SYS_HAS_EARLY_PRINTK
664661 select SYS_SUPPORTS_32BIT_KERNEL
665662 select SYS_SUPPORTS_64BIT_KERNEL
666663 select SYS_SUPPORTS_BIG_ENDIAN
664
+ select WAR_R4600_V1_INDEX_ICACHEOP
665
+ select WAR_R4600_V1_HIT_CACHEOP
666
+ select WAR_R4600_V2_HIT_CACHEOP
667667 select MIPS_L1_CACHE_SHIFT_7
668668 help
669669 This are the SGI Indy, Challenge S and Indigo2, as well as certain
....@@ -673,19 +673,27 @@
673673 config SGI_IP27
674674 bool "SGI IP27 (Origin200/2000)"
675675 select ARCH_HAS_PHYS_TO_DMA
676
+ select ARCH_SPARSEMEM_ENABLE
676677 select FW_ARC
677678 select FW_ARC64
679
+ select ARC_CMDLINE_ONLY
678680 select BOOT_ELF64
679681 select DEFAULT_SGI_PARTITION
680682 select SYS_HAS_EARLY_PRINTK
681
- select HW_HAS_PCI
683
+ select HAVE_PCI
684
+ select IRQ_MIPS_CPU
685
+ select IRQ_DOMAIN_HIERARCHY
682686 select NR_CPUS_DEFAULT_64
687
+ select PCI_DRIVERS_GENERIC
688
+ select PCI_XTALK_BRIDGE
683689 select SYS_HAS_CPU_R10000
684690 select SYS_SUPPORTS_64BIT_KERNEL
685691 select SYS_SUPPORTS_BIG_ENDIAN
686692 select SYS_SUPPORTS_NUMA
687693 select SYS_SUPPORTS_SMP
694
+ select WAR_R10000_LLSC
688695 select MIPS_L1_CACHE_SHIFT_7
696
+ select NUMA
689697 help
690698 This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics
691699 workstations. To compile a Linux kernel that runs on these, say Y
....@@ -693,6 +701,8 @@
693701
694702 config SGI_IP28
695703 bool "SGI IP28 (Indigo2 R10k)"
704
+ select ARC_MEMORY
705
+ select ARC_PROMLIB
696706 select FW_ARC
697707 select FW_ARC64
698708 select ARCH_MIGHT_HAVE_PC_SERIO
....@@ -703,7 +713,7 @@
703713 select DMA_NONCOHERENT
704714 select GENERIC_ISA_DMA_SUPPORT_BROKEN
705715 select IRQ_MIPS_CPU
706
- select HW_HAS_EISA
716
+ select HAVE_EISA
707717 select I8253
708718 select I8259
709719 select SGI_HAS_I8042
....@@ -714,23 +724,47 @@
714724 select SGI_HAS_ZILOG
715725 select SWAP_IO_SPACE
716726 select SYS_HAS_CPU_R10000
717
- #
718
- # Disable EARLY_PRINTK for now since it leads to overwritten prom
719
- # memory during early boot on some machines.
720
- #
721
- # See http://www.linux-mips.org/cgi-bin/mesg.cgi?a=linux-mips&i=20091119164009.GA15038%40deprecation.cyrius.com
722
- # for a more details discussion
723
- #
724
- # select SYS_HAS_EARLY_PRINTK
727
+ select SYS_HAS_EARLY_PRINTK
725728 select SYS_SUPPORTS_64BIT_KERNEL
726729 select SYS_SUPPORTS_BIG_ENDIAN
730
+ select WAR_R10000_LLSC
727731 select MIPS_L1_CACHE_SHIFT_7
728
- help
729
- This is the SGI Indigo2 with R10000 processor. To compile a Linux
730
- kernel that runs on these, say Y here.
732
+ help
733
+ This is the SGI Indigo2 with R10000 processor. To compile a Linux
734
+ kernel that runs on these, say Y here.
735
+
736
+config SGI_IP30
737
+ bool "SGI IP30 (Octane/Octane2)"
738
+ select ARCH_HAS_PHYS_TO_DMA
739
+ select FW_ARC
740
+ select FW_ARC64
741
+ select BOOT_ELF64
742
+ select CEVT_R4K
743
+ select CSRC_R4K
744
+ select SYNC_R4K if SMP
745
+ select ZONE_DMA32
746
+ select HAVE_PCI
747
+ select IRQ_MIPS_CPU
748
+ select IRQ_DOMAIN_HIERARCHY
749
+ select NR_CPUS_DEFAULT_2
750
+ select PCI_DRIVERS_GENERIC
751
+ select PCI_XTALK_BRIDGE
752
+ select SYS_HAS_EARLY_PRINTK
753
+ select SYS_HAS_CPU_R10000
754
+ select SYS_SUPPORTS_64BIT_KERNEL
755
+ select SYS_SUPPORTS_BIG_ENDIAN
756
+ select SYS_SUPPORTS_SMP
757
+ select WAR_R10000_LLSC
758
+ select MIPS_L1_CACHE_SHIFT_7
759
+ select ARC_MEMORY
760
+ help
761
+ These are the SGI Octane and Octane2 graphics workstations. To
762
+ compile a Linux kernel that runs on these, say Y here.
731763
732764 config SGI_IP32
733765 bool "SGI IP32 (O2)"
766
+ select ARC_MEMORY
767
+ select ARC_PROMLIB
734768 select ARCH_HAS_PHYS_TO_DMA
735769 select FW_ARC
736770 select FW_ARC32
....@@ -738,7 +772,7 @@
738772 select CEVT_R4K
739773 select CSRC_R4K
740774 select DMA_NONCOHERENT
741
- select HW_HAS_PCI
775
+ select HAVE_PCI
742776 select IRQ_MIPS_CPU
743777 select R5000_CPU_SCACHE
744778 select RM7000_CPU_SCACHE
....@@ -748,6 +782,7 @@
748782 select SYS_HAS_CPU_NEVADA
749783 select SYS_SUPPORTS_64BIT_KERNEL
750784 select SYS_SUPPORTS_BIG_ENDIAN
785
+ select WAR_ICACHE_REFILLS
751786 help
752787 If you want this kernel to run on SGI O2 workstation, say Y here.
753788
....@@ -838,6 +873,8 @@
838873
839874 config SNI_RM
840875 bool "SNI RM200/300/400"
876
+ select ARC_MEMORY
877
+ select ARC_PROMLIB
841878 select FW_ARC if CPU_LITTLE_ENDIAN
842879 select FW_ARC32 if CPU_LITTLE_ENDIAN
843880 select FW_SNIPROM if CPU_BIG_ENDIAN
....@@ -850,9 +887,9 @@
850887 select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
851888 select DMA_NONCOHERENT
852889 select GENERIC_ISA_DMA
890
+ select HAVE_EISA
853891 select HAVE_PCSPKR_PLATFORM
854
- select HW_HAS_EISA
855
- select HW_HAS_PCI
892
+ select HAVE_PCI
856893 select IRQ_MIPS_CPU
857894 select I8253
858895 select I8259
....@@ -869,6 +906,7 @@
869906 select SYS_SUPPORTS_BIG_ENDIAN
870907 select SYS_SUPPORTS_HIGHMEM
871908 select SYS_SUPPORTS_LITTLE_ENDIAN
909
+ select WAR_R4600_V2_HIT_CACHEOP
872910 help
873911 The SNI RM200/300/400 are MIPS-based machines manufactured by
874912 Siemens Nixdorf Informationssysteme (SNI), parent company of Pyramid
....@@ -880,13 +918,14 @@
880918
881919 config MACH_TX49XX
882920 bool "Toshiba TX49 series based machines"
921
+ select WAR_TX49XX_ICACHE_INDEX_INV
883922
884923 config MIKROTIK_RB532
885924 bool "Mikrotik RB532 boards"
886925 select CEVT_R4K
887926 select CSRC_R4K
888927 select DMA_NONCOHERENT
889
- select HW_HAS_PCI
928
+ select HAVE_PCI
890929 select IRQ_MIPS_CPU
891930 select SYS_HAS_CPU_MIPS32_R1
892931 select SYS_SUPPORTS_32BIT_KERNEL
....@@ -903,7 +942,7 @@
903942 bool "Cavium Networks Octeon SoC based boards"
904943 select CEVT_R4K
905944 select ARCH_HAS_PHYS_TO_DMA
906
- select HAS_RAPIDIO
945
+ select HAVE_RAPIDIO
907946 select PHYS_ADDR_T_64BIT
908947 select SYS_SUPPORTS_64BIT_KERNEL
909948 select SYS_SUPPORTS_BIG_ENDIAN
....@@ -913,11 +952,13 @@
913952 select SYS_SUPPORTS_HOTPLUG_CPU if CPU_BIG_ENDIAN
914953 select SYS_HAS_EARLY_PRINTK
915954 select SYS_HAS_CPU_CAVIUM_OCTEON
916
- select HW_HAS_PCI
955
+ select HAVE_PCI
956
+ select HAVE_PLAT_DELAY
957
+ select HAVE_PLAT_FW_INIT_CMDLINE
958
+ select HAVE_PLAT_MEMCPY
917959 select ZONE_DMA32
918960 select HOLES_IN_ZONE
919961 select GPIOLIB
920
- select LIBFDT
921962 select USE_OF
922963 select ARCH_SPARSEMEM_ENABLE
923964 select SYS_SUPPORTS_SMP
....@@ -946,7 +987,7 @@
946987 select NLM_COMMON
947988 select SYS_HAS_CPU_XLR
948989 select SYS_SUPPORTS_SMP
949
- select HW_HAS_PCI
990
+ select HAVE_PCI
950991 select SWAP_IO_SPACE
951992 select SYS_SUPPORTS_32BIT_KERNEL
952993 select SYS_SUPPORTS_64BIT_KERNEL
....@@ -972,7 +1013,7 @@
9721013 select NLM_COMMON
9731014 select SYS_HAS_CPU_XLP
9741015 select SYS_SUPPORTS_SMP
975
- select HW_HAS_PCI
1016
+ select HAVE_PCI
9761017 select SYS_SUPPORTS_32BIT_KERNEL
9771018 select SYS_SUPPORTS_64BIT_KERNEL
9781019 select PHYS_ADDR_T_64BIT
....@@ -994,24 +1035,6 @@
9941035 This board is based on Netlogic XLP Processor.
9951036 Say Y here if you have a XLP based board.
9961037
997
-config MIPS_PARAVIRT
998
- bool "Para-Virtualized guest system"
999
- select CEVT_R4K
1000
- select CSRC_R4K
1001
- select SYS_SUPPORTS_64BIT_KERNEL
1002
- select SYS_SUPPORTS_32BIT_KERNEL
1003
- select SYS_SUPPORTS_BIG_ENDIAN
1004
- select SYS_SUPPORTS_SMP
1005
- select NR_CPUS_DEFAULT_4
1006
- select SYS_HAS_EARLY_PRINTK
1007
- select SYS_HAS_CPU_MIPS32_R2
1008
- select SYS_HAS_CPU_MIPS64_R2
1009
- select SYS_HAS_CPU_CAVIUM_OCTEON
1010
- select HW_HAS_PCI
1011
- select SWAP_IO_SPACE
1012
- help
1013
- This option supports guest running under ????
1014
-
10151038 endchoice
10161039
10171040 source "arch/mips/alchemy/Kconfig"
....@@ -1021,32 +1044,23 @@
10211044 source "arch/mips/bcm63xx/Kconfig"
10221045 source "arch/mips/bmips/Kconfig"
10231046 source "arch/mips/generic/Kconfig"
1047
+source "arch/mips/ingenic/Kconfig"
10241048 source "arch/mips/jazz/Kconfig"
1025
-source "arch/mips/jz4740/Kconfig"
10261049 source "arch/mips/lantiq/Kconfig"
1027
-source "arch/mips/lasat/Kconfig"
10281050 source "arch/mips/pic32/Kconfig"
10291051 source "arch/mips/pistachio/Kconfig"
1030
-source "arch/mips/pmcs-msp71xx/Kconfig"
10311052 source "arch/mips/ralink/Kconfig"
10321053 source "arch/mips/sgi-ip27/Kconfig"
10331054 source "arch/mips/sibyte/Kconfig"
10341055 source "arch/mips/txx9/Kconfig"
10351056 source "arch/mips/vr41xx/Kconfig"
10361057 source "arch/mips/cavium-octeon/Kconfig"
1058
+source "arch/mips/loongson2ef/Kconfig"
10371059 source "arch/mips/loongson32/Kconfig"
10381060 source "arch/mips/loongson64/Kconfig"
10391061 source "arch/mips/netlogic/Kconfig"
1040
-source "arch/mips/paravirt/Kconfig"
10411062
10421063 endmenu
1043
-
1044
-config RWSEM_GENERIC_SPINLOCK
1045
- bool
1046
- default y
1047
-
1048
-config RWSEM_XCHGADD_ALGORITHM
1049
- bool
10501064
10511065 config GENERIC_HWEIGHT
10521066 bool
....@@ -1097,6 +1111,7 @@
10971111 bool
10981112
10991113 config CSRC_R4K
1114
+ select CLOCKSOURCE_WATCHDOG if CPU_FREQ
11001115 bool
11011116
11021117 config CSRC_SB1250
....@@ -1116,21 +1131,30 @@
11161131 bool
11171132
11181133 config DMA_MAYBE_COHERENT
1134
+ select ARCH_HAS_DMA_COHERENCE_H
11191135 select DMA_NONCOHERENT
11201136 bool
11211137
11221138 config DMA_PERDEV_COHERENT
11231139 bool
1124
- select DMA_MAYBE_COHERENT
1140
+ select ARCH_HAS_SETUP_DMA_OPS
1141
+ select DMA_NONCOHERENT
11251142
11261143 config DMA_NONCOHERENT
11271144 bool
1145
+ #
1146
+ # MIPS allows mixing "slightly different" Cacheability and Coherency
1147
+ # Attribute bits. It is believed that the uncached access through
1148
+ # KSEG1 and the implementation specific "uncached accelerated" used
1149
+ # by pgprot_writcombine can be mixed, and the latter sometimes provides
1150
+ # significant advantages.
1151
+ #
1152
+ select ARCH_HAS_DMA_WRITE_COMBINE
1153
+ select ARCH_HAS_DMA_PREP_COHERENT
11281154 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
1129
- select ARCH_HAS_SYNC_DMA_FOR_CPU
1130
- select NEED_DMA_MAP_STATE
1155
+ select ARCH_HAS_DMA_SET_UNCACHED
11311156 select DMA_NONCOHERENT_MMAP
1132
- select DMA_NONCOHERENT_CACHE_SYNC
1133
- select DMA_NONCOHERENT_OPS
1157
+ select NEED_DMA_MAP_STATE
11341158
11351159 config SYS_HAS_EARLY_PRINTK
11361160 bool
....@@ -1144,20 +1168,14 @@
11441168 config MIPS_MSC
11451169 bool
11461170
1147
-config MIPS_NILE4
1148
- bool
1149
-
11501171 config SYNC_R4K
11511172 bool
1152
-
1153
-config MIPS_MACHINE
1154
- def_bool n
11551173
11561174 config NO_IOPORT_MAP
11571175 def_bool n
11581176
11591177 config GENERIC_CSUM
1160
- bool
1178
+ def_bool CPU_NO_LOAD_STORE_LR
11611179
11621180 config GENERIC_ISA_DMA
11631181 bool
....@@ -1168,6 +1186,15 @@
11681186 bool
11691187 select GENERIC_ISA_DMA
11701188
1189
+config HAVE_PLAT_DELAY
1190
+ bool
1191
+
1192
+config HAVE_PLAT_FW_INIT_CMDLINE
1193
+ bool
1194
+
1195
+config HAVE_PLAT_MEMCPY
1196
+ bool
1197
+
11711198 config ISA_DMA_API
11721199 bool
11731200
....@@ -1177,9 +1204,9 @@
11771204 config SYS_SUPPORTS_RELOCATABLE
11781205 bool
11791206 help
1180
- Selected if the platform supports relocating the kernel.
1181
- The platform must provide plat_get_fdt() if it selects CONFIG_USE_OF
1182
- to allow access to command line and entropy sources.
1207
+ Selected if the platform supports relocating the kernel.
1208
+ The platform must provide plat_get_fdt() if it selects CONFIG_USE_OF
1209
+ to allow access to command line and entropy sources.
11831210
11841211 config MIPS_CBPF_JIT
11851212 def_bool y
....@@ -1228,7 +1255,7 @@
12281255
12291256 config SYS_SUPPORTS_HUGETLBFS
12301257 bool
1231
- depends on CPU_SUPPORTS_HUGEPAGES && 64BIT
1258
+ depends on CPU_SUPPORTS_HUGEPAGES
12321259 default y
12331260
12341261 config MIPS_HUGE_TLB_SUPPORT
....@@ -1252,37 +1279,11 @@
12521279 config PCI_GT64XXX_PCI0
12531280 bool
12541281
1282
+config PCI_XTALK_BRIDGE
1283
+ bool
1284
+
12551285 config NO_EXCEPT_FILL
12561286 bool
1257
-
1258
-config SOC_EMMA2RH
1259
- bool
1260
- select CEVT_R4K
1261
- select CSRC_R4K
1262
- select DMA_NONCOHERENT
1263
- select IRQ_MIPS_CPU
1264
- select SWAP_IO_SPACE
1265
- select SYS_HAS_CPU_R5500
1266
- select SYS_SUPPORTS_32BIT_KERNEL
1267
- select SYS_SUPPORTS_64BIT_KERNEL
1268
- select SYS_SUPPORTS_BIG_ENDIAN
1269
-
1270
-config SOC_PNX833X
1271
- bool
1272
- select CEVT_R4K
1273
- select CSRC_R4K
1274
- select IRQ_MIPS_CPU
1275
- select DMA_NONCOHERENT
1276
- select SYS_HAS_CPU_MIPS32_R2
1277
- select SYS_SUPPORTS_32BIT_KERNEL
1278
- select SYS_SUPPORTS_LITTLE_ENDIAN
1279
- select SYS_SUPPORTS_BIG_ENDIAN
1280
- select SYS_SUPPORTS_MIPS16
1281
- select CPU_MIPSR2_IRQ_VI
1282
-
1283
-config SOC_PNX8335
1284
- bool
1285
- select SOC_PNX833X
12861287
12871288 config MIPS_SPRAM
12881289 bool
....@@ -1340,7 +1341,7 @@
13401341 default "4" if MIPS_L1_CACHE_SHIFT_4
13411342 default "5"
13421343
1343
-config HAVE_STD_PC_SERIAL_PORT
1344
+config ARC_CMDLINE_ONLY
13441345 bool
13451346
13461347 config ARC_CONSOLE
....@@ -1349,13 +1350,9 @@
13491350
13501351 config ARC_MEMORY
13511352 bool
1352
- depends on MACH_JAZZ || SNI_RM || SGI_IP32
1353
- default y
13541353
13551354 config ARC_PROMLIB
13561355 bool
1357
- depends on MACH_JAZZ || SNI_RM || SGI_IP22 || SGI_IP28 || SGI_IP32
1358
- default y
13591356
13601357 config FW_ARC64
13611358 bool
....@@ -1369,46 +1366,81 @@
13691366 prompt "CPU type"
13701367 default CPU_R4X00
13711368
1372
-config CPU_LOONGSON3
1373
- bool "Loongson 3 CPU"
1374
- depends on SYS_HAS_CPU_LOONGSON3
1369
+config CPU_LOONGSON64
1370
+ bool "Loongson 64-bit CPU"
1371
+ depends on SYS_HAS_CPU_LOONGSON64
13751372 select ARCH_HAS_PHYS_TO_DMA
1373
+ select CPU_MIPSR2
1374
+ select CPU_HAS_PREFETCH
13761375 select CPU_SUPPORTS_64BIT_KERNEL
13771376 select CPU_SUPPORTS_HIGHMEM
13781377 select CPU_SUPPORTS_HUGEPAGES
1378
+ select CPU_SUPPORTS_MSA
1379
+ select CPU_DIEI_BROKEN if !LOONGSON3_ENHANCEMENT
1380
+ select CPU_MIPSR2_IRQ_VI
13791381 select WEAK_ORDERING
13801382 select WEAK_REORDERING_BEYOND_LLSC
1383
+ select MIPS_ASID_BITS_VARIABLE
13811384 select MIPS_PGD_C0_CONTEXT
13821385 select MIPS_L1_CACHE_SHIFT_6
13831386 select MIPS_FP_SUPPORT
13841387 select GPIOLIB
13851388 select SWIOTLB
1389
+ select HAVE_KVM
13861390 help
1387
- The Loongson 3 processor implements the MIPS64R2 instruction
1388
- set with many extensions.
1391
+ The Loongson GSx64(GS264/GS464/GS464E/GS464V) series of processor
1392
+ cores implements the MIPS64R2 instruction set with many extensions,
1393
+ including most 64-bit Loongson-2 (2H, 2K) and Loongson-3 (3A1000,
1394
+ 3B1000, 3B1500, 3A2000, 3A3000 and 3A4000) processors. However, old
1395
+ Loongson-2E/2F is not covered here and will be removed in future.
13891396
13901397 config LOONGSON3_ENHANCEMENT
1391
- bool "New Loongson 3 CPU Enhancements"
1398
+ bool "New Loongson-3 CPU Enhancements"
13921399 default n
1393
- select CPU_MIPSR2
1394
- select CPU_HAS_PREFETCH
1395
- depends on CPU_LOONGSON3
1400
+ depends on CPU_LOONGSON64
13961401 help
1397
- New Loongson 3 CPU (since Loongson-3A R2, as opposed to Loongson-3A
1402
+ New Loongson-3 cores (since Loongson-3A R2, as opposed to Loongson-3A
13981403 R1, Loongson-3B R1 and Loongson-3B R2) has many enhancements, such as
1399
- FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPv2 ASE, User
1404
+ FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPr2 ASE, User
14001405 Local register, Read-Inhibit/Execute-Inhibit, SFB (Store Fill Buffer),
14011406 Fast TLB refill support, etc.
14021407
14031408 This option enable those enhancements which are not probed at run
14041409 time. If you want a generic kernel to run on all Loongson 3 machines,
14051410 please say 'N' here. If you want a high-performance kernel to run on
1406
- new Loongson 3 machines only, please say 'Y' here.
1411
+ new Loongson-3 machines only, please say 'Y' here.
1412
+
1413
+config CPU_LOONGSON3_WORKAROUNDS
1414
+ bool "Old Loongson-3 LLSC Workarounds"
1415
+ default y if SMP
1416
+ depends on CPU_LOONGSON64
1417
+ help
1418
+ Loongson-3 processors have the llsc issues which require workarounds.
1419
+ Without workarounds the system may hang unexpectedly.
1420
+
1421
+ Newer Loongson-3 will fix these issues and no workarounds are needed.
1422
+ The workarounds have no significant side effect on them but may
1423
+ decrease the performance of the system so this option should be
1424
+ disabled unless the kernel is intended to be run on old systems.
1425
+
1426
+ If unsure, please say Y.
1427
+
1428
+config CPU_LOONGSON3_CPUCFG_EMULATION
1429
+ bool "Emulate the CPUCFG instruction on older Loongson cores"
1430
+ default y
1431
+ depends on CPU_LOONGSON64
1432
+ help
1433
+ Loongson-3A R4 and newer have the CPUCFG instruction available for
1434
+ userland to query CPU capabilities, much like CPUID on x86. This
1435
+ option provides emulation of the instruction on older Loongson
1436
+ cores, back to Loongson-3A1000.
1437
+
1438
+ If unsure, please say Y.
14071439
14081440 config CPU_LOONGSON2E
14091441 bool "Loongson 2E"
14101442 depends on SYS_HAS_CPU_LOONGSON2E
1411
- select CPU_LOONGSON2
1443
+ select CPU_LOONGSON2EF
14121444 help
14131445 The Loongson 2E processor implements the MIPS III instruction set
14141446 with many extensions.
....@@ -1419,7 +1451,7 @@
14191451 config CPU_LOONGSON2F
14201452 bool "Loongson 2F"
14211453 depends on SYS_HAS_CPU_LOONGSON2F
1422
- select CPU_LOONGSON2
1454
+ select CPU_LOONGSON2EF
14231455 select GPIOLIB
14241456 help
14251457 The Loongson 2F processor implements the MIPS III instruction set
....@@ -1432,7 +1464,7 @@
14321464 config CPU_LOONGSON1B
14331465 bool "Loongson 1B"
14341466 depends on SYS_HAS_CPU_LOONGSON1B
1435
- select CPU_LOONGSON1
1467
+ select CPU_LOONGSON32
14361468 select LEDS_GPIO_REGISTER
14371469 help
14381470 The Loongson 1B is a 32-bit SoC, which implements the MIPS32
....@@ -1442,7 +1474,7 @@
14421474 config CPU_LOONGSON1C
14431475 bool "Loongson 1C"
14441476 depends on SYS_HAS_CPU_LOONGSON1C
1445
- select CPU_LOONGSON1
1477
+ select CPU_LOONGSON32
14461478 select LEDS_GPIO_REGISTER
14471479 help
14481480 The Loongson 1C is a 32-bit SoC, which implements the MIPS32
....@@ -1481,14 +1513,29 @@
14811513 specific type of processor in your system, choose those that one
14821514 otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
14831515
1484
-config CPU_MIPS32_R6
1485
- bool "MIPS32 Release 6"
1486
- depends on SYS_HAS_CPU_MIPS32_R6
1516
+config CPU_MIPS32_R5
1517
+ bool "MIPS32 Release 5"
1518
+ depends on SYS_HAS_CPU_MIPS32_R5
14871519 select CPU_HAS_PREFETCH
14881520 select CPU_SUPPORTS_32BIT_KERNEL
14891521 select CPU_SUPPORTS_HIGHMEM
14901522 select CPU_SUPPORTS_MSA
1491
- select GENERIC_CSUM
1523
+ select HAVE_KVM
1524
+ select MIPS_O32_FP64_SUPPORT
1525
+ help
1526
+ Choose this option to build a kernel for release 5 or later of the
1527
+ MIPS32 architecture. New MIPS processors, starting with the Warrior
1528
+ family, are based on a MIPS32r5 processor. If you own an older
1529
+ processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
1530
+
1531
+config CPU_MIPS32_R6
1532
+ bool "MIPS32 Release 6"
1533
+ depends on SYS_HAS_CPU_MIPS32_R6
1534
+ select CPU_HAS_PREFETCH
1535
+ select CPU_NO_LOAD_STORE_LR
1536
+ select CPU_SUPPORTS_32BIT_KERNEL
1537
+ select CPU_SUPPORTS_HIGHMEM
1538
+ select CPU_SUPPORTS_MSA
14921539 select HAVE_KVM
14931540 select MIPS_O32_FP64_SUPPORT
14941541 help
....@@ -1533,15 +1580,33 @@
15331580 specific type of processor in your system, choose those that one
15341581 otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
15351582
1536
-config CPU_MIPS64_R6
1537
- bool "MIPS64 Release 6"
1538
- depends on SYS_HAS_CPU_MIPS64_R6
1583
+config CPU_MIPS64_R5
1584
+ bool "MIPS64 Release 5"
1585
+ depends on SYS_HAS_CPU_MIPS64_R5
15391586 select CPU_HAS_PREFETCH
15401587 select CPU_SUPPORTS_32BIT_KERNEL
15411588 select CPU_SUPPORTS_64BIT_KERNEL
15421589 select CPU_SUPPORTS_HIGHMEM
1590
+ select CPU_SUPPORTS_HUGEPAGES
15431591 select CPU_SUPPORTS_MSA
1544
- select GENERIC_CSUM
1592
+ select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
1593
+ select HAVE_KVM
1594
+ help
1595
+ Choose this option to build a kernel for release 5 or later of the
1596
+ MIPS64 architecture. This is a intermediate MIPS architecture
1597
+ release partly implementing release 6 features. Though there is no
1598
+ any hardware known to be based on this release.
1599
+
1600
+config CPU_MIPS64_R6
1601
+ bool "MIPS64 Release 6"
1602
+ depends on SYS_HAS_CPU_MIPS64_R6
1603
+ select CPU_HAS_PREFETCH
1604
+ select CPU_NO_LOAD_STORE_LR
1605
+ select CPU_SUPPORTS_32BIT_KERNEL
1606
+ select CPU_SUPPORTS_64BIT_KERNEL
1607
+ select CPU_SUPPORTS_HIGHMEM
1608
+ select CPU_SUPPORTS_HUGEPAGES
1609
+ select CPU_SUPPORTS_MSA
15451610 select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
15461611 select HAVE_KVM
15471612 help
....@@ -1550,10 +1615,32 @@
15501615 family, are based on a MIPS64r6 processor. If you own an older
15511616 processor, you probably need to select MIPS64r1 or MIPS64r2 instead.
15521617
1618
+config CPU_P5600
1619
+ bool "MIPS Warrior P5600"
1620
+ depends on SYS_HAS_CPU_P5600
1621
+ select CPU_HAS_PREFETCH
1622
+ select CPU_SUPPORTS_32BIT_KERNEL
1623
+ select CPU_SUPPORTS_HIGHMEM
1624
+ select CPU_SUPPORTS_MSA
1625
+ select CPU_SUPPORTS_CPUFREQ
1626
+ select CPU_MIPSR2_IRQ_VI
1627
+ select CPU_MIPSR2_IRQ_EI
1628
+ select HAVE_KVM
1629
+ select MIPS_O32_FP64_SUPPORT
1630
+ help
1631
+ Choose this option to build a kernel for MIPS Warrior P5600 CPU.
1632
+ It's based on MIPS32r5 ISA with XPA, EVA, dual/quad issue exec pipes,
1633
+ MMU with two-levels TLB, UCA, MSA, MDU core level features and system
1634
+ level features like up to six P5600 calculation cores, CM2 with L2
1635
+ cache, IOCU/IOMMU (though might be unused depending on the system-
1636
+ specific IP core configuration), GIC, CPC, virtualisation module,
1637
+ eJTAG and PDtrace.
1638
+
15531639 config CPU_R3000
15541640 bool "R3000"
15551641 depends on SYS_HAS_CPU_R3000
15561642 select CPU_HAS_WB
1643
+ select CPU_R3K_TLB
15571644 select CPU_SUPPORTS_32BIT_KERNEL
15581645 select CPU_SUPPORTS_HIGHMEM
15591646 help
....@@ -1568,6 +1655,7 @@
15681655 bool "R39XX"
15691656 depends on SYS_HAS_CPU_TX39XX
15701657 select CPU_SUPPORTS_32BIT_KERNEL
1658
+ select CPU_R3K_TLB
15711659
15721660 config CPU_VR41XX
15731661 bool "R41xx"
....@@ -1579,14 +1667,6 @@
15791667 Only choose this option if you have one of these processors as a
15801668 kernel built with this option will not run on any other type of
15811669 processor or vice versa.
1582
-
1583
-config CPU_R4300
1584
- bool "R4300"
1585
- depends on SYS_HAS_CPU_R4300
1586
- select CPU_SUPPORTS_32BIT_KERNEL
1587
- select CPU_SUPPORTS_64BIT_KERNEL
1588
- help
1589
- MIPS Technologies R4300-series processors.
15901670
15911671 config CPU_R4X00
15921672 bool "R4x00"
....@@ -1615,13 +1695,6 @@
16151695 help
16161696 MIPS Technologies R5000-series processors other than the Nevada.
16171697
1618
-config CPU_R5432
1619
- bool "R5432"
1620
- depends on SYS_HAS_CPU_R5432
1621
- select CPU_SUPPORTS_32BIT_KERNEL
1622
- select CPU_SUPPORTS_64BIT_KERNEL
1623
- select CPU_SUPPORTS_HUGEPAGES
1624
-
16251698 config CPU_R5500
16261699 bool "R5500"
16271700 depends on SYS_HAS_CPU_R5500
....@@ -1640,15 +1713,6 @@
16401713 select CPU_SUPPORTS_HUGEPAGES
16411714 help
16421715 QED / PMC-Sierra RM52xx-series ("Nevada") processors.
1643
-
1644
-config CPU_R8000
1645
- bool "R8000"
1646
- depends on SYS_HAS_CPU_R8000
1647
- select CPU_HAS_PREFETCH
1648
- select CPU_SUPPORTS_64BIT_KERNEL
1649
- help
1650
- MIPS Technologies R8000 processors. Note these processors are
1651
- uncommon and the support for them is incomplete.
16521716
16531717 config CPU_R10000
16541718 bool "R10000"
....@@ -1748,7 +1812,8 @@
17481812 config CPU_MIPS32_3_5_FEATURES
17491813 bool "MIPS32 Release 3.5 Features"
17501814 depends on SYS_HAS_CPU_MIPS32_R3_5
1751
- depends on CPU_MIPS32_R2 || CPU_MIPS32_R6
1815
+ depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_MIPS32_R6 || \
1816
+ CPU_P5600
17521817 help
17531818 Choose this option to build a kernel for release 2 or later of the
17541819 MIPS32 architecture including features from the 3.5 release such as
....@@ -1768,7 +1833,7 @@
17681833 config CPU_MIPS32_R5_FEATURES
17691834 bool "MIPS32 Release 5 Features"
17701835 depends on SYS_HAS_CPU_MIPS32_R5
1771
- depends on CPU_MIPS32_R2
1836
+ depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_P5600
17721837 help
17731838 Choose this option to build a kernel for release 2 or later of the
17741839 MIPS32 architecture including features from release 5 such as
....@@ -1827,6 +1892,7 @@
18271892 select HAVE_KERNEL_LZMA
18281893 select HAVE_KERNEL_LZO
18291894 select HAVE_KERNEL_XZ
1895
+ select HAVE_KERNEL_ZSTD
18301896
18311897 config SYS_SUPPORTS_ZBOOT_UART16550
18321898 bool
....@@ -1836,7 +1902,7 @@
18361902 bool
18371903 select SYS_SUPPORTS_ZBOOT
18381904
1839
-config CPU_LOONGSON2
1905
+config CPU_LOONGSON2EF
18401906 bool
18411907 select CPU_SUPPORTS_32BIT_KERNEL
18421908 select CPU_SUPPORTS_64BIT_KERNEL
....@@ -1844,10 +1910,10 @@
18441910 select CPU_SUPPORTS_HUGEPAGES
18451911 select ARCH_HAS_PHYS_TO_DMA
18461912
1847
-config CPU_LOONGSON1
1913
+config CPU_LOONGSON32
18481914 bool
18491915 select CPU_MIPS32
1850
- select CPU_MIPSR1
1916
+ select CPU_MIPSR2
18511917 select CPU_HAS_PREFETCH
18521918 select CPU_SUPPORTS_32BIT_KERNEL
18531919 select CPU_SUPPORTS_HIGHMEM
....@@ -1877,7 +1943,7 @@
18771943 select SYS_SUPPORTS_HOTPLUG_CPU
18781944 select CPU_HAS_RIXI
18791945
1880
-config SYS_HAS_CPU_LOONGSON3
1946
+config SYS_HAS_CPU_LOONGSON64
18811947 bool
18821948 select CPU_SUPPORTS_CPUFREQ
18831949 select CPU_HAS_RIXI
....@@ -1889,7 +1955,6 @@
18891955 bool
18901956 select CPU_SUPPORTS_CPUFREQ
18911957 select CPU_SUPPORTS_ADDRWINCFG if 64BIT
1892
- select CPU_SUPPORTS_UNCACHED_ACCELERATED
18931958
18941959 config SYS_HAS_CPU_LOONGSON1B
18951960 bool
....@@ -1908,9 +1973,11 @@
19081973
19091974 config SYS_HAS_CPU_MIPS32_R5
19101975 bool
1976
+ select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
19111977
19121978 config SYS_HAS_CPU_MIPS32_R6
19131979 bool
1980
+ select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
19141981
19151982 config SYS_HAS_CPU_MIPS64_R1
19161983 bool
....@@ -1918,8 +1985,17 @@
19181985 config SYS_HAS_CPU_MIPS64_R2
19191986 bool
19201987
1988
+config SYS_HAS_CPU_MIPS64_R5
1989
+ bool
1990
+ select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
1991
+
19211992 config SYS_HAS_CPU_MIPS64_R6
19221993 bool
1994
+ select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
1995
+
1996
+config SYS_HAS_CPU_P5600
1997
+ bool
1998
+ select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
19231999
19242000 config SYS_HAS_CPU_R3000
19252001 bool
....@@ -1928,9 +2004,6 @@
19282004 bool
19292005
19302006 config SYS_HAS_CPU_VR41XX
1931
- bool
1932
-
1933
-config SYS_HAS_CPU_R4300
19342007 bool
19352008
19362009 config SYS_HAS_CPU_R4X00
....@@ -1942,20 +2015,15 @@
19422015 config SYS_HAS_CPU_R5000
19432016 bool
19442017
1945
-config SYS_HAS_CPU_R5432
1946
- bool
1947
-
19482018 config SYS_HAS_CPU_R5500
19492019 bool
19502020
19512021 config SYS_HAS_CPU_NEVADA
19522022 bool
19532023
1954
-config SYS_HAS_CPU_R8000
1955
- bool
1956
-
19572024 config SYS_HAS_CPU_R10000
19582025 bool
2026
+ select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
19592027
19602028 config SYS_HAS_CPU_RM7000
19612029 bool
....@@ -1984,6 +2052,7 @@
19842052 config SYS_HAS_CPU_BMIPS5000
19852053 bool
19862054 select SYS_HAS_CPU_BMIPS
2055
+ select ARCH_HAS_SYNC_DMA_FOR_CPU
19872056
19882057 config SYS_HAS_CPU_XLR
19892058 bool
....@@ -2011,14 +2080,16 @@
20112080 #
20122081 config CPU_MIPS32
20132082 bool
2014
- default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R6
2083
+ default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R5 || \
2084
+ CPU_MIPS32_R6 || CPU_P5600
20152085
20162086 config CPU_MIPS64
20172087 bool
2018
- default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R6
2088
+ default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R5 || \
2089
+ CPU_MIPS64_R6
20192090
20202091 #
2021
-# These two indicate the revision of the architecture, either Release 1 or Release 2
2092
+# These indicate the revision of the architecture
20222093 #
20232094 config CPU_MIPSR1
20242095 bool
....@@ -2028,16 +2099,36 @@
20282099 bool
20292100 default y if CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_CAVIUM_OCTEON
20302101 select CPU_HAS_RIXI
2102
+ select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
2103
+ select MIPS_SPRAM
2104
+
2105
+config CPU_MIPSR5
2106
+ bool
2107
+ default y if CPU_MIPS32_R5 || CPU_MIPS64_R5 || CPU_P5600
2108
+ select CPU_HAS_RIXI
2109
+ select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
20312110 select MIPS_SPRAM
20322111
20332112 config CPU_MIPSR6
20342113 bool
20352114 default y if CPU_MIPS32_R6 || CPU_MIPS64_R6
20362115 select CPU_HAS_RIXI
2116
+ select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
20372117 select HAVE_ARCH_BITREVERSE
20382118 select MIPS_ASID_BITS_VARIABLE
20392119 select MIPS_CRC_SUPPORT
20402120 select MIPS_SPRAM
2121
+
2122
+config TARGET_ISA_REV
2123
+ int
2124
+ default 1 if CPU_MIPSR1
2125
+ default 2 if CPU_MIPSR2
2126
+ default 5 if CPU_MIPSR5
2127
+ default 6 if CPU_MIPSR6
2128
+ default 0
2129
+ help
2130
+ Reflects the ISA revision being targeted by the kernel build. This
2131
+ is effectively the Kconfig equivalent of MIPS_ISA_REV.
20412132
20422133 config EVA
20432134 bool
....@@ -2059,8 +2150,7 @@
20592150 bool
20602151 config CPU_SUPPORTS_HUGEPAGES
20612152 bool
2062
-config CPU_SUPPORTS_UNCACHED_ACCELERATED
2063
- bool
2153
+ depends on !(32BIT && (PHYS_ADDR_T_64BIT || EVA))
20642154 config MIPS_PGD_C0_CONTEXT
20652155 bool
20662156 default y if 64BIT && (CPU_MIPSR2 || CPU_MIPSR6) && !CPU_XLP
....@@ -2069,8 +2159,8 @@
20692159 # Set to y for ptrace access to watch registers.
20702160 #
20712161 config HARDWARE_WATCHPOINTS
2072
- bool
2073
- default y if CPU_MIPSR1 || CPU_MIPSR2 || CPU_MIPSR6
2162
+ bool
2163
+ default y if CPU_MIPSR1 || CPU_MIPSR2 || CPU_MIPSR6
20742164
20752165 menu "Kernel type"
20762166
....@@ -2099,6 +2189,7 @@
20992189
21002190 config KVM_GUEST
21012191 bool "KVM Guest Kernel"
2192
+ depends on CPU_MIPS32_R2
21022193 depends on BROKEN_ON_SMP
21032194 help
21042195 Select this option if building a guest kernel for KVM (Trap & Emulate)
....@@ -2132,22 +2223,22 @@
21322223
21332224 config PAGE_SIZE_4KB
21342225 bool "4kB"
2135
- depends on !CPU_LOONGSON2 && !CPU_LOONGSON3
2226
+ depends on !CPU_LOONGSON2EF && !CPU_LOONGSON64
21362227 help
2137
- This option select the standard 4kB Linux page size. On some
2138
- R3000-family processors this is the only available page size. Using
2139
- 4kB page size will minimize memory consumption and is therefore
2140
- recommended for low memory systems.
2228
+ This option select the standard 4kB Linux page size. On some
2229
+ R3000-family processors this is the only available page size. Using
2230
+ 4kB page size will minimize memory consumption and is therefore
2231
+ recommended for low memory systems.
21412232
21422233 config PAGE_SIZE_8KB
21432234 bool "8kB"
2144
- depends on CPU_R8000 || CPU_CAVIUM_OCTEON
2235
+ depends on CPU_CAVIUM_OCTEON
21452236 depends on !MIPS_VA_BITS_48
21462237 help
21472238 Using 8kB page size will result in higher performance kernel at
21482239 the price of higher memory consumption. This option is available
2149
- only on R8000 and cnMIPS processors. Note that you will need a
2150
- suitable Linux distribution to support this.
2240
+ only on cnMIPS processors. Note that you will need a suitable Linux
2241
+ distribution to support this.
21512242
21522243 config PAGE_SIZE_16KB
21532244 bool "16kB"
....@@ -2187,7 +2278,7 @@
21872278 default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
21882279 range 12 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
21892280 default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
2190
- range 11 64
2281
+ range 0 64
21912282 default "11"
21922283 help
21932284 The kernel memory allocator divides physically contiguous memory
....@@ -2238,15 +2329,39 @@
22382329
22392330 config CPU_GENERIC_DUMP_TLB
22402331 bool
2241
- default y if !(CPU_R3000 || CPU_R8000 || CPU_TX39XX)
2332
+ default y if !(CPU_R3000 || CPU_TX39XX)
2333
+
2334
+config MIPS_FP_SUPPORT
2335
+ bool "Floating Point support" if EXPERT
2336
+ default y
2337
+ help
2338
+ Select y to include support for floating point in the kernel
2339
+ including initialization of FPU hardware, FP context save & restore
2340
+ and emulation of an FPU where necessary. Without this support any
2341
+ userland program attempting to use floating point instructions will
2342
+ receive a SIGILL.
2343
+
2344
+ If you know that your userland will not attempt to use floating point
2345
+ instructions then you can say n here to shrink the kernel a little.
2346
+
2347
+ If unsure, say y.
2348
+
2349
+config CPU_R2300_FPU
2350
+ bool
2351
+ depends on MIPS_FP_SUPPORT
2352
+ default y if CPU_R3000 || CPU_TX39XX
2353
+
2354
+config CPU_R3K_TLB
2355
+ bool
22422356
22432357 config CPU_R4K_FPU
22442358 bool
2245
- default y if !(CPU_R3000 || CPU_TX39XX)
2359
+ depends on MIPS_FP_SUPPORT
2360
+ default y if !CPU_R2300_FPU
22462361
22472362 config CPU_R4K_CACHE_TLB
22482363 bool
2249
- default y if !(CPU_R3000 || CPU_R8000 || CPU_SB1 || CPU_TX39XX || CPU_CAVIUM_OCTEON)
2364
+ default y if !(CPU_R3K_TLB || CPU_SB1 || CPU_CAVIUM_OCTEON)
22502365
22512366 config MIPS_MT_SMP
22522367 bool "MIPS MT SMP support (1 TC on each available VPE)"
....@@ -2294,6 +2409,7 @@
22942409 config MIPSR2_TO_R6_EMULATOR
22952410 bool "MIPS R2-to-R6 emulator"
22962411 depends on CPU_MIPSR6
2412
+ depends on MIPS_FP_SUPPORT
22972413 default y
22982414 help
22992415 Choose this option if you want to run non-R6 MIPS userland code.
....@@ -2408,7 +2524,6 @@
24082524 depends on CPU_SB1 && CPU_SB1_PASS_2
24092525 default y
24102526
2411
-
24122527 choice
24132528 prompt "SmartMIPS or microMIPS ASE support"
24142529
....@@ -2441,6 +2556,7 @@
24412556 config CPU_HAS_MSA
24422557 bool "Support for the MIPS SIMD Architecture"
24432558 depends on CPU_SUPPORTS_MSA
2559
+ depends on MIPS_FP_SUPPORT
24442560 depends on 64BIT || MIPS_O32_FP64_SUPPORT
24452561 help
24462562 MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers
....@@ -2459,8 +2575,23 @@
24592575 config XKS01
24602576 bool
24612577
2578
+config CPU_HAS_DIEI
2579
+ depends on !CPU_DIEI_BROKEN
2580
+ bool
2581
+
2582
+config CPU_DIEI_BROKEN
2583
+ bool
2584
+
24622585 config CPU_HAS_RIXI
24632586 bool
2587
+
2588
+config CPU_NO_LOAD_STORE_LR
2589
+ bool
2590
+ help
2591
+ CPU lacks support for unaligned load and store instructions:
2592
+ LWL, LWR, SWL, SWR (Load/store word left/right).
2593
+ LDL, LDR, SDL, SDR (Load/store doubleword left/right, for 64bit
2594
+ systems).
24642595
24652596 #
24662597 # Vectored interrupt mode is an R2 feature
....@@ -2492,10 +2623,13 @@
24922623 config CPU_R4400_WORKAROUNDS
24932624 bool
24942625
2626
+config CPU_R4X00_BUGS64
2627
+ bool
2628
+ default y if SYS_HAS_CPU_R4X00 && 64BIT && (TARGET_ISA_REV < 1)
2629
+
24952630 config MIPS_ASID_SHIFT
24962631 int
24972632 default 6 if CPU_R3000 || CPU_TX39XX
2498
- default 4 if CPU_R8000
24992633 default 0
25002634
25012635 config MIPS_ASID_BITS
....@@ -2508,6 +2642,76 @@
25082642 bool
25092643
25102644 config MIPS_CRC_SUPPORT
2645
+ bool
2646
+
2647
+# R4600 erratum. Due to the lack of errata information the exact
2648
+# technical details aren't known. I've experimentally found that disabling
2649
+# interrupts during indexed I-cache flushes seems to be sufficient to deal
2650
+# with the issue.
2651
+config WAR_R4600_V1_INDEX_ICACHEOP
2652
+ bool
2653
+
2654
+# Pleasures of the R4600 V1.x. Cite from the IDT R4600 V1.7 errata:
2655
+#
2656
+# 18. The CACHE instructions Hit_Writeback_Invalidate_D, Hit_Writeback_D,
2657
+# Hit_Invalidate_D and Create_Dirty_Excl_D should only be
2658
+# executed if there is no other dcache activity. If the dcache is
2659
+# accessed for another instruction immeidately preceding when these
2660
+# cache instructions are executing, it is possible that the dcache
2661
+# tag match outputs used by these cache instructions will be
2662
+# incorrect. These cache instructions should be preceded by at least
2663
+# four instructions that are not any kind of load or store
2664
+# instruction.
2665
+#
2666
+# This is not allowed: lw
2667
+# nop
2668
+# nop
2669
+# nop
2670
+# cache Hit_Writeback_Invalidate_D
2671
+#
2672
+# This is allowed: lw
2673
+# nop
2674
+# nop
2675
+# nop
2676
+# nop
2677
+# cache Hit_Writeback_Invalidate_D
2678
+config WAR_R4600_V1_HIT_CACHEOP
2679
+ bool
2680
+
2681
+# Writeback and invalidate the primary cache dcache before DMA.
2682
+#
2683
+# R4600 v2.0 bug: "The CACHE instructions Hit_Writeback_Inv_D,
2684
+# Hit_Writeback_D, Hit_Invalidate_D and Create_Dirty_Exclusive_D will only
2685
+# operate correctly if the internal data cache refill buffer is empty. These
2686
+# CACHE instructions should be separated from any potential data cache miss
2687
+# by a load instruction to an uncached address to empty the response buffer."
2688
+# (Revision 2.0 device errata from IDT available on https://www.idt.com/
2689
+# in .pdf format.)
2690
+config WAR_R4600_V2_HIT_CACHEOP
2691
+ bool
2692
+
2693
+# From TX49/H2 manual: "If the instruction (i.e. CACHE) is issued for
2694
+# the line which this instruction itself exists, the following
2695
+# operation is not guaranteed."
2696
+#
2697
+# Workaround: do two phase flushing for Index_Invalidate_I
2698
+config WAR_TX49XX_ICACHE_INDEX_INV
2699
+ bool
2700
+
2701
+# The RM7000 processors and the E9000 cores have a bug (though PMC-Sierra
2702
+# opposes it being called that) where invalid instructions in the same
2703
+# I-cache line worth of instructions being fetched may case spurious
2704
+# exceptions.
2705
+config WAR_ICACHE_REFILLS
2706
+ bool
2707
+
2708
+# On the R10000 up to version 2.6 (not sure about 2.7) there is a bug that
2709
+# may cause ll / sc and lld / scd sequences to execute non-atomically.
2710
+config WAR_R10000_LLSC
2711
+ bool
2712
+
2713
+# 34K core erratum: "Problems Executing the TLBR Instruction"
2714
+config WAR_MIPS34K_MISSED_ITLB
25112715 bool
25122716
25132717 #
....@@ -2525,7 +2729,8 @@
25252729 #
25262730 config HIGHMEM
25272731 bool "High Memory Support"
2528
- depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM && !CPU_MIPS32_3_5_EVA && !PREEMPT_RT_FULL
2732
+ depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM && !CPU_MIPS32_3_5_EVA
2733
+ select KMAP_LOCAL
25292734
25302735 config CPU_SUPPORTS_HIGHMEM
25312736 bool
....@@ -2551,20 +2756,11 @@
25512756
25522757 config ARCH_FLATMEM_ENABLE
25532758 def_bool y
2554
- depends on !NUMA && !CPU_LOONGSON2
2555
-
2556
-config ARCH_DISCONTIGMEM_ENABLE
2557
- bool
2558
- default y if SGI_IP27
2559
- help
2560
- Say Y to support efficient handling of discontiguous physical memory,
2561
- for architectures which are either NUMA (Non-Uniform Memory Access)
2562
- or have huge holes in the physical address space for other reasons.
2563
- See <file:Documentation/vm/numa.rst> for more.
2759
+ depends on !NUMA && !CPU_LOONGSON2EF
25642760
25652761 config ARCH_SPARSEMEM_ENABLE
25662762 bool
2567
- select SPARSEMEM_STATIC
2763
+ select SPARSEMEM_STATIC if !SGI_IP27
25682764
25692765 config NUMA
25702766 bool "NUMA Support"
....@@ -2573,15 +2769,27 @@
25732769 Say Y to compile the kernel to support NUMA (Non-Uniform Memory
25742770 Access). This option improves performance on systems with more
25752771 than two nodes; on two node systems it is generally better to
2576
- leave it disabled; on single node systems disable this option
2772
+ leave it disabled; on single node systems leave this option
25772773 disabled.
25782774
25792775 config SYS_SUPPORTS_NUMA
25802776 bool
25812777
2778
+config HAVE_SETUP_PER_CPU_AREA
2779
+ def_bool y
2780
+ depends on NUMA
2781
+
2782
+config NEED_PER_CPU_EMBED_FIRST_CHUNK
2783
+ def_bool y
2784
+ depends on NUMA
2785
+
25822786 config RELOCATABLE
25832787 bool "Relocatable kernel"
2584
- depends on SYS_SUPPORTS_RELOCATABLE && (CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_MIPS32_R6 || CPU_MIPS64_R6 || CAVIUM_OCTEON_SOC)
2788
+ depends on SYS_SUPPORTS_RELOCATABLE
2789
+ depends on CPU_MIPS32_R2 || CPU_MIPS64_R2 || \
2790
+ CPU_MIPS32_R5 || CPU_MIPS64_R5 || \
2791
+ CPU_MIPS32_R6 || CPU_MIPS64_R6 || \
2792
+ CPU_P5600 || CAVIUM_OCTEON_SOC
25852793 help
25862794 This builds a kernel image that retains relocation information
25872795 so it can be loaded someplace besides the default 1MB.
....@@ -2593,7 +2801,7 @@
25932801 depends on RELOCATABLE
25942802 range 0x0 0x01000000
25952803 default "0x00100000"
2596
- ---help---
2804
+ help
25972805 A table of relocation data will be appended to the kernel binary
25982806 and parsed at boot to fix up the relocated kernel.
25992807
....@@ -2607,17 +2815,17 @@
26072815 config RANDOMIZE_BASE
26082816 bool "Randomize the address of the kernel image"
26092817 depends on RELOCATABLE
2610
- ---help---
2611
- Randomizes the physical and virtual address at which the
2612
- kernel image is loaded, as a security feature that
2613
- deters exploit attempts relying on knowledge of the location
2614
- of kernel internals.
2818
+ help
2819
+ Randomizes the physical and virtual address at which the
2820
+ kernel image is loaded, as a security feature that
2821
+ deters exploit attempts relying on knowledge of the location
2822
+ of kernel internals.
26152823
2616
- Entropy is generated using any coprocessor 0 registers available.
2824
+ Entropy is generated using any coprocessor 0 registers available.
26172825
2618
- The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET.
2826
+ The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET.
26192827
2620
- If unsure, say N.
2828
+ If unsure, say N.
26212829
26222830 config RANDOMIZE_BASE_MAX_OFFSET
26232831 hex "Maximum kASLR offset" if EXPERT
....@@ -2625,7 +2833,7 @@
26252833 range 0x0 0x40000000 if EVA || 64BIT
26262834 range 0x0 0x08000000
26272835 default "0x01000000"
2628
- ---help---
2836
+ help
26292837 When kASLR is active, this provides the maximum offset that will
26302838 be applied to the kernel image. It should be set according to the
26312839 amount of physical RAM available in the target system minus
....@@ -2641,11 +2849,22 @@
26412849
26422850 config HW_PERF_EVENTS
26432851 bool "Enable hardware performance counter support for perf events"
2644
- depends on PERF_EVENTS && !OPROFILE && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_XLP || CPU_LOONGSON3)
2852
+ depends on PERF_EVENTS && !OPROFILE && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_XLP || CPU_LOONGSON64)
26452853 default y
26462854 help
26472855 Enable hardware performance counter support for perf events. If
26482856 disabled, perf events will use software events only.
2857
+
2858
+config DMI
2859
+ bool "Enable DMI scanning"
2860
+ depends on MACH_LOONGSON64
2861
+ select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
2862
+ default y
2863
+ help
2864
+ Enabled scanning of DMI to identify machine quirks. Say Y
2865
+ here unless you have verified that your setup is not
2866
+ affected by entries in the DMI blacklist. Required by PNP
2867
+ BIOS code.
26492868
26502869 config SMP
26512870 bool "Multi-Processing support"
....@@ -2665,7 +2884,7 @@
26652884 Y to "Enhanced Real Time Clock Support", below.
26662885
26672886 See also the SMP-HOWTO available at
2668
- <http://www.tldp.org/docs.html#howto>.
2887
+ <https://www.tldp.org/docs.html#howto>.
26692888
26702889 If you don't know what to do here, say N.
26712890
....@@ -2747,7 +2966,7 @@
27472966 prompt "Timer frequency"
27482967 default HZ_250
27492968 help
2750
- Allows the configuration of the timer frequency.
2969
+ Allows the configuration of the timer frequency.
27512970
27522971 config HZ_24
27532972 bool "24 HZ" if SYS_SUPPORTS_24HZ || SYS_SUPPORTS_ARBIT_HZ
....@@ -2863,25 +3082,8 @@
28633082 specified in the "crashkernel=YM@XM" command line boot parameter
28643083 passed to the panic-ed kernel).
28653084
2866
-config SECCOMP
2867
- bool "Enable seccomp to safely compute untrusted bytecode"
2868
- depends on PROC_FS
2869
- default y
2870
- help
2871
- This kernel feature is useful for number crunching applications
2872
- that may need to compute untrusted bytecode during their
2873
- execution. By using pipes or other transports made available to
2874
- the process as file descriptors supporting the read/write
2875
- syscalls, it's possible to isolate those applications in
2876
- their own address space using seccomp. Once seccomp is
2877
- enabled via /proc/<pid>/seccomp, it cannot be disabled
2878
- and the task is only allowed to execute a few safe syscalls
2879
- defined by each seccomp mode.
2880
-
2881
- If unsure, say Y. Only embedded should say N here.
2882
-
28833085 config MIPS_O32_FP64_SUPPORT
2884
- bool "Support for O32 binaries using 64-bit FP"
3086
+ bool "Support for O32 binaries using 64-bit FP" if !CPU_MIPSR6
28853087 depends on 32BIT || MIPS32_O32
28863088 help
28873089 When this is enabled, the kernel will support use of 64-bit floating
....@@ -2908,6 +3110,9 @@
29083110 select OF
29093111 select OF_EARLY_FLATTREE
29103112 select IRQ_DOMAIN
3113
+
3114
+config UHI_BOOT
3115
+ bool
29113116
29123117 config BUILTIN_DTB
29133118 bool
....@@ -2956,7 +3161,7 @@
29563161 choice
29573162 prompt "Kernel command line type" if !CMDLINE_OVERRIDE
29583163 default MIPS_CMDLINE_FROM_DTB if USE_OF && !ATH79 && !MACH_INGENIC && \
2959
- !MIPS_MALTA && \
3164
+ !MACH_LOONGSON64 && !MIPS_MALTA && \
29603165 !CAVIUM_OCTEON_SOC
29613166 default MIPS_CMDLINE_FROM_BOOTLOADER
29623167
....@@ -2986,10 +3191,6 @@
29863191 bool
29873192 default y
29883193
2989
-config HAVE_LATENCYTOP_SUPPORT
2990
- bool
2991
- default y
2992
-
29933194 config PGTABLE_LEVELS
29943195 int
29953196 default 4 if PAGE_SIZE_4KB && MIPS_VA_BITS_48
....@@ -3001,47 +3202,14 @@
30013202
30023203 menu "Bus options (PCI, PCMCIA, EISA, ISA, TC)"
30033204
3004
-config HW_HAS_EISA
3005
- bool
3006
-config HW_HAS_PCI
3007
- bool
3008
-
3009
-config PCI
3010
- bool "Support for PCI controller"
3011
- depends on HW_HAS_PCI
3012
- select PCI_DOMAINS
3013
- help
3014
- Find out whether you have a PCI motherboard. PCI is the name of a
3015
- bus system, i.e. the way the CPU talks to the other stuff inside
3016
- your box. Other bus systems are ISA, EISA, or VESA. If you have PCI,
3017
- say Y, otherwise N.
3018
-
3019
-config HT_PCI
3020
- bool "Support for HT-linked PCI"
3021
- default y
3022
- depends on CPU_LOONGSON3
3023
- select PCI
3024
- select PCI_DOMAINS
3025
- help
3026
- Loongson family machines use Hyper-Transport bus for inter-core
3027
- connection and device connection. The PCI bus is a subordinate
3028
- linked at HT. Choose Y for Loongson-3 based machines.
3029
-
3030
-config PCI_DOMAINS
3031
- bool
3032
-
3033
-config PCI_DOMAINS_GENERIC
3034
- bool
3035
-
30363205 config PCI_DRIVERS_GENERIC
3037
- select PCI_DOMAINS_GENERIC if PCI_DOMAINS
3206
+ select PCI_DOMAINS_GENERIC if PCI
30383207 bool
30393208
30403209 config PCI_DRIVERS_LEGACY
30413210 def_bool !PCI_DRIVERS_GENERIC
30423211 select NO_GENERIC_PCI_IOPORT_MAP
3043
-
3044
-source "drivers/pci/Kconfig"
3212
+ select PCI_DOMAINS if PCI
30453213
30463214 #
30473215 # ISA support is now enabled via select. Too many systems still have the one
....@@ -3050,26 +3218,6 @@
30503218 #
30513219 config ISA
30523220 bool
3053
-
3054
-config EISA
3055
- bool "EISA support"
3056
- depends on HW_HAS_EISA
3057
- select ISA
3058
- select GENERIC_ISA_DMA
3059
- ---help---
3060
- The Extended Industry Standard Architecture (EISA) bus was
3061
- developed as an open alternative to the IBM MicroChannel bus.
3062
-
3063
- The EISA bus provided some of the features of the IBM MicroChannel
3064
- bus while maintaining backward compatibility with cards made for
3065
- the older ISA bus. The EISA bus saw limited use between 1988 and
3066
- 1995 when it was made obsolete by the PCI bus.
3067
-
3068
- Say Y here if you are building a kernel for an EISA-based machine.
3069
-
3070
- Otherwise, say N.
3071
-
3072
-source "drivers/eisa/Kconfig"
30733221
30743222 config TC
30753223 bool "TURBOchannel support"
....@@ -3097,10 +3245,10 @@
30973245 default 15
30983246
30993247 config ARCH_MMAP_RND_COMPAT_BITS_MIN
3100
- default 8
3248
+ default 8
31013249
31023250 config ARCH_MMAP_RND_COMPAT_BITS_MAX
3103
- default 15
3251
+ default 15
31043252
31053253 config I8253
31063254 bool
....@@ -3113,21 +3261,6 @@
31133261
31143262 config ZONE_DMA32
31153263 bool
3116
-
3117
-source "drivers/pcmcia/Kconfig"
3118
-
3119
-config HAS_RAPIDIO
3120
- bool
3121
- default n
3122
-
3123
-config RAPIDIO
3124
- tristate "RapidIO support"
3125
- depends on HAS_RAPIDIO || PCI
3126
- help
3127
- If you say Y here, the kernel will include drivers and
3128
- infrastructure code to support RapidIO interconnect devices.
3129
-
3130
-source "drivers/rapidio/Kconfig"
31313264
31323265 endmenu
31333266
....@@ -3207,3 +3340,5 @@
32073340 source "drivers/firmware/Kconfig"
32083341
32093342 source "arch/mips/kvm/Kconfig"
3343
+
3344
+source "arch/mips/vdso/Kconfig"