]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: add concurrent baco reset support for XGMI
authorLe Ma <le.ma@amd.com>
Tue, 26 Nov 2019 14:12:31 +0000 (22:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 Dec 2019 21:25:53 +0000 (16:25 -0500)
commit87342b012f91534cc96efa66a2759c196d4970d8
tree20d5880c9af2862fb0d9b5906781ef9156c2634b
parentbd05a2174aaa3973c29af74b57b57d4cd2c06a49
drm/amdgpu: add concurrent baco reset support for XGMI

Currently each XGMI node reset wq does not run in parrallel if bound to same
cpu. Make change to bound the xgmi_reset_work item to different cpus.

XGMI requires all nodes enter into baco within very close proximity before
any node exit baco. So schedule the xgmi_reset_work wq twice for enter/exit
baco respectively.

To use baco for XGMI, PMFW supported for baco on XGMI needs to be involved.

The case that PSP reset and baco reset coexist within an XGMI hive never exist
and is not in the consideration.

v2: define use_baco flag to simplify the code for xgmi baco sequence

Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@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