drm/amdgpu/psp: initialize xgmi session (v2)
authorHawking Zhang <Hawking.Zhang@amd.com>
Fri, 28 Sep 2018 13:28:10 +0000 (21:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Nov 2018 19:02:43 +0000 (14:02 -0500)
commit3e2e2ab55499f77cbd57ee91e250c085d252a979
tree0cc22414c154be7517325409264609f286150563
parentca6e1e59a24bf4aed4d017163f8184eb4e384a9b
drm/amdgpu/psp: initialize xgmi session (v2)

Setup and tear down xgmi as part of psp.

v2:
- make psp_xgmi_terminate static
- squash in:
drm/amdgpu: only issue xgmi cmd when it is enabled
drm/amdgpu/psp: terminate xgmi ta in suspend and hw_fini phase

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c