drm/amdgpu: Expose hive adev list and xgmi_mutex
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Wed, 14 Nov 2018 20:50:05 +0000 (15:50 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Nov 2018 20:55:36 +0000 (15:55 -0500)
commited2bf5229c53f20cfbca7a34fcbafa91c3168e1e
tree7af9e39d1847570e71d23a053b7bf1389a8ce9ac
parent5183411b56bde159e5c3172fcb8904f8421c2c38
drm/amdgpu: Expose hive adev list and xgmi_mutex

It's needed for device reset of entire hive.

v3:
Add per hive lock to allow avoiding duplicate resets triggered by
multiple members  of same hive.
Expose amdgpu_hive_info instead of adding getter functions.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@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_xgmi.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h