All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Luca Ceresoli" <luca.ceresoli@bootlin.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 04/11] drm/panel: merge the drm_kms_helper module into the drm module
Date: Fri, 14 Aug 2026 14:13:39 +0000	[thread overview]
Message-ID: <20260814141339.DC0EA1F00ACA@smtp.kernel.org> (raw)
In-Reply-To: <20260814-drm-bridge-every-panel-v1-4-19cd5277cc8d@bootlin.com>

Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Low] The use of `:=` instead of `+=` for `drm-$(CONFIG_DRM_KMS_HELPER)` overwrites the previously defined `drm-y` list, causing all core DRM objects to be excluded from the build.
- [Low] Merging `drm_kms_helper` into the `drm` module breaks the build or module loading when `CONFIG_DRM=y` and `CONFIG_DRM_KMS_HELPER=m` because Kbuild ignores `drm-m` for built-in objects.
--

--- Patch [4]: [PATCH 04/11] drm/panel: merge the drm_kms_helper module into the drm module ---
commit d831428a6450fb748ee21e10b4e68b33d57ee2c3
Author: Luca Ceresoli <luca.ceresoli@bootlin.com>

drm/panel: merge the drm_kms_helper module into the drm module

Work is in progress to make every drm_panel automatically create a panel_bridge,
which requires calling drm_panel_bridge APIs. This would create a circular
dependency loop on modular builds. This commit attempts to move the entire
drm_kms_helper into the drm module to resolve the dependency loop.

Link: https://lore.kernel.org/all/emuj2innmp6zmzd7pyakqzjqpdzhly6qfhakya3ydwmd63pl26@5jwxaidpikjw/
Link: https://lore.kernel.org/lkml/20250206-hotplug-drm-bridge-v6-8-9d6f2c9c3058@bootlin.com/

> diff --git a/drivers/gpu/drm/Makefile b/drivers/gpu/drm/Makefile
> --- a/drivers/gpu/drm/Makefile
> +++ b/drivers/gpu/drm/Makefile
> @@ -139,7 +139,7 @@ obj-$(CONFIG_DRM_TTM_HELPER) += drm_ttm_helper.o
>  # Modesetting helpers
>  #
>  
> -drm_kms_helper-y := \
> +drm-$(CONFIG_DRM_KMS_HELPER) := \

[Severity: Low]
Does this `:=` assignment overwrite the core DRM objects defined earlier in
the Makefile? If `CONFIG_DRM_KMS_HELPER=y`, this evaluates to `drm-y :=`,
replacing the previously built list for `drm-y`. This would cause the core
DRM files to be dropped from the build.

[Severity: Low]
What happens to the build if `CONFIG_DRM=y` and `CONFIG_DRM_KMS_HELPER=m`?

In this configuration, the objects are appended to `drm-m`. Since the
parent object is built-in (`obj-y += drm.o`), Kbuild ignores the `drm-m`
list entirely. Could this cause the KMS helpers to be silently omitted
from compilation, leading to unresolved symbols in modular drivers that
depend on them?

>  	drm_atomic_helper.o \
>  	drm_atomic_state_helper.o \

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260814-drm-bridge-every-panel-v1-0-19cd5277cc8d@bootlin.com?part=4

  reply	other threads:[~2026-08-14 14:13 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-14 14:05 [PATCH 00/11] drm/panel: add a panel_bridge to every panel Luca Ceresoli
2026-08-14 14:05 ` [PATCH 01/11] drm: of: drm_of_find_panel_or_bridge: simplify freeing the remote node pointer Luca Ceresoli
2026-08-14 14:05 ` [PATCH 02/11] drm: of: drm_of_find_panel_or_bridge: simplify error return paths Luca Ceresoli
2026-08-14 14:05 ` [PATCH 03/11] drm: of: drm_of_find_panel_or_bridge: prioritize the bridge, not the panel Luca Ceresoli
2026-08-14 14:20   ` sashiko-bot
2026-08-14 14:05 ` [PATCH 04/11] drm/panel: merge the drm_kms_helper module into the drm module Luca Ceresoli
2026-08-14 14:13   ` sashiko-bot [this message]
2026-08-14 14:05 ` [PATCH 05/11] drm/bridge: panel: add a panel_bridge to every panel Luca Ceresoli
2026-08-14 14:25   ` sashiko-bot
2026-08-14 14:05 ` [PATCH 06/11] drm/bridge: tc358767: don't create a panel_bridge Luca Ceresoli
2026-08-14 14:17   ` sashiko-bot
2026-08-14 14:05 ` [PATCH 07/11] drm/bridge: waveshare-dsi: " Luca Ceresoli
2026-08-14 14:05 ` [PATCH 08/11] drm/mcde: dsi: simplify device_node management using scoped for_each variant Luca Ceresoli
2026-08-14 14:19   ` sashiko-bot
2026-08-14 14:05 ` [PATCH 09/11] drm/mcde: dsi: don't create a panel_bridge Luca Ceresoli
2026-08-14 14:24   ` sashiko-bot
2026-08-14 14:05 ` [PATCH 10/11] drm/bridge: fsl-ldb: " Luca Ceresoli
2026-08-14 14:18   ` sashiko-bot
2026-08-14 14:05 ` [PATCH 11/11] drm/bridge: samsung-dsim: " Luca Ceresoli
2026-08-14 14:23   ` sashiko-bot
2026-08-14 14:13 ` [PATCH 00/11] drm/panel: add a panel_bridge to every panel Luca Ceresoli

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=20260814141339.DC0EA1F00ACA@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=luca.ceresoli@bootlin.com \
    --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.