diff options
| author | Huang Rui <[email protected]> | 2018-05-23 03:18:43 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2018-06-13 18:45:20 +0000 |
| commit | a0b2ac29415bb44d1c212184c1385a1abe68db5c (patch) | |
| tree | fb3f705619d5aeec69a2478d2e7df29cab44629a /drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | |
| parent | Revert "drm/amdgpu: Add an ATPX quirk for hybrid laptop" (diff) | |
| download | kernel-a0b2ac29415bb44d1c212184c1385a1abe68db5c.tar.gz kernel-a0b2ac29415bb44d1c212184c1385a1abe68db5c.zip | |
drm/amdgpu: fix the missed vcn fw version report
It missed vcn.fw_version setting when init vcn microcode, and it will be used to
report vcn ucode version via amdgpu_firmware_info sysfs interface.
Signed-off-by: Huang Rui <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c index 6fd606f90cb2..127e87b470ff 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c @@ -82,6 +82,7 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev) } hdr = (const struct common_firmware_header *)adev->vcn.fw->data; + adev->vcn.fw_version = le32_to_cpu(hdr->ucode_version); family_id = le32_to_cpu(hdr->ucode_version) & 0xff; version_major = (le32_to_cpu(hdr->ucode_version) >> 24) & 0xff; version_minor = (le32_to_cpu(hdr->ucode_version) >> 8) & 0xff; |
