OSDN Git Service

drm/amdgpu: Fix uvd firmware version information for vega20 (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Jun 2018 15:24:06 +0000 (10:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 15 Jun 2018 15:28:12 +0000 (10:28 -0500)
commit5c2199270275581a06571960e7d6abac008ff060
treeafa93a061cf506681020a1e28eacaf664a269595
parentdd06eecb73d2e5f5c4039bcd9d83d4f7e0156d6f
drm/amdgpu: Fix uvd firmware version information for vega20 (v2)

The uvd version information was not set correctly for vega20.
Rearrange the logic to set it correctly and fix the warnings
as a result.

v2: fix version formatting for userspace based on feedback from Leo

Fixes: 96ca7f298f (drm/amdgpu/vg20:support new UVD FW version naming convention)
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c