drm/amd/pm: Enable npm metrics data

Enable npm metrics data for smu_v13_0_12

v3: Add node id check for setting NPM_CAPS (Lijo)

Signed-off-by: Asad Kamal <asad.kamal@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Yang Wang <kevinyang.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Asad Kamal
2025-09-15 20:28:49 +08:00
committed by Alex Deucher
parent acae8ad69b
commit 34f10da667

View File

@@ -354,9 +354,11 @@ static void smu_v13_0_12_init_caps(struct smu_context *smu)
}
if (fw_ver >= 0x04560700) {
if (!amdgpu_sriov_vf(smu->adev))
if (fw_ver >= 0x04560900) {
smu_v13_0_6_cap_set(smu, SMU_CAP(TEMP_METRICS));
else if (fw_ver >= 0x04560900)
if (smu->adev->gmc.xgmi.physical_node_id == 0)
smu_v13_0_6_cap_set(smu, SMU_CAP(NPM_METRICS));
} else if (!amdgpu_sriov_vf(smu->adev))
smu_v13_0_6_cap_set(smu, SMU_CAP(TEMP_METRICS));
} else {
smu_v13_0_12_tables_fini(smu);