mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 01:20:01 -04:00
drm/amd/pm: Fill ip version for SMU v13.0.12
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>
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user