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:02:38 +0000 (12:02 -0500)
commitbb7978111dd3d0f663509586a8da2e68cda6a7d8
tree580a540b99b5934165a7f18ffeee8d30af160c4f
parente7de4aee0a0ad741397822e1b7887e790b3944a8
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.h
drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c