]> asedeno.scripts.mit.edu Git - linux.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)
commitce316fa55ef0f1751276b846a54fb3b835bd5e64
tree20d5880c9af2862fb0d9b5906781ef9156c2634b
parent7a22677b9514d0e819eb85d687eb8d8ef10ab330
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