Merge tag 'x86_sgx_for_v6.0-2022-08-03.1' of git://git.kernel.org/pub/scm/linux/kerne...
[linux-2.6-microblaze.git] / drivers / dma-buf / Kconfig
index 9561e3d..e4dc53a 100644 (file)
@@ -42,6 +42,7 @@ config UDMABUF
 config DMABUF_MOVE_NOTIFY
        bool "Move notify between drivers (EXPERIMENTAL)"
        default n
+       depends on DMA_SHARED_BUFFER
        help
          Don't pin buffers if the dynamic DMA-buf interface is available on
          both the exporter as well as the importer. This fixes a security
@@ -52,6 +53,7 @@ config DMABUF_MOVE_NOTIFY
 
 config DMABUF_DEBUG
        bool "DMA-BUF debug checks"
+       depends on DMA_SHARED_BUFFER
        default y if DMA_API_DEBUG
        help
          This option enables additional checks for DMA-BUF importers and
@@ -73,8 +75,8 @@ menuconfig DMABUF_HEAPS
          between drivers.
 
 menuconfig DMABUF_SYSFS_STATS
-       bool "DMA-BUF sysfs statistics"
-       select DMA_SHARED_BUFFER
+       bool "DMA-BUF sysfs statistics (DEPRECATED)"
+       depends on DMA_SHARED_BUFFER
        help
           Choose this option to enable DMA-BUF sysfs statistics
           in location /sys/kernel/dmabuf/buffers.
@@ -83,6 +85,10 @@ menuconfig DMABUF_SYSFS_STATS
           statistics for the DMA-BUF with the unique inode number
           <inode_number>.
 
+          This option is deprecated and should sooner or later be removed.
+          Android is the only user of this and it turned out that this resulted
+          in quite some performance problems.
+
 source "drivers/dma-buf/heaps/Kconfig"
 
 endmenu