All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/amd/pm: Fill ip version for SMU v13.0.12
@ 2025-01-10 20:17 Alex Deucher
  2025-01-10 20:17 ` [PATCH 2/2] drm/amd/pm: Populate pmfw " Alex Deucher
  2025-01-11  3:31 ` [PATCH 1/2] drm/amd/pm: Fill ip " Lazar, Lijo
  0 siblings, 2 replies; 3+ messages in thread
From: Alex Deucher @ 2025-01-10 20:17 UTC (permalink / raw)
  To: amd-gfx; +Cc: Asad Kamal, Hawking Zhang, Alex Deucher

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);
 	pm_metrics->common_header.pmfw_version = pmfw_version;
 	pm_metrics->common_header.pmmetrics_version = table_version;
 	pm_metrics->common_header.structure_size =
-- 
2.47.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] drm/amd/pm: Populate pmfw version for SMU v13.0.12
  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 ` Alex Deucher
  2025-01-11  3:31 ` [PATCH 1/2] drm/amd/pm: Fill ip " Lazar, Lijo
  1 sibling, 0 replies; 3+ messages in thread
From: Alex Deucher @ 2025-01-10 20:17 UTC (permalink / raw)
  To: amd-gfx; +Cc: Asad Kamal, Hawking Zhang, Alex Deucher

From: Asad Kamal <asad.kamal@amd.com>

Populate pmfw version for SMU v13.0.12 to device struct

v2: Remove ip version check to get smu version

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.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
index fbbdfa54f6a20..0915d6377613b 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
@@ -267,10 +267,7 @@ int smu_v13_0_check_fw_version(struct smu_context *smu)
 	smu_major = (smu_version >> 16) & 0xff;
 	smu_minor = (smu_version >> 8) & 0xff;
 	smu_debug = (smu_version >> 0) & 0xff;
-	if (smu->is_apu ||
-	    amdgpu_ip_version(adev, MP1_HWIP, 0) == IP_VERSION(13, 0, 6) ||
-	    amdgpu_ip_version(adev, MP1_HWIP, 0) == IP_VERSION(13, 0, 14))
-		adev->pm.fw_version = smu_version;
+	adev->pm.fw_version = smu_version;
 
 	/* only for dGPU w/ SMU13*/
 	if (adev->pm.fw)
-- 
2.47.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] drm/amd/pm: Fill ip version for SMU v13.0.12
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Lazar, Lijo @ 2025-01-11  3:31 UTC (permalink / raw)
  To: Alex Deucher, amd-gfx; +Cc: Asad Kamal, Hawking Zhang



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 =


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-11  3:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH 1/2] drm/amd/pm: Fill ip " Lazar, Lijo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.