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: fix reading SMU FW version from amdgpu_firmware_info on YC

This value does not get cached into adev->pm.fw_version during
startup for smu13 like it does for other SMU like smu12.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Mario Limonciello and committed by
Alex Deucher
6f072a84 240e6d25

+3
+3
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
··· 196 196 197 197 int smu_v13_0_check_fw_version(struct smu_context *smu) 198 198 { 199 + struct amdgpu_device *adev = smu->adev; 199 200 uint32_t if_version = 0xff, smu_version = 0xff; 200 201 uint16_t smu_major; 201 202 uint8_t smu_minor, smu_debug; ··· 209 208 smu_major = (smu_version >> 16) & 0xffff; 210 209 smu_minor = (smu_version >> 8) & 0xff; 211 210 smu_debug = (smu_version >> 0) & 0xff; 211 + if (smu->is_apu) 212 + adev->pm.fw_version = smu_version; 212 213 213 214 switch (smu->adev->ip_versions[MP1_HWIP][0]) { 214 215 case IP_VERSION(13, 0, 2):