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:20:55 +0000 (12:20 +0200)
commit748a97ec6c1588e3a49e09fe9ca56dcdb7f976b5
treefabc229fef30408b9212cc3ea1cf9ab69559ce26
parent98a8cb0282ab22d0533de34412f2118bf21147e4
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