Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/pm: Fill pldm version for SMU v13.0.6 SOCs

Fetch pldm version from static metrics table for SMU v13.0.6 SOCs

Signed-off-by: Asad Kamal <asad.kamal@amd.com>
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Asad Kamal and committed by
Alex Deucher
2ed4fd99 7f30f8ef

+8
+7
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.c
··· 396 396 smu_v13_0_6_cap_set(smu, SMU_CAP(STATIC_METRICS)); 397 397 smu_v13_0_6_cap_set(smu, SMU_CAP(BOARD_VOLTAGE)); 398 398 } 399 + if (fw_ver >= 0x00558000) 400 + smu_v13_0_6_cap_set(smu, SMU_CAP(PLDM_VERSION)); 399 401 } 400 402 if (((pgm == 7) && (fw_ver >= 0x7550700)) || 401 403 ((pgm == 0) && (fw_ver >= 0x00557900)) || ··· 754 752 } 755 753 756 754 dpm_context->board_volt = static_metrics->InputTelemetryVoltageInmV; 755 + 756 + if (smu_v13_0_6_cap_supported(smu, SMU_CAP(PLDM_VERSION)) && 757 + static_metrics->pldmVersion[0] != 0xFFFFFFFF) 758 + smu->adev->firmware.pldm_version = 759 + static_metrics->pldmVersion[0]; 757 760 } 758 761 759 762 int smu_v13_0_6_get_static_metrics_table(struct smu_context *smu)
+1
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_6_ppt.h
··· 67 67 SMU_CAP(STATIC_METRICS), 68 68 SMU_CAP(HST_LIMIT_METRICS), 69 69 SMU_CAP(BOARD_VOLTAGE), 70 + SMU_CAP(PLDM_VERSION), 70 71 SMU_CAP(ALL), 71 72 }; 72 73