<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#008000;margin:15pt;" align="Left">
[Public]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Reviewed-by: Alex Deucher <alexander.deucher@amd.com><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Srinivasan Shanmugam <srinivasan.shanmugam@amd.com><br>
<b>Sent:</b> Wednesday, May 31, 2023 5:22 AM<br>
<b>To:</b> Pillai, Aurabindo <Aurabindo.Pillai@amd.com>; Mahfooz, Hamza <Hamza.Mahfooz@amd.com>; Siqueira, Rodrigo <Rodrigo.Siqueira@amd.com>; Wentland, Harry <Harry.Wentland@amd.com><br>
<b>Cc:</b> SHANMUGAM, SRINIVASAN <SRINIVASAN.SHANMUGAM@amd.com>; amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Subject:</b> [PATCH v2] drm/amd/display: Fix up kdoc formatting in dcn32_resource_helpers.c</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Fixes the following W=1 kernel build warning:<br>
<br>
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource_helpers.c:97: warning: Cannot understand * **************************************************************************<br>
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource_helpers.c:264: warning: Cannot understand * *************************************************************************<br>
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource_helpers.c:435: warning: Cannot understand * *************************************************************************<br>
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource_helpers.c:475: warning: Cannot understand * *************************************************************************<br>
<br>
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource_helpers.c:599:<br>
warning: Function parameter or member 'dc' not described in<br>
'dcn32_can_support_mclk_switch_using_fw_based_vblank_stretch'<br>
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource_helpers.c:599:<br>
warning: Function parameter or member 'context' not described in<br>
'dcn32_can_support_mclk_switch_using_fw_based_vblank_stretch'<br>
<br>
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource_helpers.c:587:<br>
warning: Function parameter or member 'dc' not described in<br>
'dcn32_can_support_mclk_switch_using_fw_based_vblank_stretch'<br>
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource_helpers.c:587:<br>
warning: Function parameter or member 'context' not described in<br>
'dcn32_can_support_mclk_switch_using_fw_based_vblank_stretch'<br>
<br>
Cc: Hamza Mahfooz <hamza.mahfooz@amd.com><br>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com><br>
Cc: Harry Wentland <harry.wentland@amd.com><br>
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com><br>
Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com><br>
---<br>
<br>
v2: <br>
- Fixes added for line no. 587 also.<br>
<br>
.../display/dc/dcn32/dcn32_resource_helpers.c | 57 ++++++++-----------<br>
1 file changed, 23 insertions(+), 34 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c<br>
index a8082580df92..1d13fd797212 100644<br>
--- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c<br>
+++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c<br>
@@ -94,18 +94,15 @@ uint32_t dcn32_helper_calculate_mall_bytes_for_cursor(<br>
}<br>
<br>
/**<br>
- * ********************************************************************************************<br>
- * dcn32_helper_calculate_num_ways_for_subvp: Calculate number of ways needed for SubVP<br>
+ * dcn32_helper_calculate_num_ways_for_subvp(): Calculate number of ways needed for SubVP<br>
*<br>
* Gets total allocation required for the phantom viewport calculated by DML in bytes and<br>
* converts to number of cache ways.<br>
*<br>
- * @param [in] dc: current dc state<br>
- * @param [in] context: new dc state<br>
+ * @dc: current dc state<br>
+ * @context: new dc state<br>
*<br>
- * @return: number of ways required for SubVP<br>
- *<br>
- * ********************************************************************************************<br>
+ * Return: number of ways required for SubVP<br>
*/<br>
uint32_t dcn32_helper_calculate_num_ways_for_subvp(<br>
struct dc *dc,<br>
@@ -261,8 +258,7 @@ bool dcn32_is_psr_capable(struct pipe_ctx *pipe)<br>
#define DCN3_2_NEW_DET_OVERRIDE_MIN_MULTIPLIER 7<br>
<br>
/**<br>
- * *******************************************************************************************<br>
- * dcn32_determine_det_override: Determine DET allocation for each pipe<br>
+ * dcn32_determine_det_override(): Determine DET allocation for each pipe<br>
*<br>
* This function determines how much DET to allocate for each pipe. The total number of<br>
* DET segments will be split equally among each of the streams, and after that the DET<br>
@@ -290,13 +286,11 @@ bool dcn32_is_psr_capable(struct pipe_ctx *pipe)<br>
* 3. Assign smaller DET size for lower pixel display and higher DET size for<br>
* higher pixel display<br>
*<br>
- * @param [in]: dc: Current DC state<br>
- * @param [in]: context: New DC state to be programmed<br>
- * @param [in]: pipes: Array of DML pipes<br>
- *<br>
- * @return: void<br>
+ * @dc: Current DC state<br>
+ * @context: New DC state to be programmed<br>
+ * @pipes: Array of DML pipes<br>
*<br>
- * *******************************************************************************************<br>
+ * Return: void<br>
*/<br>
void dcn32_determine_det_override(struct dc *dc,<br>
struct dc_state *context,<br>
@@ -432,8 +426,7 @@ void dcn32_set_det_allocations(struct dc *dc, struct dc_state *context,<br>
}<br>
<br>
/**<br>
- * *******************************************************************************************<br>
- * dcn32_save_mall_state: Save MALL (SubVP) state for fast validation cases<br>
+ * dcn32_save_mall_state(): Save MALL (SubVP) state for fast validation cases<br>
*<br>
* This function saves the MALL (SubVP) case for fast validation cases. For fast validation,<br>
* there are situations where a shallow copy of the dc->current_state is created for the<br>
@@ -446,13 +439,11 @@ void dcn32_set_det_allocations(struct dc *dc, struct dc_state *context,<br>
* NOTE: This function ONLY works if the streams are not moved to a different pipe in the<br>
* validation. We don't expect this to happen in fast_validation=1 cases.<br>
*<br>
- * @param [in]: dc: Current DC state<br>
- * @param [in]: context: New DC state to be programmed<br>
- * @param [out]: temp_config: struct used to cache the existing MALL state<br>
+ * @dc: Current DC state<br>
+ * @context: New DC state to be programmed<br>
+ * @temp_config: struct used to cache the existing MALL state<br>
*<br>
- * @return: void<br>
- *<br>
- * *******************************************************************************************<br>
+ * Return: void<br>
*/<br>
void dcn32_save_mall_state(struct dc *dc,<br>
struct dc_state *context,<br>
@@ -472,18 +463,15 @@ void dcn32_save_mall_state(struct dc *dc,<br>
}<br>
<br>
/**<br>
- * *******************************************************************************************<br>
- * dcn32_restore_mall_state: Restore MALL (SubVP) state for fast validation cases<br>
+ * dcn32_restore_mall_state(): Restore MALL (SubVP) state for fast validation cases<br>
*<br>
* Restore the MALL state based on the previously saved state from dcn32_save_mall_state<br>
*<br>
- * @param [in]: dc: Current DC state<br>
- * @param [in/out]: context: New DC state to be programmed, restore MALL state into here<br>
- * @param [in]: temp_config: struct that has the cached MALL state<br>
- *<br>
- * @return: void<br>
+ * @dc: Current DC state<br>
+ * @context: New DC state to be programmed, restore MALL state into here<br>
+ * @temp_config: struct that has the cached MALL state<br>
*<br>
- * *******************************************************************************************<br>
+ * Return: void<br>
*/<br>
void dcn32_restore_mall_state(struct dc *dc,<br>
struct dc_state *context,<br>
@@ -588,10 +576,11 @@ static int get_refresh_rate(struct dc_stream_state *fpo_candidate_stream)<br>
}<br>
<br>
/**<br>
- * dcn32_can_support_mclk_switch_using_fw_based_vblank_stretch - Determines if config can support FPO<br>
+ * dcn32_can_support_mclk_switch_using_fw_based_vblank_stretch() - Determines if config can<br>
+ * support FPO<br>
*<br>
- * @param [in]: dc - current dc state<br>
- * @param [in]: context - new dc state<br>
+ * @dc: current dc state<br>
+ * @context: new dc state<br>
*<br>
* Return: Pointer to FPO stream candidate if config can support FPO, otherwise NULL<br>
*/<br>
-- <br>
2.25.1<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>