drm/amdgpu: fix a page fault
authorSonny Jiang <sonny.jiang@amd.com>
Fri, 20 Nov 2020 07:38:09 +0000 (02:38 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Nov 2020 17:03:37 +0000 (12:03 -0500)
commit7203a2fd98c85d366e88e7cbacf5e639060452d9
tree79b9f4163e9ebc7df9f3e4b3525a93464a6b63ec
parentfce8a4ac46b0726bc25098855214a67b22b624d0
drm/amdgpu: fix a page fault

The UVD firmware is copied to cpu addr in uvd_resume, so it
should be used after that. This is to fix a bug introduced by
patch drm/amdgpu: fix SI UVD firmware validate resume fail.

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/uvd_v3_1.c