All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Nicolas Frattaroli" <nicolas.frattaroli@collabora.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v2 2/2] drm/connector: hdmi: Implement "min bpc" property
Date: Wed, 29 Jul 2026 12:23:46 +0000	[thread overview]
Message-ID: <20260729122346.C8FB91F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260729-min-bpc-v2-2-7d0036ef437c@collabora.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] The new `min_requested_bpc` property is not printed in `drm_atomic_connector_print_state()`.
--

--- Patch [2]: [PATCH v2 2/2] drm/connector: hdmi: Implement "min bpc" property ---
commit 1bb247d1cac675bb602431e3c391ddd31f8fed8d
Author: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>

drm/connector: hdmi: Implement "min bpc" property

Act on the "min bpc" property's min_requested_bpc state in the common
HDMI state helpers, and register the property on HDMI connectors.
Also add two KUnit tests to verify that the property behaves as expected.

> diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c
> index 3ecc079404a10..f019bd5fef692 100644
> --- a/drivers/gpu/drm/drm_connector.c
> +++ b/drivers/gpu/drm/drm_connector.c
> @@ -640,6 +640,10 @@ int drmm_connector_hdmi_init(struct drm_device *dev,
>  	if (ret)
>  		return ret;
>  
> +	ret = drm_connector_attach_min_bpc_property(connector, max_bpc);
> +	if (ret)
> +		return ret;
> +

[Severity: Low]
Since we are adding support for the min bpc property and using
min_requested_bpc in the connector state, should this also be printed in
drm_atomic_connector_print_state() alongside max_requested_bpc?

For example, looking at drivers/gpu/drm/drm_atomic.c in
drm_atomic_connector_print_state():

	drm_printf_indent(p, 1, "max_requested_bpc=%d\n", state->max_requested_bpc);
	drm_printf_indent(p, 1, "colorspace=%s\n", drm_get_colorspace_name(state->colorspace));

Without printing it here, the debugfs atomic state dump will not display
the min_requested_bpc field, which might make debugging atomic commits
incomplete.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260729-min-bpc-v2-0-7d0036ef437c@collabora.com?part=2

      reply	other threads:[~2026-07-29 12:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-29 12:13 [PATCH v2 0/2] Add a "min bpc" connector property Nicolas Frattaroli
2026-07-29 12:13 ` [PATCH v2 1/2] drm/connector: Introduce " Nicolas Frattaroli
2026-07-29 12:25   ` sashiko-bot
2026-07-29 12:13 ` [PATCH v2 2/2] drm/connector: hdmi: Implement "min bpc" property Nicolas Frattaroli
2026-07-29 12:23   ` sashiko-bot [this message]

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=20260729122346.C8FB91F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=nicolas.frattaroli@collabora.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.