* [PATCH v2 1/2] drm/amd/display: Document the union in dc_probe_status
2026-11-23 12:22 [PATCH v2 0/2] drm/amd/display: document two members of dc.h TAKANO Mitsuhiro
@ 2026-11-23 12:22 ` TAKANO Mitsuhiro
2026-11-23 12:22 ` [PATCH v2 2/2] drm/amd/display: Document max_gamut_remap_coeff TAKANO Mitsuhiro
2026-11-24 9:46 ` [PATCH v2 0/2] drm/amd/display: document two members of dc.h Weijie Yuan
2 siblings, 0 replies; 4+ messages in thread
From: TAKANO Mitsuhiro @ 2026-11-23 12:22 UTC (permalink / raw)
To: amd-gfx, Harry Wentland, Leo Li, Alex Deucher
Cc: Rodrigo Siqueira, Christian König, David Airlie,
Simona Vetter, Thomas Huth, Weijie Yuan, dri-devel, linux-kernel,
TAKANO Mitsuhiro
The members of the union in dc_probe_status are described one by one as
@u.bandwidth_mbps and so on, but the union itself has no description, so
kernel-doc reports:
dc.h:2225 struct member 'u' not described in
'dc_probe_status'
Describe it, saying that the member holding the result depends on the
probe type.
Fixes: 52771a3254ea ("drm/amd/display: Wire probe commit path into dc_update_state")
Signed-off-by: TAKANO Mitsuhiro <takano32@gmail.com>
---
v2: the AI disclosure moved out of the commit message, as Weijie Yuan
suggested; no change to the diff.
Written with Hermes Agent, an LLM assistant; I reviewed it and ran kernel-doc
on the file before and after the change.
drivers/gpu/drm/amd/display/dc/dc.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
index d3c484f45333..debdd69bbe4e 100644
--- a/drivers/gpu/drm/amd/display/dc/dc.h
+++ b/drivers/gpu/drm/amd/display/dc/dc.h
@@ -2207,6 +2207,7 @@ struct dc_probe_latencies {
* @valid: true if a measurement was latched.
* @measuring: true if the hardware counter is currently running.
* @type: type of the probe that produced this result.
+ * @u: probe result; the member holding it depends on @type.
* @u.bandwidth_mbps: peak BW in Mbps (DC_PROBE_PEAK_MEM_BW).
* @u.latency: min/max/avg memory latency in ns (DC_PROBE_MEM_LATENCY),
* stored as struct dc_probe_latencies.
--
2.53.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH v2 2/2] drm/amd/display: Document max_gamut_remap_coeff
2026-11-23 12:22 [PATCH v2 0/2] drm/amd/display: document two members of dc.h TAKANO Mitsuhiro
2026-11-23 12:22 ` [PATCH v2 1/2] drm/amd/display: Document the union in dc_probe_status TAKANO Mitsuhiro
@ 2026-11-23 12:22 ` TAKANO Mitsuhiro
2026-11-24 9:46 ` [PATCH v2 0/2] drm/amd/display: document two members of dc.h Weijie Yuan
2 siblings, 0 replies; 4+ messages in thread
From: TAKANO Mitsuhiro @ 2026-11-23 12:22 UTC (permalink / raw)
To: amd-gfx, Harry Wentland, Leo Li, Alex Deucher
Cc: Rodrigo Siqueira, Christian König, David Airlie,
Simona Vetter, Thomas Huth, Weijie Yuan, dri-devel, linux-kernel,
TAKANO Mitsuhiro
kernel-doc reports:
dc.h:329 struct member 'max_gamut_remap_coeff' not described in
'mpc_color_caps'
The 17 resource files that set dc->caps.color.mpc.gamut_remap to 1 also
set the member to dc_fixpt_from_fraction(S3D12_MAX, DIVIDER); the other
ten leave it at zero, and the comment of mpc_color_caps does not mention
it. Describe it.
Fixes: 1c5e6cd8291f ("drm/amd/display: adjust floating point format for gamut remap when needed")
Link: https://lore.kernel.org/all/ec4d7cff-d23a-46d1-b245-921f442b9a7b@redhat.com/
Signed-off-by: TAKANO Mitsuhiro <takano32@gmail.com>
---
v2: the AI disclosure moved out of the commit message, as Weijie Yuan
suggested; no change to the diff.
Written with Hermes Agent, an LLM assistant; I reviewed it and ran kernel-doc
on the file before and after the change.
drivers/gpu/drm/amd/display/dc/dc.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h
index debdd69bbe4e..32bf87fed40d 100644
--- a/drivers/gpu/drm/amd/display/dc/dc.h
+++ b/drivers/gpu/drm/amd/display/dc/dc.h
@@ -314,6 +314,7 @@ struct lut3d_caps {
* @mcm_3d_lut_caps: HW support cap for MCM LUT memory
* @rmcm_3d_lut_caps: HW support cap for RMCM LUT memory
* @preblend: whether color manager supports preblend with MPC
+ * @max_gamut_remap_coeff: largest gamut remap coefficient the MPC supports
*/
struct mpc_color_caps {
uint16_t gamut_remap : 1;
--
2.53.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH v2 0/2] drm/amd/display: document two members of dc.h
2026-11-23 12:22 [PATCH v2 0/2] drm/amd/display: document two members of dc.h TAKANO Mitsuhiro
2026-11-23 12:22 ` [PATCH v2 1/2] drm/amd/display: Document the union in dc_probe_status TAKANO Mitsuhiro
2026-11-23 12:22 ` [PATCH v2 2/2] drm/amd/display: Document max_gamut_remap_coeff TAKANO Mitsuhiro
@ 2026-11-24 9:46 ` Weijie Yuan
2 siblings, 0 replies; 4+ messages in thread
From: Weijie Yuan @ 2026-11-24 9:46 UTC (permalink / raw)
To: TAKANO Mitsuhiro
Cc: amd-gfx, Harry Wentland, Leo Li, Alex Deucher, Rodrigo Siqueira,
Christian König, David Airlie, Simona Vetter, Thomas Huth,
dri-devel, linux-kernel
On Mon, Nov 23, 2026 at 12:22:24PM +0000, TAKANO Mitsuhiro wrote:
> Two undocumented members in dc.h, both reported by kernel-doc: the union in
> dc_probe_status has no description of its own, and the comment of
> mpc_color_caps does not mention max_gamut_remap_coeff. Both patches only
> add comment text, so no build was run.
>
> The diff is unchanged from the previous posting. As Weijie Yuan suggested,
> the AI disclosure moved out of the commit message: it is now below the ---
> in each patch, and it is also in this cover letter.
Tested on my local machine, the warnings disappear.
Tested-by: Weijie Yuan <wy@wyuan.org>
Thanks. Jon would be happy about this, I guess. ;-)
^ permalink raw reply [flat|nested] 4+ messages in thread