mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-07 19:49:33 -04:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user