drm/amdgpu: Refactor amdgpu_xgmi_add_device
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Mon, 12 Nov 2018 21:16:03 +0000 (16:16 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Nov 2018 20:55:35 +0000 (15:55 -0500)
commit5183411b56bde159e5c3172fcb8904f8421c2c38
tree99f00cc1f9b3a468bdd1a1f6ae3e679a310acf5f
parentbb47de736661887f37b5380f68a3faedf077aed0
drm/amdgpu: Refactor amdgpu_xgmi_add_device

This is prep work for updating each PSP FW in hive after
GPU reset.
Split into build topology SW state and update each PSP FW in the hive.
Save topology and count of XGMI devices for reuse.

v2: Create seperate header for XGMI.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h [new file with mode: 0644]