drm/amd/virt: For SRIOV send GPU reset directly to TDR queue.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Mon, 20 Dec 2021 22:27:37 +0000 (17:27 -0500)
committerAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Wed, 9 Feb 2022 17:16:06 +0000 (12:16 -0500)
commit02599bc7f7047f2b316ab499f41d72ca14e3b3d3
tree0c507db460b008654a35c454d145184d23e5414b
parent54f329cc7a7a7ea265c45b206d45e3d09192aba7
drm/amd/virt: For SRIOV send GPU reset directly to TDR queue.

No need to to trigger another work queue inside the work queue.

v3:

Problem:
Extra reset caused by host side FLR notification
following guest side triggered reset.
Fix: Preven qeuing flr_work from mailbox irq if guest
already executing a reset.

Suggested-by: Liu Shaoyun <Shaoyun.Liu@amd.com>
Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Liu Shaoyun <Shaoyun.Liu@amd.com>
Link: https://www.spinics.net/lists/amd-gfx/msg74114.html
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c
drivers/gpu/drm/amd/amdgpu/mxgpu_vi.c