diff options
author | Andrey Grodzovsky <andrey.grodzovsky@amd.com> | 2018-11-22 18:57:08 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-11-28 15:55:36 -0500 |
commit | 26bc534094ed45fdedef6b4ce8b96030340c5ce7 (patch) | |
tree | 63e9070146eb3da91e2f340e33afaf15da83c5bb /drivers/scsi/qedi/qedi_gbl.h | |
parent | ed2bf5229c53f20cfbca7a34fcbafa91c3168e1e (diff) | |
download | linux-26bc534094ed45fdedef6b4ce8b96030340c5ce7.tar.bz2 |
drm/amdgpu: Refactor GPU reset for XGMI hive case
For XGMI hive case do reset in steps where each step iterates over
all devs in hive. This especially important for asic reset
since all PSP FW in hive must come up within a limited time
(around 1 sec) to properply negotiate the link.
Do this by refactoring amdgpu_device_gpu_recover and amdgpu_device_reset
into pre_asic_reset, asic_reset and post_asic_reset functions where is part
is exectued for all the GPUs in the hive before going to the next step.
v2: Update names for amdgpu_device_lock/unlock functions.
v3: Introduce per hive locking to avoid multiple resets for GPUs
in same hive.
v4:
Remove delayed_workqueue()/ttm_bo_unlock_delayed_workqueue() - they
are copy & pasted over from radeon and on amdgpu there isn't
any reason for that any more.
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>
Diffstat (limited to 'drivers/scsi/qedi/qedi_gbl.h')
0 files changed, 0 insertions, 0 deletions