3 source "lib/Kconfig.debug"
6 bool "Export kernel pagetable layout ot userspace via debugfs"
7 depends on DEBUG_KERNEL
10 Say Y here if you want to show the kernel pagetable layout in a
11 debugfs file. This information is only useful for kernel developers
12 who are working in architecture specific areas of the kernel.
13 It is probably not a good idea to enable this feature in a production
18 bool "Filter access to /dev/mem"
21 If this option is disabled, you allow userspace (root) access to all
22 of memory, including kernel and userspace memory. Accidental
23 access to this is obviously disastrous, but specific access can
24 be used by people debugging the kernel.
26 If this option is switched on, the /dev/mem file only allows
27 userspace access to memory mapped peripherals.
31 # RMK wants arm kernels compiled with frame pointers or stack unwinding.
32 # If you know what you are doing and are willing to live without stack
33 # traces, you can get a slightly smaller kernel by setting this option to
34 # n, but then RMK will have to kill you ;).
37 depends on !THUMB2_KERNEL
38 default y if !ARM_UNWIND || FUNCTION_GRAPH_TRACER
40 If you say N here, the resulting kernel will be slightly smaller and
41 faster. However, if neither FRAME_POINTER nor ARM_UNWIND are enabled,
42 when a problem occurs with the kernel, the information that is
43 reported is severely limited.
46 bool "Enable stack unwinding support (EXPERIMENTAL)"
50 This option enables stack unwinding support in the kernel
51 using the information automatically generated by the
52 compiler. The resulting kernel image is slightly bigger but
53 the performance is not affected. Currently, this feature
54 only works with EABI compilers. If unsure say Y.
58 depends on FUNCTION_TRACER && FRAME_POINTER
62 bool "Verbose user fault messages"
64 When a user program crashes due to an exception, the kernel can
65 print a brief message explaining what the problem was. This is
66 sometimes helpful for debugging but serves no purpose on a
67 production system. Most people should say N here.
69 In addition, you need to pass user_debug=N on the kernel command
70 line to enable this feature. N consists of the sum of:
72 1 - undefined instruction events
74 4 - invalid data aborts
78 # These options are only for real kernel hackers who want to get their hands dirty.
80 bool "Kernel low-level debugging functions (read help!)"
81 depends on DEBUG_KERNEL
83 Say Y here to include definitions of printascii, printch, printhex
84 in the kernel. This is helpful if you are debugging code that
85 executes before the console is initialized.
87 Note that selecting this option will limit the kernel to a single
88 UART definition, as specified below. Attempting to boot the kernel
89 image on a different platform *will not work*, so this option should
90 not be enabled for kernels that are intended to be portable.
93 prompt "Kernel low-level debugging port"
96 config AT91_DEBUG_LL_DBGU0
97 bool "Kernel low-level debugging on rm9200, 9260/9g20, 9261/9g10 and 9rl"
98 depends on HAVE_AT91_DBGU0
100 config AT91_DEBUG_LL_DBGU1
101 bool "Kernel low-level debugging on 9263 and 9g45"
102 depends on HAVE_AT91_DBGU1
105 bool "Kernel low-level debugging on BCM2835 PL011 UART"
106 depends on ARCH_BCM2835
107 select DEBUG_UART_PL01X
109 config DEBUG_CLPS711X_UART1
110 bool "Kernel low-level debugging messages via UART1"
111 depends on ARCH_CLPS711X
113 Say Y here if you want the debug print routines to direct
114 their output to the first serial port on these devices.
116 config DEBUG_CLPS711X_UART2
117 bool "Kernel low-level debugging messages via UART2"
118 depends on ARCH_CLPS711X
120 Say Y here if you want the debug print routines to direct
121 their output to the second serial port on these devices.
124 bool "Kernel Kernel low-level debugging on Cavium Networks CNS3xxx"
125 depends on ARCH_CNS3XXX
126 select DEBUG_UART_PL01X
128 Say Y here if you want the debug print routines to direct
129 their output to the CNS3xxx UART0.
131 config DEBUG_DAVINCI_DA8XX_UART1
132 bool "Kernel low-level debugging on DaVinci DA8XX using UART1"
133 depends on ARCH_DAVINCI_DA8XX
134 select DEBUG_UART_8250
136 Say Y here if you want the debug print routines to direct
137 their output to UART1 serial port on DaVinci DA8XX devices.
139 config DEBUG_DAVINCI_DA8XX_UART2
140 bool "Kernel low-level debugging on DaVinci DA8XX using UART2"
141 depends on ARCH_DAVINCI_DA8XX
142 select DEBUG_UART_8250
144 Say Y here if you want the debug print routines to direct
145 their output to UART2 serial port on DaVinci DA8XX devices.
147 config DEBUG_DAVINCI_DMx_UART0
148 bool "Kernel low-level debugging on DaVinci DMx using UART0"
149 depends on ARCH_DAVINCI_DMx
150 select DEBUG_UART_8250
152 Say Y here if you want the debug print routines to direct
153 their output to UART0 serial port on DaVinci DMx devices.
155 config DEBUG_DAVINCI_TNETV107X_UART1
156 bool "Kernel low-level debugging on DaVinci TNETV107x using UART1"
157 depends on ARCH_DAVINCI_TNETV107X
158 select DEBUG_UART_8250
160 Say Y here if you want the debug print routines to direct
161 their output to UART1 serial port on DaVinci TNETV107X
164 config DEBUG_ZYNQ_UART0
165 bool "Kernel low-level debugging on Xilinx Zynq using UART0"
168 Say Y here if you want the debug print routines to direct
169 their output to UART0 on the Zynq platform.
171 config DEBUG_ZYNQ_UART1
172 bool "Kernel low-level debugging on Xilinx Zynq using UART1"
175 Say Y here if you want the debug print routines to direct
176 their output to UART1 on the Zynq platform.
178 If you have a ZC702 board and want early boot messages to
179 appear on the USB serial adaptor, select this option.
181 config DEBUG_DC21285_PORT
182 bool "Kernel low-level debugging messages via footbridge serial port"
183 depends on FOOTBRIDGE
185 Say Y here if you want the debug print routines to direct
186 their output to the serial port in the DC21285 (Footbridge).
188 config DEBUG_FOOTBRIDGE_COM1
189 bool "Kernel low-level debugging messages via footbridge 8250 at PCI COM1"
190 depends on FOOTBRIDGE
192 Say Y here if you want the debug print routines to direct
193 their output to the 8250 at PCI COM1.
195 config DEBUG_HI3620_UART
196 bool "Hisilicon HI3620 Debug UART"
197 depends on ARCH_HI3xxx
198 select DEBUG_UART_PL01X
200 Say Y here if you want kernel low-level debugging support
203 config DEBUG_HI3716_UART
204 bool "Hisilicon Hi3716 Debug UART"
205 depends on ARCH_HI3xxx
206 select DEBUG_UART_PL01X
208 Say Y here if you want kernel low-level debugging support
211 config DEBUG_HIGHBANK_UART
212 bool "Kernel low-level debugging messages via Highbank UART"
213 depends on ARCH_HIGHBANK
214 select DEBUG_UART_PL01X
216 Say Y here if you want the debug print routines to direct
217 their output to the UART on Highbank based devices.
219 config DEBUG_IMX1_UART
220 bool "i.MX1 Debug UART"
223 Say Y here if you want kernel low-level debugging support
226 config DEBUG_IMX23_UART
227 bool "i.MX23 Debug UART"
229 select DEBUG_UART_PL01X
231 Say Y here if you want kernel low-level debugging support
234 config DEBUG_IMX25_UART
235 bool "i.MX25 Debug UART"
238 Say Y here if you want kernel low-level debugging support
241 config DEBUG_IMX21_IMX27_UART
242 bool "i.MX21 and i.MX27 Debug UART"
243 depends on SOC_IMX21 || SOC_IMX27
245 Say Y here if you want kernel low-level debugging support
248 config DEBUG_IMX28_UART
249 bool "i.MX28 Debug UART"
251 select DEBUG_UART_PL01X
253 Say Y here if you want kernel low-level debugging support
256 config DEBUG_IMX31_UART
257 bool "i.MX31 Debug UART"
260 Say Y here if you want kernel low-level debugging support
263 config DEBUG_IMX35_UART
264 bool "i.MX35 Debug UART"
267 Say Y here if you want kernel low-level debugging support
270 config DEBUG_IMX50_UART
271 bool "i.MX50 Debug UART"
274 Say Y here if you want kernel low-level debugging support
277 config DEBUG_IMX51_UART
278 bool "i.MX51 Debug UART"
281 Say Y here if you want kernel low-level debugging support
284 config DEBUG_IMX53_UART
285 bool "i.MX53 Debug UART"
288 Say Y here if you want kernel low-level debugging support
291 config DEBUG_IMX6Q_UART
292 bool "i.MX6Q/DL Debug UART"
295 Say Y here if you want kernel low-level debugging support
298 config DEBUG_IMX6SL_UART
299 bool "i.MX6SL Debug UART"
300 depends on SOC_IMX6SL
302 Say Y here if you want kernel low-level debugging support
305 config DEBUG_KEYSTONE_UART0
306 bool "Kernel low-level debugging on KEYSTONE2 using UART0"
307 depends on ARCH_KEYSTONE
308 select DEBUG_UART_8250
310 Say Y here if you want the debug print routines to direct
311 their output to UART0 serial port on KEYSTONE2 devices.
313 config DEBUG_KEYSTONE_UART1
314 bool "Kernel low-level debugging on KEYSTONE2 using UART1"
315 depends on ARCH_KEYSTONE
316 select DEBUG_UART_8250
318 Say Y here if you want the debug print routines to direct
319 their output to UART1 serial port on KEYSTONE2 devices.
321 config DEBUG_MMP_UART2
322 bool "Kernel low-level debugging message via MMP UART2"
324 select DEBUG_UART_8250
326 Say Y here if you want kernel low-level debugging support
329 config DEBUG_MMP_UART3
330 bool "Kernel low-level debugging message via MMP UART3"
332 select DEBUG_UART_8250
334 Say Y here if you want kernel low-level debugging support
337 config DEBUG_MSM_UART1
338 bool "Kernel low-level debugging messages via MSM UART1"
339 depends on ARCH_MSM7X00A || ARCH_MSM7X30 || ARCH_QSD8X50
340 select DEBUG_MSM_UART
342 Say Y here if you want the debug print routines to direct
343 their output to the first serial port on MSM devices.
345 config DEBUG_MSM_UART2
346 bool "Kernel low-level debugging messages via MSM UART2"
347 depends on ARCH_MSM7X00A || ARCH_MSM7X30 || ARCH_QSD8X50
348 select DEBUG_MSM_UART
350 Say Y here if you want the debug print routines to direct
351 their output to the second serial port on MSM devices.
353 config DEBUG_MSM_UART3
354 bool "Kernel low-level debugging messages via MSM UART3"
355 depends on ARCH_MSM7X00A || ARCH_MSM7X30 || ARCH_QSD8X50
356 select DEBUG_MSM_UART
358 Say Y here if you want the debug print routines to direct
359 their output to the third serial port on MSM devices.
361 config DEBUG_MSM8660_UART
362 bool "Kernel low-level debugging messages via MSM 8660 UART"
363 depends on ARCH_MSM8X60
364 select MSM_HAS_DEBUG_UART_HS
365 select DEBUG_MSM_UART
367 Say Y here if you want the debug print routines to direct
368 their output to the serial port on MSM 8660 devices.
370 config DEBUG_MSM8960_UART
371 bool "Kernel low-level debugging messages via MSM 8960 UART"
372 depends on ARCH_MSM8960
373 select MSM_HAS_DEBUG_UART_HS
374 select DEBUG_MSM_UART
376 Say Y here if you want the debug print routines to direct
377 their output to the serial port on MSM 8960 devices.
379 config DEBUG_MSM8974_UART
380 bool "Kernel low-level debugging messages via MSM 8974 UART"
381 depends on ARCH_MSM8974
382 select MSM_HAS_DEBUG_UART_HS
383 select DEBUG_MSM_UART
385 Say Y here if you want the debug print routines to direct
386 their output to the serial port on MSM 8974 devices.
388 config DEBUG_MVEBU_UART
389 bool "Kernel low-level debugging messages via MVEBU UART (old bootloaders)"
390 depends on ARCH_MVEBU
391 select DEBUG_UART_8250
393 Say Y here if you want kernel low-level debugging support
394 on MVEBU based platforms.
396 This option should be used with the old bootloaders
397 that left the internal registers mapped at
398 0xd0000000. As of today, this is the case on
399 platforms such as the Globalscale Mirabox or the
400 Plathome OpenBlocks AX3, when using the original
403 If the wrong DEBUG_MVEBU_UART* option is selected,
404 when u-boot hands over to the kernel, the system
405 silently crashes, with no serial output at all.
407 config DEBUG_MVEBU_UART_ALTERNATE
408 bool "Kernel low-level debugging messages via MVEBU UART (new bootloaders)"
409 depends on ARCH_MVEBU
410 select DEBUG_UART_8250
412 Say Y here if you want kernel low-level debugging support
413 on MVEBU based platforms.
415 This option should be used with the new bootloaders
416 that remap the internal registers at 0xf1000000.
418 If the wrong DEBUG_MVEBU_UART* option is selected,
419 when u-boot hands over to the kernel, the system
420 silently crashes, with no serial output at all.
426 Say Y here if you want kernel low-level debugging support
427 on Vybrid based platforms.
429 config DEBUG_NOMADIK_UART
430 bool "Kernel low-level debugging messages via NOMADIK UART"
431 depends on ARCH_NOMADIK
432 select DEBUG_UART_PL01X
434 Say Y here if you want kernel low-level debugging support
435 on NOMADIK based platforms.
437 config DEBUG_NSPIRE_CLASSIC_UART
438 bool "Kernel low-level debugging via TI-NSPIRE 8250 UART"
439 depends on ARCH_NSPIRE
440 select DEBUG_UART_8250
442 Say Y here if you want kernel low-level debugging support
443 on TI-NSPIRE classic models.
445 config DEBUG_NSPIRE_CX_UART
446 bool "Kernel low-level debugging via TI-NSPIRE PL011 UART"
447 depends on ARCH_NSPIRE
448 select DEBUG_UART_PL01X
450 Say Y here if you want kernel low-level debugging support
451 on TI-NSPIRE CX models.
453 config DEBUG_OMAP2UART1
454 bool "OMAP2/3/4 UART1 (omap2/3 sdp boards and some omap3 boards)"
455 depends on ARCH_OMAP2PLUS
456 select DEBUG_OMAP2PLUS_UART
458 This covers at least h4, 2430sdp, 3430sdp, 3630sdp,
459 omap3 torpedo and 3530 lv som.
461 config DEBUG_OMAP2UART2
462 bool "Kernel low-level debugging messages via OMAP2/3/4 UART2"
463 depends on ARCH_OMAP2PLUS
464 select DEBUG_OMAP2PLUS_UART
466 config DEBUG_OMAP2UART3
467 bool "Kernel low-level debugging messages via OMAP2 UART3 (n8x0)"
468 depends on ARCH_OMAP2PLUS
469 select DEBUG_OMAP2PLUS_UART
471 config DEBUG_OMAP3UART3
472 bool "Kernel low-level debugging messages via OMAP3 UART3 (most omap3 boards)"
473 depends on ARCH_OMAP2PLUS
474 select DEBUG_OMAP2PLUS_UART
476 This covers at least cm_t3x, beagle, crane, devkit8000,
477 igep00x0, ldp, n900, n9(50), pandora, overo, touchbook,
480 config DEBUG_OMAP4UART3
481 bool "Kernel low-level debugging messages via OMAP4/5 UART3 (omap4 blaze, panda, omap5 sevm)"
482 depends on ARCH_OMAP2PLUS
483 select DEBUG_OMAP2PLUS_UART
485 config DEBUG_OMAP3UART4
486 bool "Kernel low-level debugging messages via OMAP36XX UART4"
487 depends on ARCH_OMAP2PLUS
488 select DEBUG_OMAP2PLUS_UART
490 config DEBUG_OMAP4UART4
491 bool "Kernel low-level debugging messages via OMAP4/5 UART4"
492 depends on ARCH_OMAP2PLUS
493 select DEBUG_OMAP2PLUS_UART
495 config DEBUG_TI81XXUART1
496 bool "Kernel low-level debugging messages via TI81XX UART1 (ti8148evm)"
497 depends on ARCH_OMAP2PLUS
498 select DEBUG_OMAP2PLUS_UART
500 config DEBUG_TI81XXUART2
501 bool "Kernel low-level debugging messages via TI81XX UART2"
502 depends on ARCH_OMAP2PLUS
503 select DEBUG_OMAP2PLUS_UART
505 config DEBUG_TI81XXUART3
506 bool "Kernel low-level debugging messages via TI81XX UART3 (ti8168evm)"
507 depends on ARCH_OMAP2PLUS
508 select DEBUG_OMAP2PLUS_UART
510 config DEBUG_AM33XXUART1
511 bool "Kernel low-level debugging messages via AM33XX UART1"
512 depends on ARCH_OMAP2PLUS
513 select DEBUG_OMAP2PLUS_UART
515 config DEBUG_ZOOM_UART
516 bool "Kernel low-level debugging messages via Zoom2/3 UART"
517 depends on ARCH_OMAP2PLUS
518 select DEBUG_OMAP2PLUS_UART
520 config DEBUG_PICOXCELL_UART
521 depends on ARCH_PICOXCELL
522 bool "Use PicoXcell UART for low-level debug"
523 select DEBUG_UART_8250
525 Say Y here if you want kernel low-level debugging support
526 on PicoXcell based platforms.
528 config DEBUG_PXA_UART1
530 bool "Use PXA UART1 for low-level debug"
531 select DEBUG_UART_8250
533 Say Y here if you want kernel low-level debugging support
536 config DEBUG_REALVIEW_STD_PORT
537 bool "RealView Default UART"
538 depends on ARCH_REALVIEW
539 select DEBUG_UART_PL01X
541 Say Y here if you want the debug print routines to direct
542 their output to the serial port on RealView EB, PB11MP, PBA8
545 config DEBUG_REALVIEW_PB1176_PORT
546 bool "RealView PB1176 UART"
547 depends on MACH_REALVIEW_PB1176
548 select DEBUG_UART_PL01X
550 Say Y here if you want the debug print routines to direct
551 their output to the standard serial port on the RealView
554 config DEBUG_RK29_UART0
555 bool "Kernel low-level debugging messages via Rockchip RK29 UART0"
556 depends on ARCH_ROCKCHIP
557 select DEBUG_UART_8250
559 Say Y here if you want kernel low-level debugging support
560 on Rockchip based platforms.
562 config DEBUG_RK29_UART1
563 bool "Kernel low-level debugging messages via Rockchip RK29 UART1"
564 depends on ARCH_ROCKCHIP
565 select DEBUG_UART_8250
567 Say Y here if you want kernel low-level debugging support
568 on Rockchip based platforms.
570 config DEBUG_RK29_UART2
571 bool "Kernel low-level debugging messages via Rockchip RK29 UART2"
572 depends on ARCH_ROCKCHIP
573 select DEBUG_UART_8250
575 Say Y here if you want kernel low-level debugging support
576 on Rockchip based platforms.
578 config DEBUG_RK3X_UART0
579 bool "Kernel low-level debugging messages via Rockchip RK3X UART0"
580 depends on ARCH_ROCKCHIP
581 select DEBUG_UART_8250
583 Say Y here if you want kernel low-level debugging support
584 on Rockchip based platforms.
586 config DEBUG_RK3X_UART1
587 bool "Kernel low-level debugging messages via Rockchip RK3X UART1"
588 depends on ARCH_ROCKCHIP
589 select DEBUG_UART_8250
591 Say Y here if you want kernel low-level debugging support
592 on Rockchip based platforms.
594 config DEBUG_RK3X_UART2
595 bool "Kernel low-level debugging messages via Rockchip RK3X UART2"
596 depends on ARCH_ROCKCHIP
597 select DEBUG_UART_8250
599 Say Y here if you want kernel low-level debugging support
600 on Rockchip based platforms.
602 config DEBUG_RK3X_UART3
603 bool "Kernel low-level debugging messages via Rockchip RK3X UART3"
604 depends on ARCH_ROCKCHIP
605 select DEBUG_UART_8250
607 Say Y here if you want kernel low-level debugging support
608 on Rockchip based platforms.
610 config DEBUG_S3C_UART0
611 depends on PLAT_SAMSUNG
612 select DEBUG_EXYNOS_UART if ARCH_EXYNOS
613 bool "Use S3C UART 0 for low-level debug"
615 Say Y here if you want the debug print routines to direct
616 their output to UART 0. The port must have been initialised
617 by the boot-loader before use.
619 The uncompressor code port configuration is now handled
620 by CONFIG_S3C_LOWLEVEL_UART_PORT.
622 config DEBUG_S3C_UART1
623 depends on PLAT_SAMSUNG
624 select DEBUG_EXYNOS_UART if ARCH_EXYNOS
625 bool "Use S3C UART 1 for low-level debug"
627 Say Y here if you want the debug print routines to direct
628 their output to UART 1. The port must have been initialised
629 by the boot-loader before use.
631 The uncompressor code port configuration is now handled
632 by CONFIG_S3C_LOWLEVEL_UART_PORT.
634 config DEBUG_S3C_UART2
635 depends on PLAT_SAMSUNG
636 select DEBUG_EXYNOS_UART if ARCH_EXYNOS
637 bool "Use S3C UART 2 for low-level debug"
639 Say Y here if you want the debug print routines to direct
640 their output to UART 2. The port must have been initialised
641 by the boot-loader before use.
643 The uncompressor code port configuration is now handled
644 by CONFIG_S3C_LOWLEVEL_UART_PORT.
646 config DEBUG_S3C_UART3
647 depends on PLAT_SAMSUNG && ARCH_EXYNOS
648 select DEBUG_EXYNOS_UART
649 bool "Use S3C UART 3 for low-level debug"
651 Say Y here if you want the debug print routines to direct
652 their output to UART 3. The port must have been initialised
653 by the boot-loader before use.
655 The uncompressor code port configuration is now handled
656 by CONFIG_S3C_LOWLEVEL_UART_PORT.
658 config DEBUG_SOCFPGA_UART
659 depends on ARCH_SOCFPGA
660 bool "Use SOCFPGA UART for low-level debug"
661 select DEBUG_UART_8250
663 Say Y here if you want kernel low-level debugging support
664 on SOCFPGA based platforms.
666 config DEBUG_SUNXI_UART0
667 bool "Kernel low-level debugging messages via sunXi UART0"
668 depends on ARCH_SUNXI
669 select DEBUG_UART_8250
671 Say Y here if you want kernel low-level debugging support
672 on Allwinner A1X based platforms on the UART0.
674 config DEBUG_SUNXI_UART1
675 bool "Kernel low-level debugging messages via sunXi UART1"
676 depends on ARCH_SUNXI
677 select DEBUG_UART_8250
679 Say Y here if you want kernel low-level debugging support
680 on Allwinner A1X based platforms on the UART1.
682 config TEGRA_DEBUG_UART_AUTO_ODMDATA
683 bool "Kernel low-level debugging messages via Tegra UART via ODMDATA"
684 depends on ARCH_TEGRA
685 select DEBUG_TEGRA_UART
687 Automatically determines which UART to use for low-level
688 debug based on the ODMDATA value. This value is part of
689 the BCT, and is written to the boot memory device using
690 nvflash, or other flashing tool. When bits 19:18 are 3,
691 then bits 17:15 indicate which UART to use; 0/1/2/3/4
694 config TEGRA_DEBUG_UARTA
695 bool "Kernel low-level debugging messages via Tegra UART A"
696 depends on ARCH_TEGRA
697 select DEBUG_TEGRA_UART
699 Say Y here if you want kernel low-level debugging support
700 on Tegra based platforms.
702 config TEGRA_DEBUG_UARTB
703 bool "Kernel low-level debugging messages via Tegra UART B"
704 depends on ARCH_TEGRA
705 select DEBUG_TEGRA_UART
707 Say Y here if you want kernel low-level debugging support
708 on Tegra based platforms.
710 config TEGRA_DEBUG_UARTC
711 bool "Kernel low-level debugging messages via Tegra UART C"
712 depends on ARCH_TEGRA
713 select DEBUG_TEGRA_UART
715 Say Y here if you want kernel low-level debugging support
716 on Tegra based platforms.
718 config TEGRA_DEBUG_UARTD
719 bool "Kernel low-level debugging messages via Tegra UART D"
720 depends on ARCH_TEGRA
721 select DEBUG_TEGRA_UART
723 Say Y here if you want kernel low-level debugging support
724 on Tegra based platforms.
726 config TEGRA_DEBUG_UARTE
727 bool "Kernel low-level debugging messages via Tegra UART E"
728 depends on ARCH_TEGRA
729 select DEBUG_TEGRA_UART
731 Say Y here if you want kernel low-level debugging support
732 on Tegra based platforms.
734 config DEBUG_SIRFPRIMA2_UART1
735 bool "Kernel low-level debugging messages via SiRFprimaII UART1"
736 depends on ARCH_PRIMA2
738 Say Y here if you want the debug print routines to direct
739 their output to the uart1 port on SiRFprimaII devices.
741 config DEBUG_SIRFMARCO_UART1
742 bool "Kernel low-level debugging messages via SiRFmarco UART1"
743 depends on ARCH_MARCO
745 Say Y here if you want the debug print routines to direct
746 their output to the uart1 port on SiRFmarco devices.
748 config STIH41X_DEBUG_ASC2
749 bool "Use StiH415/416 ASC2 UART for low-level debug"
751 select DEBUG_STI_UART
753 Say Y here if you want kernel low-level debugging support
754 on STiH415/416 based platforms like b2000, which has
755 default UART wired up to ASC2.
759 config STIH41X_DEBUG_SBC_ASC1
760 bool "Use StiH415/416 SBC ASC1 UART for low-level debug"
762 select DEBUG_STI_UART
764 Say Y here if you want kernel low-level debugging support
765 on STiH415/416 based platforms like b2020. which has
766 default UART wired up to SBC ASC1.
770 config DEBUG_U300_UART
771 bool "Kernel low-level debugging messages via U300 UART0"
773 select DEBUG_UART_PL01X
775 Say Y here if you want the debug print routines to direct
776 their output to the uart port on U300 devices.
778 config DEBUG_UX500_UART
779 depends on ARCH_U8500
780 bool "Use Ux500 UART for low-level debug"
782 Say Y here if you want kernel low-level debugging support
783 on Ux500 based platforms.
785 config DEBUG_VEXPRESS_UART0_DETECT
786 bool "Autodetect UART0 on Versatile Express Cortex-A core tiles"
787 depends on ARCH_VEXPRESS && CPU_CP15_MMU
789 This option enables a simple heuristic which tries to determine
790 the motherboard's memory map variant (original or RS1) and then
791 choose the relevant UART0 base address.
793 Note that this will only work with standard A-class core tiles,
794 and may fail with non-standard SMM or custom software models.
796 config DEBUG_VEXPRESS_UART0_CA9
797 bool "Use PL011 UART0 at 0x10009000 (V2P-CA9 core tile)"
798 depends on ARCH_VEXPRESS
799 select DEBUG_UART_PL01X
801 This option selects UART0 at 0x10009000. Except for custom models,
802 this applies only to the V2P-CA9 tile.
804 config DEBUG_VEXPRESS_UART0_RS1
805 bool "Use PL011 UART0 at 0x1c090000 (RS1 complaint tiles)"
806 depends on ARCH_VEXPRESS
807 select DEBUG_UART_PL01X
809 This option selects UART0 at 0x1c090000. This applies to most
810 of the tiles using the RS1 memory map, including all new A-class
811 core tiles, FPGA-based SMMs and software models.
813 config DEBUG_VEXPRESS_UART0_CRX
814 bool "Use PL011 UART0 at 0xb0090000 (Cortex-R compliant tiles)"
815 depends on ARCH_VEXPRESS && !MMU
816 select DEBUG_UART_PL01X
818 This option selects UART0 at 0xb0090000. This is appropriate for
819 Cortex-R series tiles and SMMs, such as Cortex-R5 and Cortex-R7
821 config DEBUG_VT8500_UART0
822 bool "Use UART0 on VIA/Wondermedia SoCs"
823 depends on ARCH_VT8500
825 This option selects UART0 on VIA/Wondermedia System-on-a-chip
826 devices, including VT8500, WM8505, WM8650 and WM8850.
828 config DEBUG_LL_UART_NONE
829 bool "No low-level debugging UART"
830 depends on !ARCH_MULTIPLATFORM
832 Say Y here if your platform doesn't provide a UART option
833 above. This relies on your platform choosing the right UART
834 definition internally in order for low-level debugging to
838 bool "Kernel low-level debugging via EmbeddedICE DCC channel"
840 Say Y here if you want the debug print routines to direct
841 their output to the EmbeddedICE macrocell's DCC channel using
842 co-processor 14. This is known to work on the ARM9 style ICE
843 channel and on the XScale with the PEEDI.
845 Note that the system will appear to hang during boot if there
846 is nothing connected to read from the DCC.
848 config DEBUG_SEMIHOSTING
849 bool "Kernel low-level debug output via semihosting I/O"
851 Semihosting enables code running on an ARM target to use
852 the I/O facilities on a host debugger/emulator through a
853 simple SVC call. The host debugger or emulator must have
854 semihosting enabled for the special svc call to be trapped
855 otherwise the kernel will crash.
857 This is known to work with OpenOCD, as well as
858 ARM's Fast Models, or any other controlling environment
859 that implements semihosting.
861 For more details about semihosting, please see
862 chapter 8 of DUI0203I_rvct_developer_guide.pdf from ARM Ltd.
864 config DEBUG_LL_UART_8250
865 bool "Kernel low-level debugging via 8250 UART"
867 Say Y here if you wish the debug print routes to direct
868 their output to an 8250 UART. You can use this option
869 to provide the parameters for the 8250 UART rather than
870 selecting one of the platform specific options above if
871 you know the parameters for the port.
873 This option is preferred over the platform specific
874 options; the platform specific options are deprecated
875 and will be soon removed.
877 config DEBUG_LL_UART_EFM32
878 bool "Kernel low-level debugging via efm32 UART"
879 depends on ARCH_EFM32
881 Say Y here if you want the debug print routines to direct
882 their output to an UART or USART port on efm32 based
883 machines. Use the following addresses for DEBUG_UART_PHYS:
891 config DEBUG_LL_UART_PL01X
892 bool "Kernel low-level debugging via ARM Ltd PL01x Primecell UART"
894 Say Y here if you wish the debug print routes to direct
895 their output to a PL01x Primecell UART. You can use
896 this option to provide the parameters for the UART
897 rather than selecting one of the platform specific
898 options above if you know the parameters for the port.
900 This option is preferred over the platform specific
901 options; the platform specific options are deprecated
902 and will be soon removed.
906 config DEBUG_EXYNOS_UART
909 config DEBUG_OMAP2PLUS_UART
911 depends on ARCH_OMAP2PLUS
913 config DEBUG_IMX_UART_PORT
914 int "i.MX Debug UART Port Selection" if DEBUG_IMX1_UART || \
915 DEBUG_IMX25_UART || \
916 DEBUG_IMX21_IMX27_UART || \
917 DEBUG_IMX31_UART || \
918 DEBUG_IMX35_UART || \
919 DEBUG_IMX50_UART || \
920 DEBUG_IMX51_UART || \
921 DEBUG_IMX53_UART || \
922 DEBUG_IMX6Q_UART || \
927 Choose UART port on which kernel low-level debug messages
930 config DEBUG_TEGRA_UART
932 depends on ARCH_TEGRA
934 config DEBUG_STI_UART
938 config DEBUG_MSM_UART
942 config DEBUG_LL_INCLUDE
944 default "debug/8250.S" if DEBUG_LL_UART_8250 || DEBUG_UART_8250
945 default "debug/pl01x.S" if DEBUG_LL_UART_PL01X || DEBUG_UART_PL01X
946 default "debug/exynos.S" if DEBUG_EXYNOS_UART
947 default "debug/efm32.S" if DEBUG_LL_UART_EFM32
948 default "debug/icedcc.S" if DEBUG_ICEDCC
949 default "debug/imx.S" if DEBUG_IMX1_UART || \
950 DEBUG_IMX25_UART || \
951 DEBUG_IMX21_IMX27_UART || \
952 DEBUG_IMX31_UART || \
953 DEBUG_IMX35_UART || \
954 DEBUG_IMX50_UART || \
955 DEBUG_IMX51_UART || \
957 DEBUG_IMX6Q_UART || \
959 default "debug/msm.S" if DEBUG_MSM_UART
960 default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART
961 default "debug/sirf.S" if DEBUG_SIRFPRIMA2_UART1 || DEBUG_SIRFMARCO_UART1
962 default "debug/sti.S" if DEBUG_STI_UART
963 default "debug/tegra.S" if DEBUG_TEGRA_UART
964 default "debug/ux500.S" if DEBUG_UX500_UART
965 default "debug/vexpress.S" if DEBUG_VEXPRESS_UART0_DETECT
966 default "debug/vf.S" if DEBUG_VF_UART
967 default "debug/vt8500.S" if DEBUG_VT8500_UART0
968 default "debug/zynq.S" if DEBUG_ZYNQ_UART0 || DEBUG_ZYNQ_UART1
969 default "mach/debug-macro.S"
971 # Compatibility options for PL01x
972 config DEBUG_UART_PL01X
973 def_bool ARCH_EP93XX || \
980 # Compatibility options for 8250
981 config DEBUG_UART_8250
982 def_bool ARCH_DOVE || ARCH_EBSA110 || \
983 (FOOTBRIDGE && !DEBUG_DC21285_PORT) || \
984 ARCH_GEMINI || ARCH_IOP13XX || ARCH_IOP32X || \
985 ARCH_IOP33X || ARCH_IXP4XX || ARCH_KIRKWOOD || \
986 ARCH_LPC32XX || ARCH_MV78XX0 || ARCH_ORION5X || ARCH_RPC
988 config DEBUG_UART_PHYS
989 hex "Physical base address of debug UART"
990 default 0x01c20000 if DEBUG_DAVINCI_DMx_UART0
991 default 0x01c28000 if DEBUG_SUNXI_UART0
992 default 0x01c28400 if DEBUG_SUNXI_UART1
993 default 0x01d0c000 if DEBUG_DAVINCI_DA8XX_UART1
994 default 0x01d0d000 if DEBUG_DAVINCI_DA8XX_UART2
995 default 0x02530c00 if DEBUG_KEYSTONE_UART0
996 default 0x02531000 if DEBUG_KEYSTONE_UART1
997 default 0x03010fe0 if ARCH_RPC
998 default 0x08108300 if DEBUG_DAVINCI_TNETV107X_UART1
999 default 0x10009000 if DEBUG_REALVIEW_STD_PORT || DEBUG_CNS3XXX || \
1000 DEBUG_VEXPRESS_UART0_CA9
1001 default 0x1010c000 if DEBUG_REALVIEW_PB1176_PORT
1002 default 0x10124000 if DEBUG_RK3X_UART0
1003 default 0x10126000 if DEBUG_RK3X_UART1
1004 default 0x101f1000 if ARCH_VERSATILE
1005 default 0x101fb000 if DEBUG_NOMADIK_UART
1006 default 0x16000000 if ARCH_INTEGRATOR
1007 default 0x1c090000 if DEBUG_VEXPRESS_UART0_RS1
1008 default 0x20060000 if DEBUG_RK29_UART0
1009 default 0x20064000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2
1010 default 0x20068000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3
1011 default 0x20201000 if DEBUG_BCM2835
1012 default 0x4000e400 if DEBUG_LL_UART_EFM32
1013 default 0x40090000 if ARCH_LPC32XX
1014 default 0x40100000 if DEBUG_PXA_UART1
1015 default 0x42000000 if ARCH_GEMINI
1016 default 0x7c0003f8 if FOOTBRIDGE
1017 default 0x80230000 if DEBUG_PICOXCELL_UART
1018 default 0x80070000 if DEBUG_IMX23_UART
1019 default 0x80074000 if DEBUG_IMX28_UART
1020 default 0x808c0000 if ARCH_EP93XX
1021 default 0x90020000 if DEBUG_NSPIRE_CLASSIC_UART || DEBUG_NSPIRE_CX_UART
1022 default 0xb0090000 if DEBUG_VEXPRESS_UART0_CRX
1023 default 0xc0013000 if DEBUG_U300_UART
1024 default 0xc8000000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN
1025 default 0xc8000003 if ARCH_IXP4XX && CPU_BIG_ENDIAN
1026 default 0xd0000000 if ARCH_SPEAR3XX || ARCH_SPEAR6XX
1027 default 0xd0012000 if DEBUG_MVEBU_UART
1028 default 0xd4017000 if DEBUG_MMP_UART2
1029 default 0xd4018000 if DEBUG_MMP_UART3
1030 default 0xe0000000 if ARCH_SPEAR13XX
1031 default 0xf0000be0 if ARCH_EBSA110
1032 default 0xf1012000 if DEBUG_MVEBU_UART_ALTERNATE
1033 default 0xf1012000 if ARCH_DOVE || ARCH_KIRKWOOD || ARCH_MV78XX0 || \
1035 default 0xf8b00000 if DEBUG_HI3716_UART
1036 default 0xfcb00000 if DEBUG_HI3620_UART
1037 default 0xfe800000 if ARCH_IOP32X
1038 default 0xffc02000 if DEBUG_SOCFPGA_UART
1039 default 0xffd82340 if ARCH_IOP13XX
1040 default 0xfff36000 if DEBUG_HIGHBANK_UART
1041 default 0xfffff700 if ARCH_IOP33X
1042 depends on DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \
1043 DEBUG_LL_UART_EFM32 || \
1044 DEBUG_UART_8250 || DEBUG_UART_PL01X
1046 config DEBUG_UART_VIRT
1047 hex "Virtual base address of debug UART"
1048 default 0xe0010fe0 if ARCH_RPC
1049 default 0xf0000be0 if ARCH_EBSA110
1050 default 0xf0009000 if DEBUG_CNS3XXX
1051 default 0xf01fb000 if DEBUG_NOMADIK_UART
1052 default 0xf0201000 if DEBUG_BCM2835
1053 default 0xf11f1000 if ARCH_VERSATILE
1054 default 0xf1600000 if ARCH_INTEGRATOR
1055 default 0xf1c28000 if DEBUG_SUNXI_UART0
1056 default 0xf1c28400 if DEBUG_SUNXI_UART1
1057 default 0xf2100000 if DEBUG_PXA_UART1
1058 default 0xf4090000 if ARCH_LPC32XX
1059 default 0xf4200000 if ARCH_GEMINI
1060 default 0xf8009000 if DEBUG_VEXPRESS_UART0_CA9
1061 default 0xf8090000 if DEBUG_VEXPRESS_UART0_RS1
1062 default 0xfb009000 if DEBUG_REALVIEW_STD_PORT
1063 default 0xfb10c000 if DEBUG_REALVIEW_PB1176_PORT
1064 default 0xfd000000 if ARCH_SPEAR3XX || ARCH_SPEAR6XX
1065 default 0xfd000000 if ARCH_SPEAR13XX
1066 default 0xfd012000 if ARCH_MV78XX0
1067 default 0xfde12000 if ARCH_DOVE
1068 default 0xfe012000 if ARCH_ORION5X
1069 default 0xfe017000 if DEBUG_MMP_UART2
1070 default 0xfe018000 if DEBUG_MMP_UART3
1071 default 0xfe100000 if DEBUG_IMX23_UART || DEBUG_IMX28_UART
1072 default 0xfe230000 if DEBUG_PICOXCELL_UART
1073 default 0xfe800000 if ARCH_IOP32X
1074 default 0xfeb00000 if DEBUG_HI3620_UART || DEBUG_HI3716_UART
1075 default 0xfeb24000 if DEBUG_RK3X_UART0
1076 default 0xfeb26000 if DEBUG_RK3X_UART1
1077 default 0xfeb30c00 if DEBUG_KEYSTONE_UART0
1078 default 0xfeb31000 if DEBUG_KEYSTONE_UART1
1079 default 0xfec12000 if DEBUG_MVEBU_UART || DEBUG_MVEBU_UART_ALTERNATE
1080 default 0xfed60000 if DEBUG_RK29_UART0
1081 default 0xfed64000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2
1082 default 0xfed68000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3
1083 default 0xfec02000 if DEBUG_SOCFPGA_UART
1084 default 0xfec20000 if DEBUG_DAVINCI_DMx_UART0
1085 default 0xfed0c000 if DEBUG_DAVINCI_DA8XX_UART1
1086 default 0xfed0d000 if DEBUG_DAVINCI_DA8XX_UART2
1087 default 0xfed12000 if ARCH_KIRKWOOD
1088 default 0xfedc0000 if ARCH_EP93XX
1089 default 0xfee003f8 if FOOTBRIDGE
1090 default 0xfee08300 if DEBUG_DAVINCI_TNETV107X_UART1
1091 default 0xfee20000 if DEBUG_NSPIRE_CLASSIC_UART || DEBUG_NSPIRE_CX_UART
1092 default 0xfef36000 if DEBUG_HIGHBANK_UART
1093 default 0xfee82340 if ARCH_IOP13XX
1094 default 0xfef00000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN
1095 default 0xfef00003 if ARCH_IXP4XX && CPU_BIG_ENDIAN
1096 default 0xfefff700 if ARCH_IOP33X
1097 default 0xff003000 if DEBUG_U300_UART
1098 default DEBUG_UART_PHYS if !MMU
1099 depends on DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \
1100 DEBUG_UART_8250 || DEBUG_UART_PL01X
1102 config DEBUG_UART_8250_SHIFT
1103 int "Register offset shift for the 8250 debug UART"
1104 depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
1105 default 0 if FOOTBRIDGE || ARCH_IOP32X
1108 config DEBUG_UART_8250_WORD
1109 bool "Use 32-bit accesses for 8250 UART"
1110 depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
1111 depends on DEBUG_UART_8250_SHIFT >= 2
1112 default y if DEBUG_PICOXCELL_UART || DEBUG_SOCFPGA_UART || \
1114 DEBUG_DAVINCI_DMx_UART0 || DEBUG_DAVINCI_DA8XX_UART1 || \
1115 DEBUG_DAVINCI_DA8XX_UART2 || DEBUG_DAVINCI_TNETV107X_UART1
1117 config DEBUG_UART_8250_FLOW_CONTROL
1118 bool "Enable flow control for 8250 UART"
1119 depends on DEBUG_LL_UART_8250 || DEBUG_UART_8250
1120 default y if ARCH_EBSA110 || FOOTBRIDGE || ARCH_GEMINI || ARCH_RPC
1122 config DEBUG_UNCOMPRESS
1124 depends on ARCH_MULTIPLATFORM || ARCH_MSM
1125 default y if DEBUG_LL && !DEBUG_OMAP2PLUS_UART && \
1126 (!DEBUG_TEGRA_UART || !ZBOOT_ROM)
1128 This option influences the normal decompressor output for
1129 multiplatform kernels. Normally, multiplatform kernels disable
1130 decompressor output because it is not possible to know where to
1131 send the decompressor output.
1133 When this option is set, the selected DEBUG_LL output method
1134 will be re-used for normal decompressor output on multiplatform
1138 config UNCOMPRESS_INCLUDE
1140 default "debug/uncompress.h" if ARCH_MULTIPLATFORM || ARCH_MSM
1141 default "mach/uncompress.h"
1147 Say Y here if you want to have an early console using the
1148 kernel low-level debugging functions. Add earlyprintk to your
1149 kernel parameters to enable this console.
1152 bool "On-chip ETM and ETB"
1155 Enables the on-chip embedded trace macrocell and embedded trace
1156 buffer driver that will allow you to collect traces of the
1159 config ARM_KPROBES_TEST
1160 tristate "Kprobes test module"
1161 depends on KPROBES && MODULES
1163 Perform tests of kprobes API and instruction set simulation.
1165 config PID_IN_CONTEXTIDR
1166 bool "Write the current PID to the CONTEXTIDR register"
1167 depends on CPU_COPY_V6
1169 Enabling this option causes the kernel to write the current PID to
1170 the PROCID field of the CONTEXTIDR register, at the expense of some
1171 additional instructions during context switch. Say Y here only if you
1172 are planning to use hardware trace tools with this kernel.
1174 config DEBUG_SET_MODULE_RONX
1175 bool "Set loadable kernel module data as NX and text as RO"
1178 This option helps catch unintended modifications to loadable
1179 kernel module's text and read-only data. It also prevents execution
1180 of module data. Such protection may interfere with run-time code
1181 patching and dynamic kernel tracing - and they might also protect
1182 against certain classes of kernel exploits.
1183 If in doubt, say "N".