mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 00:39:48 +00:00
drm/amdgpu/pm/smu11: cache smu firmware version
So we print the proper SMU firmware version in debugfs, ioctls, etc. for vangogh. Reviewed-by: Evan Quan <evan.quan@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
c15015b831
commit
dda818a09b
1 changed files with 3 additions and 0 deletions
|
@ -216,6 +216,7 @@ int smu_v11_0_check_fw_status(struct smu_context *smu)
|
||||||
|
|
||||||
int smu_v11_0_check_fw_version(struct smu_context *smu)
|
int smu_v11_0_check_fw_version(struct smu_context *smu)
|
||||||
{
|
{
|
||||||
|
struct amdgpu_device *adev = smu->adev;
|
||||||
uint32_t if_version = 0xff, smu_version = 0xff;
|
uint32_t if_version = 0xff, smu_version = 0xff;
|
||||||
uint16_t smu_major;
|
uint16_t smu_major;
|
||||||
uint8_t smu_minor, smu_debug;
|
uint8_t smu_minor, smu_debug;
|
||||||
|
@ -228,6 +229,8 @@ int smu_v11_0_check_fw_version(struct smu_context *smu)
|
||||||
smu_major = (smu_version >> 16) & 0xffff;
|
smu_major = (smu_version >> 16) & 0xffff;
|
||||||
smu_minor = (smu_version >> 8) & 0xff;
|
smu_minor = (smu_version >> 8) & 0xff;
|
||||||
smu_debug = (smu_version >> 0) & 0xff;
|
smu_debug = (smu_version >> 0) & 0xff;
|
||||||
|
if (smu->is_apu)
|
||||||
|
adev->pm.fw_version = smu_version;
|
||||||
|
|
||||||
switch (smu->adev->asic_type) {
|
switch (smu->adev->asic_type) {
|
||||||
case CHIP_ARCTURUS:
|
case CHIP_ARCTURUS:
|
||||||
|
|
Loading…
Reference in a new issue