summaryrefslogtreecommitdiffstats
path: root/lib/Kconfig.debug
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2019-03-10 14:54:48 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2019-03-10 14:54:48 -0400
commitb7a7d1c1ec688104fdc922568c26395a756f616d (patch)
tree8059a401de91431615737b088f3da20d4567683e /lib/Kconfig.debug
parent065b6c4c913d3986c2118acb7e7fb364ce4fb625 (diff)
parent9eb9e96e97b3381e94cba81d93f4a390c26ca6cb (diff)
Merge tag 'dma-mapping-5.1' of git://git.infradead.org/users/hch/dma-mapping
Pull DMA mapping updates from Christoph Hellwig: - add debugfs support for dumping dma-debug information (Corentin Labbe) - Kconfig cleanups (Andy Shevchenko and me) - debugfs cleanups (Greg Kroah-Hartman) - improve dma_map_resource and use it in the media code - arch_setup_dma_ops / arch_teardown_dma_ops cleanups - various small cleanups and improvements for the per-device coherent allocator - make the DMA mask an upper bound and don't fail "too large" dma mask in the remaning two architectures - this will allow big driver cleanups in the following merge windows * tag 'dma-mapping-5.1' of git://git.infradead.org/users/hch/dma-mapping: (21 commits) Documentation/DMA-API-HOWTO: update dma_mask sections sparc64/pci_sun4v: allow large DMA masks sparc64/iommu: allow large DMA masks sparc64: refactor the ali DMA quirk ccio: allow large DMA masks dma-mapping: remove the DMA_MEMORY_EXCLUSIVE flag dma-mapping: remove dma_mark_declared_memory_occupied dma-mapping: move CONFIG_DMA_CMA to kernel/dma/Kconfig dma-mapping: improve selection of dma_declare_coherent availability dma-mapping: remove an incorrect __iommem annotation of: select OF_RESERVED_MEM automatically device.h: dma_mem is only needed for HAVE_GENERIC_DMA_COHERENT mfd/sm501: depend on HAS_DMA dma-mapping: add a kconfig symbol for arch_teardown_dma_ops availability dma-mapping: add a kconfig symbol for arch_setup_dma_ops availability dma-mapping: move debug configuration options to kernel/dma dma-debug: add dumping facility via debugfs dma: debug: no need to check return value of debugfs_create functions videobuf2: replace a layering violation with dma_map_resource dma-mapping: don't BUG when calling dma_map_resource on RAM ...
Diffstat (limited to 'lib/Kconfig.debug')
-rw-r--r--lib/Kconfig.debug36
1 files changed, 0 insertions, 36 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 91ed81250fb3..bd62be80228e 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -1654,42 +1654,6 @@ config PROVIDE_OHCI1394_DMA_INIT
1654 1654
1655 See Documentation/debugging-via-ohci1394.txt for more information. 1655 See Documentation/debugging-via-ohci1394.txt for more information.
1656 1656
1657config DMA_API_DEBUG
1658 bool "Enable debugging of DMA-API usage"
1659 select NEED_DMA_MAP_STATE
1660 help
1661 Enable this option to debug the use of the DMA API by device drivers.
1662 With this option you will be able to detect common bugs in device
1663 drivers like double-freeing of DMA mappings or freeing mappings that
1664 were never allocated.
1665
1666 This also attempts to catch cases where a page owned by DMA is
1667 accessed by the cpu in a way that could cause data corruption. For
1668 example, this enables cow_user_page() to check that the source page is
1669 not undergoing DMA.
1670
1671 This option causes a performance degradation. Use only if you want to
1672 debug device drivers and dma interactions.
1673
1674 If unsure, say N.
1675
1676config DMA_API_DEBUG_SG
1677 bool "Debug DMA scatter-gather usage"
1678 default y
1679 depends on DMA_API_DEBUG
1680 help
1681 Perform extra checking that callers of dma_map_sg() have respected the
1682 appropriate segment length/boundary limits for the given device when
1683 preparing DMA scatterlists.
1684
1685 This is particularly likely to have been overlooked in cases where the
1686 dma_map_sg() API is used for general bulk mapping of pages rather than
1687 preparing literal scatter-gather descriptors, where there is a risk of
1688 unexpected behaviour from DMA API implementations if the scatterlist
1689 is technically out-of-spec.
1690
1691 If unsure, say N.
1692
1693menuconfig RUNTIME_TESTING_MENU 1657menuconfig RUNTIME_TESTING_MENU
1694 bool "Runtime Testing" 1658 bool "Runtime Testing"
1695 def_bool y 1659 def_bool y