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:30:37 +0000 (12:30 -0500)
commitdbbf2728d50343b7947001a81f4c8cc98e4b44e5
tree9a565016d4ed3b7ddc14ff7f1f82c2c34e37cb29
parent4d6a95366117b241bb3298e1c318a36ebb7544d0
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>
CC: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c