drm/amd/display: Document the union in dc_probe_status
Subsystems (3)
PATCH 1/2 drm/amd/display: Document the union in dc_probe_status
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.
Written with Hermes Agent, an LLM assistant; the author reviewed it and ran kernel-doc on the file with and without the change.
--- drivers/gpu/drm/amd/display/dc/dc.h | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/dc.h +1 -0
@@ -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.
base-commit: d0f871bfb831705d9f55479f5b2b40f636ea7b16
Signature · 1 line
2.53.0
PATCH 2/2 drm/amd/display: Document max_gamut_remap_coeff
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.
Written with Hermes Agent, an LLM assistant; the author reviewed it and ran kernel-doc on the file with and without the change.
--- drivers/gpu/drm/amd/display/dc/dc.h | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/display/dc/dc.h +1 -0
@@ -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 ;
Signature · 1 line
2.53.0
Quoted 4 lines · TAKANO Mitsuhiro
The members of the union in
dc_probe_statusare described one by one as @u.bandwidth_mbps and so on, but the union itself has no description, so kernel-doc reports:
Quoted 8 lines
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.
Written with Hermes Agent, an LLM assistant; the author reviewed it and ran kernel-doc on the file with and without the change.
The disclosure is appreciated but better put it ..
Quoted 3 lines
Fixes 52771a3254ea ("drm/amd/display: Wire probe commit path into dc_update_state")Signed-off-by TAKANO Mitsuhiro <[email protected]>---
.. here.
Thanks for doing this.
Quoted 2 lines
drivers/gpu/drm/amd/display/dc/dc.h | 1 + 1 file changed, 1 insertion(+)
Hi Weijie,
Thanks. Moved the AI disclosure below the --- in each patch, so it stays out of the commit message, and put it in the cover letter too. Re-sent as v2, in a new thread ("[PATCH v2 0/2] drm/amd/display: document two members of dc.h"); the diff is unchanged.
TAKANO