From: Ingo Molnar Date: Sat, 28 Mar 2009 22:05:50 +0000 (+0100) Subject: Merge branch 'linus' into core/iommu X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b0d44c0dbbd52effb731b1c0af9afd56215c48de;p=linux-2.6-omap-h63xx.git Merge branch 'linus' into core/iommu Conflicts: arch/x86/Kconfig --- b0d44c0dbbd52effb731b1c0af9afd56215c48de diff --cc Documentation/kernel-parameters.txt index 0fa3c054599,6b979d1d09a..0122e5f810f --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt @@@ -491,18 -492,9 +492,19 @@@ and is between 256 and 4096 characters Range: 0 - 8192 Default: 64 + dma_debug=off If the kernel is compiled with DMA_API_DEBUG support + this option disables the debugging code at boot. + + dma_debug_entries= + This option allows to tune the number of preallocated + entries for DMA-API debugging code. One entry is + required per DMA-API allocation. Use this if the + DMA-API debugging code disables itself because the + architectural default is too low. + hpet= [X86-32,HPET] option to control HPET usage - Format: { enable (default) | disable | force } + Format: { enable (default) | disable | force | + verbose } disable: disable HPET and use PIT instead force: allow force enabled of undocumented chips (ICH4, VIA, nVidia) diff --cc arch/x86/Kconfig index f2cb677b263,06c02c00d7d..c9012b95da6 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@@ -40,7 -40,9 +40,10 @@@ config X8 select HAVE_GENERIC_DMA_COHERENT if X86_32 select HAVE_EFFICIENT_UNALIGNED_ACCESS select USER_STACKTRACE_SUPPORT + select HAVE_DMA_API_DEBUG + select HAVE_KERNEL_GZIP + select HAVE_KERNEL_BZIP2 + select HAVE_KERNEL_LZMA config ARCH_DEFCONFIG string diff --cc lib/Kconfig.debug index d9cbada7e2f,8fee0a13ac5..251fa7ba301 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@@ -878,41 -882,36 +882,47 @@@ config DYNAMIC_DEBU From a live system: - snd_hda_intel enabled=0 - fixup enabled=0 - driver enabled=0 + nullarbor:~ # cat /dynamic_debug/ddebug + # filename:lineno [module]function flags format + fs/aio.c:222 [aio]__put_ioctx - "__put_ioctx:\040freeing\040%p\012" + fs/aio.c:248 [aio]ioctx_alloc - "ENOMEM:\040nr_events\040too\040high\012" + fs/aio.c:1770 [aio]sys_io_cancel - "calling\040cancel\012" - Enable a module: + Example usage: - $echo "set enabled=1 " > dynamic_printk/modules + // enable the message at line 1603 of file svcsock.c + nullarbor:~ # echo -n 'file svcsock.c line 1603 +p' > + /dynamic_debug/ddebug - Disable a module: + // enable all the messages in file svcsock.c + nullarbor:~ # echo -n 'file svcsock.c +p' > + /dynamic_debug/ddebug - $echo "set enabled=0 " > dynamic_printk/modules + // enable all the messages in the NFS server module + nullarbor:~ # echo -n 'module nfsd +p' > + /dynamic_debug/ddebug - Enable all modules: + // enable all 12 messages in the function svc_process() + nullarbor:~ # echo -n 'func svc_process +p' > + /dynamic_debug/ddebug - $echo "set enabled=1 all" > dynamic_printk/modules + // disable all 12 messages in the function svc_process() + nullarbor:~ # echo -n 'func svc_process -p' > + /dynamic_debug/ddebug - Disable all modules: - - $echo "set enabled=0 all" > dynamic_printk/modules - - Finally, passing "dynamic_printk" at the command line enables - debugging for all modules. This mode can be turned off via the above - disable command. + See Documentation/dynamic-debug-howto.txt for additional information. +config DMA_API_DEBUG + bool "Enable debugging of DMA-API usage" + depends on HAVE_DMA_API_DEBUG + help + Enable this option to debug the use of the DMA API by device drivers. + With this option you will be able to detect common bugs in device + drivers like double-freeing of DMA mappings or freeing mappings that + were never allocated. + This option causes a performance degredation. Use only if you want + to debug device drivers. If unsure, say N. + source "samples/Kconfig" source "lib/Kconfig.kgdb" diff --cc lib/Makefile index 50b48cf63e4,051a33a8e02..d6edd6753f4 --- a/lib/Makefile +++ b/lib/Makefile @@@ -82,10 -86,10 +86,12 @@@ obj-$(CONFIG_HAVE_LMB) += lmb. obj-$(CONFIG_HAVE_ARCH_TRACEHOOK) += syscall.o - obj-$(CONFIG_DYNAMIC_PRINTK_DEBUG) += dynamic_printk.o + obj-$(CONFIG_DYNAMIC_DEBUG) += dynamic_debug.o + + obj-$(CONFIG_NLATTR) += nlattr.o +obj-$(CONFIG_DMA_API_DEBUG) += dma-debug.o + hostprogs-y := gen_crc32table clean-files := crc32table.h