drm/amdgpu: fix SI UVD firmware validate resume fail
authorSonny Jiang <sonny.jiang@amd.com>
Fri, 6 Nov 2020 21:42:47 +0000 (16:42 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Nov 2020 17:29:35 +0000 (12:29 -0500)
commit4d6a95366117b241bb3298e1c318a36ebb7544d0
tree22f88fb1ab1cb9d9fbddb0869749a0892c7356cd
parent7acc79eb5f78d3d1aa5dd21fc0a0329f1b7f2be5
drm/amdgpu: fix SI UVD firmware validate resume fail

The SI UVD firmware validate key is stored at the end of firmware,
which is changed during resume while playing video. So get the key
at sw_init and store it for fw validate using.

Signed-off-by: Sonny Jiang <sonny.jiang@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h
drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c