AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Lazar, Lijo" <lijo.lazar@amd.com>
To: Alex Deucher <alexander.deucher@amd.com>, amd-gfx@lists.freedesktop.org
Cc: Asad Kamal <asad.kamal@amd.com>, Hawking Zhang <Hawking.Zhang@amd.com>
Subject: Re: [PATCH 1/2] drm/amd/pm: Fill ip version for SMU v13.0.12
Date: Sat, 11 Jan 2025 09:01:16 +0530	[thread overview]
Message-ID: <2db62f0a-eefb-4dfa-9118-6c8edd79d754@amd.com> (raw)
In-Reply-To: <20250110201715.3828934-1-alexander.deucher@amd.com>



On 1/11/2025 1:47 AM, Alex Deucher wrote:
> From: Asad Kamal <asad.kamal@amd.com>
> 
> Fill ip version in pm_metrics for SMU v13.0.12
> 
> Signed-off-by: Asad Kamal <asad.kamal@amd.com>
> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> ---
>  drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
> index 8ab30b2f7119e..045a1a814c2a2 100644
> --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
> +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
> @@ -603,6 +603,8 @@ static ssize_t smu_v13_0_6_get_pm_metrics(struct smu_context *smu,
>  		pm_metrics->common_header.mp1_ip_discovery_version = IP_VERSION(13, 0, 6);
>  	if (amdgpu_ip_version(smu->adev, MP1_HWIP, 0) == IP_VERSION(13, 0, 14))
>  		pm_metrics->common_header.mp1_ip_discovery_version = IP_VERSION(13, 0, 14);
> +	if (amdgpu_ip_version(smu->adev, MP1_HWIP, 0) == IP_VERSION(13, 0, 12))
> +		pm_metrics->common_header.mp1_ip_discovery_version = IP_VERSION(13, 0, 12);

Please remove all if checks and keep

	pm_metrics->common_header.mp1_ip_discovery_version =
amdgpu_ip_version(smu->adev, MP1_HWIP, 0);

Thanks,
Lijo

>  	pm_metrics->common_header.pmfw_version = pmfw_version;
>  	pm_metrics->common_header.pmmetrics_version = table_version;
>  	pm_metrics->common_header.structure_size =


      parent reply	other threads:[~2025-01-11  3:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-10 20:17 [PATCH 1/2] drm/amd/pm: Fill ip version for SMU v13.0.12 Alex Deucher
2025-01-10 20:17 ` [PATCH 2/2] drm/amd/pm: Populate pmfw " Alex Deucher
2025-01-11  3:31 ` Lazar, Lijo [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=2db62f0a-eefb-4dfa-9118-6c8edd79d754@amd.com \
    --to=lijo.lazar@amd.com \
    --cc=Hawking.Zhang@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=asad.kamal@amd.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox