drm/amdgpu: add checking for sos version
authorHuang Rui <ray.huang@amd.com>
Sat, 12 May 2018 04:31:12 +0000 (12:31 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Jun 2018 18:45:20 +0000 (13:45 -0500)
commit235293901c11705f94744c08582e1ff339ee29b2
tree6da101ae0959e93f9de5c6a97b3b76ebdffe96de
parenta0b2ac29415bb44d1c212184c1385a1abe68db5c
drm/amdgpu: add checking for sos version

The sos ucode version will be changed to align with the value of
mmMP0_SMN_C2PMSG_58. Then we add a checking for this. Meanwhile, we have to be
compatibility backwards. So it adds serveral recent legacy versions as the white
list for the version checking.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/psp_v3_1.c