|
@@ -82,6 +82,7 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev)
|
|
}
|
|
}
|
|
|
|
|
|
hdr = (const struct common_firmware_header *)adev->vcn.fw->data;
|
|
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;
|
|
family_id = le32_to_cpu(hdr->ucode_version) & 0xff;
|
|
version_major = (le32_to_cpu(hdr->ucode_version) >> 24) & 0xff;
|
|
version_major = (le32_to_cpu(hdr->ucode_version) >> 24) & 0xff;
|
|
version_minor = (le32_to_cpu(hdr->ucode_version) >> 8) & 0xff;
|
|
version_minor = (le32_to_cpu(hdr->ucode_version) >> 8) & 0xff;
|