drm/amdgpu/psp: move psp version specific function pointers to early_init
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 9 May 2019 02:45:06 +0000 (21:45 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jun 2019 10:21:50 +0000 (12:21 +0200)
commit1a7df71d6f831860492a681bfd9c4ff4fe7453bd
tree190e9a2292b6c7c523f9b4ca9eea145f80834121
parent140ae656e3b7476719a2b15b96527c73c5acf90b
drm/amdgpu/psp: move psp version specific function pointers to early_init

commit 9d6fea5744d6798353f37ac42a8a653a2607ca69 upstream.

In case we need to use them for GPU reset prior initializing the
asic.  Fixes a crash if the driver attempts to reset the GPU at driver
load time.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c