]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dma-buf: enable DMABUF_DEBUG by default on DEBUG kernels
authorChristian König <christian.koenig@amd.com>
Thu, 4 Dec 2025 14:56:03 +0000 (15:56 +0100)
committerChristian König <christian.koenig@amd.com>
Mon, 8 Dec 2025 15:39:09 +0000 (16:39 +0100)
The overhead of enforcing the DMA-buf rules for importers is now so low
that it safe to enable it by default on DEBUG kernels.

This will hopefully result in fixing more issues in importers.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Link: https://lore.kernel.org/r/20251205130604.1582-2-christian.koenig@amd.com
drivers/dma-buf/Kconfig

index b46eb8a552d7be02cb305f65aaf4ba168f03fee2..fdd823e446cc7301515387579796ac526e4265f2 100644 (file)
@@ -55,7 +55,7 @@ config DMABUF_MOVE_NOTIFY
 config DMABUF_DEBUG
        bool "DMA-BUF debug checks"
        depends on DMA_SHARED_BUFFER
-       default y if DMA_API_DEBUG
+       default y if DEBUG
        help
          This option enables additional checks for DMA-BUF importers and
          exporters. Specifically it validates that importers do not peek at the