drm/amdgpu/psp: Get psp fw version through reading register
authorXiangliang Yu <Xiangliang.Yu@amd.com>
Tue, 4 Dec 2018 07:13:28 +0000 (15:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 7 Dec 2018 22:53:46 +0000 (17:53 -0500)
commitd63cda5bfcd341b86c07beb5919107aae0d9ba99
tree5a265d978b2c8c0e8a47f90fd71b417f7e8f8329
parent07daa8a0784e3085c4c8e282a83dd8c92bf59b53
drm/amdgpu/psp: Get psp fw version through reading register

If PSP FW is running already, driver will not load PSP FW again and skip
it. So psp fw version is not correct if reading it from FW binary file,
need to get right version from register.

Signed-off-by: Xiangliang Yu <Xiangliang.Yu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/psp_v11_0.c