Skip to content

Commit 34f10da

Browse files
Asad Kamalalexdeucher
authored andcommitted
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>
1 parent acae8ad commit 34f10da

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,11 @@ static void smu_v13_0_12_init_caps(struct smu_context *smu)
354354
}
355355

356356
if (fw_ver >= 0x04560700) {
357-
if (!amdgpu_sriov_vf(smu->adev))
357+
if (fw_ver >= 0x04560900) {
358358
smu_v13_0_6_cap_set(smu, SMU_CAP(TEMP_METRICS));
359-
else if (fw_ver >= 0x04560900)
359+
if (smu->adev->gmc.xgmi.physical_node_id == 0)
360+
smu_v13_0_6_cap_set(smu, SMU_CAP(NPM_METRICS));
361+
} else if (!amdgpu_sriov_vf(smu->adev))
360362
smu_v13_0_6_cap_set(smu, SMU_CAP(TEMP_METRICS));
361363
} else {
362364
smu_v13_0_12_tables_fini(smu);

0 commit comments

Comments
 (0)