OSDN Git Service

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)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 May 2019 22:47:04 +0000 (17:47 -0500)
commit9d6fea5744d6798353f37ac42a8a653a2607ca69
tree7eae3ffcf11e073f29b7c55c0f7fbb143b55d70f
parent2e26ccb119bde03584be53406bbd22e711b0d6e6
drm/amdgpu/psp: move psp version specific function pointers to early_init

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
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c