drm/amdgpu: Handle xgmi device removal.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Thu, 29 Nov 2018 17:21:53 +0000 (12:21 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 3 Dec 2018 16:15:08 +0000 (11:15 -0500)
commita82400b57abb6aff068bb3b21d1cccd63acbb863
tree69a85209edb417f47210e3cccde644d0b88a25a4
parent38cd8a280d725cd4e0be14b0fbc2797c26cd9de5
drm/amdgpu: Handle xgmi device removal.

XGMI hive has some resources allocted on device init which
needs to be deallocated when the device is unregistered.

v2: Remove creation of dedicated wq for XGMI hive reset.
v3: Use the gmc.xgmi.supported flag

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