Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp589942pxb; Fri, 8 Jan 2021 12:40:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJw0LXLeNIfDPWXIx6gq9xGHC6BYJtz7nhRKymOVAjHeSKc3+MTgWfR9hsk+ozEQPzEU0mhd X-Received: by 2002:a17:906:195a:: with SMTP id b26mr3761461eje.4.1610138401381; Fri, 08 Jan 2021 12:40:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610138401; cv=none; d=google.com; s=arc-20160816; b=HAqZk0+XPf77DcNEHsZeOhGX1MSWBAveDJ+eTonmzhLEZPMpWMmjo5jI2XPO5SnntW fNEC/SgfRef28SVZP/ykXNdmno312I/qoUCLtZjmOqLIXKohoMVFxC+AV9QboCyM4fUk 0Iuqw9j51GzpURY9RGUDBo8nt3T6AwDQnAdUrsPZlqEeR2dc+X9rX/CHd4tdwxpfEB1R roPmJ1SawoGjzC7yWCWOWhrLJmUxhKjdWbIAinaBvPq0Rqlcp0X5QDaxYDgxzdBKemIM l+fPH9PF42CaabOXjTPUZtf70dt/hRpQdcIbMCsEbiVmOKS3IkTBtFn+yheLLJruzJ2z 1P5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=eGOb98i7o2zJ0bnOyOrSdndd1nmTnVJpy9/37zLk/NY=; b=gQu2tt6/Lnvqw5MT6sLjNDDdI+zT45ipSqIJX5xIl+u9EUEI6ygMc9OmmlhVMTLWO1 Fl7IL2RHWFMfjhlhhzoC9b2DkYGuodgmcHO85rHxn8jGcpzC3VVGCn5Tf4ay2WPIxgYU l7nbZe0gx0gCDsbORFrQrykgkJ2rpsC2MsxysTNs+L/xBijjk1xjL7kaeNtd3RnEQABp oDl8m6TYXlogcJ1Eogk7oO0A/vQmKdcfHtBIF1FIpf1cK2xAoDPpPbJWEP9o7NgfDu4y e1TMs/hHjGILUTXBjBVLgzkxrdLJx5ypUSI90vt3+V7krfbgQCK3wWKbIjNtxuiSowbm S5nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=imC0H0g1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si3834201ejr.517.2021.01.08.12.39.37; Fri, 08 Jan 2021 12:40:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=imC0H0g1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729491AbhAHUiT (ORCPT + 99 others); Fri, 8 Jan 2021 15:38:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729482AbhAHUiS (ORCPT ); Fri, 8 Jan 2021 15:38:18 -0500 Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BEA9C061380 for ; Fri, 8 Jan 2021 12:37:38 -0800 (PST) Received: by mail-oi1-x235.google.com with SMTP id d203so12848081oia.0 for ; Fri, 08 Jan 2021 12:37:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=eGOb98i7o2zJ0bnOyOrSdndd1nmTnVJpy9/37zLk/NY=; b=imC0H0g1+jDCg2Ic2cz+9QrvQKcAUzYnHjJ+jD8mqb5az3x1cosHlxPa0QJF7xZIe9 hbdsPjR8Ok87hGcpLEtkv1hy36kqPCXfSMJF+PJyNTKK+yiiW4Mc9PQZjvokFA1deInH U8n7aHYStps2vGsY1uynXmOtWl1dvWwAIWTRP9Y0qxzsDDJCzHf8DqIl2Dp6JdIdeAjM tAS69nBEmXJezHmGzJNKsePJlSfMrAMpi+nTCk5pmWLLvOaU4uK3nyWVN0D/OSwsCtKU eSHbk5dRm5wwUNhZlT/oTGPsuCbQKbcOfevLu59WmG+ZdVsphEhwp+kligmlLJ1vfKV3 zp3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=eGOb98i7o2zJ0bnOyOrSdndd1nmTnVJpy9/37zLk/NY=; b=GAIdoH6PmUuR6XMDuuQkcV+WzMESz+PT9csZGl9L6XYiZsyov44E3E4me7ILGX0GtL QeNYy+11PJGID9ViWZ1F8UzyfZ8GHWFrEYrZjkAF+JfrXZlqJs6aW3XJGyr/QDoCEnPC FwVjnV4nZYe26IJnuVczCtdd/TMl0hIsq2KMkt2+elLBWvrhvHq7Ci/uTENwY1VR0pL5 /PpMx16RW+wGR5F5wK34o2gVx6aMrkn2Bf6GTkvxMGdNNkPPNu1HHqEHkHPcqJlLLox/ qTkBOH4bIkTEj2nfyDhudmJM18Q6j1pU09gWfssCZKSnw2Atcv30ZAR/EFchIwl62uYB MrBw== X-Gm-Message-State: AOAM533Z2QoLw0jlorZRTnE3bwVd7C9TW5KxGcnbprthXdwKzZwE7kVN keSlmroJtTAU86uCeDXWfwm+8UEYNkrfNqY3M3k= X-Received: by 2002:a54:4083:: with SMTP id i3mr3414002oii.120.1610138257944; Fri, 08 Jan 2021 12:37:37 -0800 (PST) MIME-Version: 1.0 References: <20210108201457.3078600-1-lee.jones@linaro.org> <20210108201457.3078600-13-lee.jones@linaro.org> In-Reply-To: <20210108201457.3078600-13-lee.jones@linaro.org> From: Alex Deucher Date: Fri, 8 Jan 2021 15:37:26 -0500 Message-ID: Subject: Re: [PATCH 12/40] drm/amd/pm/powerplay/hwmgr/vega10_hwmgr: Fix a bunch of kernel-doc formatting issues To: Lee Jones Cc: David Airlie , LKML , amd-gfx list , Maling list - DRI developers , Alex Deucher , Evan Quan , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 8, 2021 at 3:15 PM Lee Jones wrote: > > Fixes the following W=3D1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:5474:5: = warning: no previous prototype for =E2=80=98vega10_hwmgr_init=E2=80=99 [-Wm= issing-prototypes] > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:551: war= ning: Function parameter or member 'hwmgr' not described in 'vega10_get_evv= _voltages' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:609: war= ning: Function parameter or member 'hwmgr' not described in 'vega10_patch_w= ith_vdd_leakage' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:609: war= ning: Function parameter or member 'voltage' not described in 'vega10_patch= _with_vdd_leakage' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:609: war= ning: Function parameter or member 'leakage_table' not described in 'vega10= _patch_with_vdd_leakage' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:637: war= ning: Function parameter or member 'hwmgr' not described in 'vega10_patch_l= ookup_table_with_leakage' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:637: war= ning: Function parameter or member 'lookup_table' not described in 'vega10_= patch_lookup_table_with_leakage' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:637: war= ning: Function parameter or member 'leakage_table' not described in 'vega10= _patch_lookup_table_with_leakage' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1013: wa= rning: Function parameter or member 'hwmgr' not described in 'vega10_trim_v= oltage_table' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1013: wa= rning: Function parameter or member 'vol_table' not described in 'vega10_tr= im_voltage_table' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1160: wa= rning: Function parameter or member 'hwmgr' not described in 'vega10_constr= uct_voltage_tables' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1558: wa= rning: Function parameter or member 'hwmgr' not described in 'vega10_popula= te_single_gfx_level' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1558: wa= rning: Function parameter or member 'gfx_clock' not described in 'vega10_po= pulate_single_gfx_level' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1558: wa= rning: Function parameter or member 'current_gfxclk_level' not described in= 'vega10_populate_single_gfx_level' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1558: wa= rning: Function parameter or member 'acg_freq' not described in 'vega10_pop= ulate_single_gfx_level' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1613: wa= rning: Cannot understand * @brief Populates single SMC SOCCLK structure us= ing the provided clock. > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1667: wa= rning: Function parameter or member 'hwmgr' not described in 'vega10_popula= te_all_graphic_levels' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1750: wa= rning: Cannot understand * @brief Populates single SMC GFXCLK structure us= ing the provided clock. > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:1811: wa= rning: Cannot understand * @brief Populates all SMC MCLK levels' structure= based on the trimmed allowed dpm memory clock states. > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:2496: wa= rning: Function parameter or member 'hwmgr' not described in 'vega10_init_s= mc_table' > drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:2867: wa= rning: Cannot understand * @brief Tell SMC to enabled the supported DPMs. > > Cc: Evan Quan > Cc: Alex Deucher > Cc: "Christian K=C3=B6nig" > Cc: David Airlie > Cc: Daniel Vetter > Cc: amd-gfx@lists.freedesktop.org > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Lee Jones Applied. Thanks! Alex > --- > .../drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 133 +++++++++--------- > 1 file changed, 65 insertions(+), 68 deletions(-) > > diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c b/driv= ers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c > index 1b47f94e03317..da470462d6e2c 100644 > --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c > +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c > @@ -542,11 +542,11 @@ static int vega10_get_socclk_for_voltage_evv(struct= pp_hwmgr *hwmgr, > > #define ATOM_VIRTUAL_VOLTAGE_ID0 0xff01 > /** > -* Get Leakage VDDC based on leakage ID. > -* > -* @param hwmgr the address of the powerplay hardware manager. > -* @return always 0. > -*/ > + * Get Leakage VDDC based on leakage ID. > + * > + * @hwmgr: the address of the powerplay hardware manager. > + * return: always 0. > + */ > static int vega10_get_evv_voltages(struct pp_hwmgr *hwmgr) > { > struct vega10_hwmgr *data =3D hwmgr->backend; > @@ -600,9 +600,9 @@ static int vega10_get_evv_voltages(struct pp_hwmgr *h= wmgr) > /** > * Change virtual leakage voltage to actual value. > * > - * @param hwmgr the address of the powerplay hardware manager. > - * @param pointer to changing voltage > - * @param pointer to leakage table > + * @hwmgr: the address of the powerplay hardware manager. > + * @voltage: pointer to changing voltage > + * @leakage_table: pointer to leakage table > */ > static void vega10_patch_with_vdd_leakage(struct pp_hwmgr *hwmgr, > uint16_t *voltage, struct vega10_leakage_voltage *leakage= _table) > @@ -624,13 +624,13 @@ static void vega10_patch_with_vdd_leakage(struct pp= _hwmgr *hwmgr, > } > > /** > -* Patch voltage lookup table by EVV leakages. > -* > -* @param hwmgr the address of the powerplay hardware manager. > -* @param pointer to voltage lookup table > -* @param pointer to leakage table > -* @return always 0 > -*/ > + * Patch voltage lookup table by EVV leakages. > + * > + * @hwmgr: the address of the powerplay hardware manager. > + * @lookup_table: pointer to voltage lookup table > + * @leakage_table: pointer to leakage table > + * return: always 0 > + */ > static int vega10_patch_lookup_table_with_leakage(struct pp_hwmgr *hwmgr= , > phm_ppt_v1_voltage_lookup_table *lookup_table, > struct vega10_leakage_voltage *leakage_table) > @@ -1001,13 +1001,12 @@ static int vega10_setup_asic_task(struct pp_hwmgr= *hwmgr) > } > > /** > -* Remove repeated voltage values and create table with unique values. > -* > -* @param hwmgr the address of the powerplay hardware manager. > -* @param vol_table the pointer to changing voltage table > -* @return 0 in success > -*/ > - > + * Remove repeated voltage values and create table with unique values. > + * > + * @hwmgr: the address of the powerplay hardware manager. > + * @vol_table: the pointer to changing voltage table > + * return: 0 in success > + */ > static int vega10_trim_voltage_table(struct pp_hwmgr *hwmgr, > struct pp_atomfwctrl_voltage_table *vol_table) > { > @@ -1151,11 +1150,11 @@ static void vega10_trim_voltage_table_to_fit_stat= e_table( > } > > /** > -* Create Voltage Tables. > -* > -* @param hwmgr the address of the powerplay hardware manager. > -* @return always 0 > -*/ > + * Create Voltage Tables. > + * > + * @hwmgr: the address of the powerplay hardware manager. > + * return: always 0 > + */ > static int vega10_construct_voltage_tables(struct pp_hwmgr *hwmgr) > { > struct vega10_hwmgr *data =3D hwmgr->backend; > @@ -1212,11 +1211,11 @@ static int vega10_construct_voltage_tables(struct= pp_hwmgr *hwmgr) > } > > /* > - * @fn vega10_init_dpm_state > - * @brief Function to initialize all Soft Min/Max and Hard Min/Max to 0x= ff. > + * vega10_init_dpm_state > + * Function to initialize all Soft Min/Max and Hard Min/Max to 0xff. > * > - * @param dpm_state - the address of the DPM Table to initiailize. > - * @return None. > + * @dpm_state: - the address of the DPM Table to initiailize. > + * return: None. > */ > static void vega10_init_dpm_state(struct vega10_dpm_state *dpm_state) > { > @@ -1460,11 +1459,11 @@ static int vega10_setup_default_dpm_tables(struct= pp_hwmgr *hwmgr) > } > > /* > - * @fn vega10_populate_ulv_state > - * @brief Function to provide parameters for Utral Low Voltage state to = SMC. > + * vega10_populate_ulv_state > + * Function to provide parameters for Utral Low Voltage state to SMC. > * > - * @param hwmgr - the address of the hardware manager. > - * @return Always 0. > + * @hwmgr: - the address of the hardware manager. > + * return: Always 0. > */ > static int vega10_populate_ulv_state(struct pp_hwmgr *hwmgr) > { > @@ -1545,13 +1544,12 @@ static int vega10_populate_smc_link_levels(struct= pp_hwmgr *hwmgr) > } > > /** > -* Populates single SMC GFXSCLK structure using the provided engine clock > -* > -* @param hwmgr the address of the hardware manager > -* @param gfx_clock the GFX clock to use to populate the structure. > -* @param current_gfxclk_level location in PPTable for the SMC GFXCLK= structure. > -*/ > - > + * Populates single SMC GFXSCLK structure using the provided engine cloc= k > + * > + * @hwmgr: the address of the hardware manager > + * @gfx_clock: the GFX clock to use to populate the structure. > + * @current_gfxclk_level: location in PPTable for the SMC GFXCLK struct= ure. > + */ > static int vega10_populate_single_gfx_level(struct pp_hwmgr *hwmgr, > uint32_t gfx_clock, PllSetting_t *current_gfxclk_level, > uint32_t *acg_freq) > @@ -1610,12 +1608,12 @@ static int vega10_populate_single_gfx_level(struc= t pp_hwmgr *hwmgr, > } > > /** > - * @brief Populates single SMC SOCCLK structure using the provided clock= . > + * Populates single SMC SOCCLK structure using the provided clock. > * > - * @param hwmgr - the address of the hardware manager. > - * @param soc_clock - the SOC clock to use to populate the structure. > - * @param current_socclk_level - location in PPTable for the SMC SOCC= LK structure. > - * @return 0 on success.. > + * @hwmgr: the address of the hardware manager. > + * @soc_clock: the SOC clock to use to populate the structure. > + * @current_socclk_level: location in PPTable for the SMC SOCCLK structu= re. > + * return: 0 on success > */ > static int vega10_populate_single_soc_level(struct pp_hwmgr *hwmgr, > uint32_t soc_clock, uint8_t *current_soc_did, > @@ -1659,10 +1657,10 @@ static int vega10_populate_single_soc_level(struc= t pp_hwmgr *hwmgr, > } > > /** > -* Populates all SMC SCLK levels' structure based on the trimmed allowed = dpm engine clock states > -* > -* @param hwmgr the address of the hardware manager > -*/ > + * Populates all SMC SCLK levels' structure based on the trimmed allowed= dpm engine clock states > + * > + * @hwmgr: the address of the hardware manager > + */ > static int vega10_populate_all_graphic_levels(struct pp_hwmgr *hwmgr) > { > struct vega10_hwmgr *data =3D hwmgr->backend; > @@ -1747,11 +1745,11 @@ static void vega10_populate_vddc_soc_levels(struc= t pp_hwmgr *hwmgr) > } > > /** > - * @brief Populates single SMC GFXCLK structure using the provided clock= . > + * Populates single SMC GFXCLK structure using the provided clock. > * > - * @param hwmgr - the address of the hardware manager. > - * @param mem_clock - the memory clock to use to populate the structu= re. > - * @return 0 on success.. > + * @hwmgr: the address of the hardware manager. > + * @mem_clock: the memory clock to use to populate the structure. > + * return: 0 on success.. > */ > static int vega10_populate_single_memory_level(struct pp_hwmgr *hwmgr, > uint32_t mem_clock, uint8_t *current_mem_vid, > @@ -1808,10 +1806,10 @@ static int vega10_populate_single_memory_level(st= ruct pp_hwmgr *hwmgr, > } > > /** > - * @brief Populates all SMC MCLK levels' structure based on the trimmed = allowed dpm memory clock states. > + * Populates all SMC MCLK levels' structure based on the trimmed allowed= dpm memory clock states. > * > - * @param pHwMgr - the address of the hardware manager. > - * @return PP_Result_OK on success. > + * @hwmgr: the address of the hardware manager. > + * return: PP_Result_OK on success. > */ > static int vega10_populate_all_memory_levels(struct pp_hwmgr *hwmgr) > { > @@ -2486,12 +2484,11 @@ static void vega10_check_dpm_table_updated(struct= pp_hwmgr *hwmgr) > } > > /** > -* Initializes the SMC table and uploads it > -* > -* @param hwmgr the address of the powerplay hardware manager. > -* @param pInput the pointer to input data (PowerState) > -* @return always 0 > -*/ > + * Initializes the SMC table and uploads it > + * > + * @hwmgr: the address of the powerplay hardware manager. > + * return: always 0 > + */ > static int vega10_init_smc_table(struct pp_hwmgr *hwmgr) > { > int result; > @@ -2864,11 +2861,11 @@ static int vega10_stop_dpm(struct pp_hwmgr *hwmgr= , uint32_t bitmap) > } > > /** > - * @brief Tell SMC to enabled the supported DPMs. > + * Tell SMC to enabled the supported DPMs. > * > - * @param hwmgr - the address of the powerplay hardware manager. > - * @Param bitmap - bitmap for the features to enabled. > - * @return 0 on at least one DPM is successfully enabled. > + * @hwmgr: the address of the powerplay hardware manager. > + * @bitmap bitmap for the features to enabled. > + * return: 0 on at least one DPM is successfully enabled. > */ > static int vega10_start_dpm(struct pp_hwmgr *hwmgr, uint32_t bitmap) > { > -- > 2.25.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel