]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/pm: Fill ip version for SMU v13.0.12
authorAsad Kamal <asad.kamal@amd.com>
Tue, 24 Dec 2024 12:06:14 +0000 (20:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:02:56 +0000 (21:02 -0500)
Fill ip version in pm_metrics for SMU v13.0.12

v2: Remove ip version check(Lijo)

Signed-off-by: Asad Kamal <asad.kamal@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

index da7bd9227afeb4a4fc629245bc17e624ba8ab179..fa11e30bff240a5646b8376a269c6ea773586b78 100644 (file)
@@ -740,10 +740,8 @@ static ssize_t smu_v13_0_6_get_pm_metrics(struct smu_context *smu,
 
        memset(&pm_metrics->common_header, 0,
               sizeof(pm_metrics->common_header));
-       if (amdgpu_ip_version(smu->adev, MP1_HWIP, 0) == IP_VERSION(13, 0, 6))
-               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);
+       pm_metrics->common_header.mp1_ip_discovery_version =
+               amdgpu_ip_version(smu->adev, MP1_HWIP, 0);
        pm_metrics->common_header.pmfw_version = pmfw_version;
        pm_metrics->common_header.pmmetrics_version = table_version;
        pm_metrics->common_header.structure_size =