From: sashiko-bot@kernel.org
To: "Karl Mehltretter" <kmehltretter@gmail.com>
Cc: dri-devel@lists.freedesktop.org, media-ci@linuxtv.org
Subject: Re: [PATCH] dma-buf: Make DMABUF_DEBUG default to y on DEBUG_KERNEL kernels
Date: Mon, 07 Sep 2026 02:05:16 +0000 [thread overview]
Message-ID: <20260907020516.D671E1F00A3D@smtp.kernel.org> (raw)
In-Reply-To: <20260907020015.24719-1-kmehltretter@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] Using DEBUG_KERNEL as a default trigger for DMABUF_DEBUG unintentionally enables performance-degrading debug checks on production kernels.
--
commit 35e36d45a9285f1874efd2a5212588eb662aa118
Author: Karl Mehltretter <kmehltretter@gmail.com>
dma-buf: Make DMABUF_DEBUG default to y on DEBUG_KERNEL kernels
This commit replaces the non-existent DEBUG Kconfig symbol with DEBUG_KERNEL
to ensure DMA-BUF debug checks are enabled on debug kernels.
> diff --git a/drivers/dma-buf/Kconfig b/drivers/dma-buf/Kconfig
> index 7efc0f0d07126..e4f078a326a41 100644
> --- a/drivers/dma-buf/Kconfig
> +++ b/drivers/dma-buf/Kconfig
> @@ -43,7 +43,7 @@ config UDMABUF
> config DMABUF_DEBUG
> bool "DMA-BUF debug checks"
> depends on DMA_SHARED_BUFFER
> - default y if DEBUG
> + default y if DEBUG_KERNEL
[Severity: Medium]
Will tying this default to DEBUG_KERNEL unintentionally cause a performance
regression on production kernels?
Because DEBUG_KERNEL is a top-level menu toggle enabled in virtually all
production configurations and standard distributions, DMABUF_DEBUG will now
be universally enabled by default.
This introduces unnecessary dynamic heap allocations and scatterlist copying
in dma_buf_map_attachment() via dma_buf_wrap_sg_table() during frequent map
and unmap operations.
Could this be tied to a more specific debugging option instead to prevent
this regression on production systems?
> help
> This option enables additional checks for DMA-BUF importers and
> exporters. Specifically it validates that importers do not peek at the
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260907020015.24719-1-kmehltretter@gmail.com?part=1
next prev parent reply other threads:[~2026-09-07 2:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-07 2:00 [PATCH] dma-buf: Make DMABUF_DEBUG default to y on DEBUG_KERNEL kernels Karl Mehltretter
2026-09-07 2:05 ` sashiko-bot [this message]
2026-09-11 10:03 ` Christian König
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260907020516.D671E1F00A3D@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=kmehltretter@gmail.com \
--cc=media-ci@linuxtv.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.