drm/amdgpu: fix the missed vcn fw version report
Subsystems (2)
PATCH 1/1 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.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +1 -0
@@ -84,6 +84,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 ;
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1527055996-32237-1-git-send-email-ray.huang-5C7GfCeVMHo@public.gmane.org
Christian König
Reviewed-byAm 23.05.2018 um 08:13 schrieb Huang Rui:
Quoted 4 lines
It missed vcn.fw_version setting when init vcn microcode, and it will be used to report vcn ucode version via
amdgpu_firmware_infosysfs interface.Signed-off-by Huang Rui <[email protected]>
Quoted 9 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c int amdgpu_vcn_sw_init(struct amdgpu_device *adev) · line 90
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +1
-0@@ -84,6 +84,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 ;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx