drm/amdgpu/sriov Stop data exchange for wholegpu reset
authorJack Zhang <Jack.Zhang1@amd.com>
Thu, 7 Jan 2021 10:38:29 +0000 (18:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 14 Jan 2021 04:47:39 +0000 (23:47 -0500)
commit3c2a01cb0fc567c18b802f25d619e31c196294ce
treea9cc98b71846f93a0a9c8db52964fe21a2d8458c
parent4738154021b0c9f13eaf60e98e0265eacf963adc
drm/amdgpu/sriov Stop data exchange for wholegpu reset

[Why]
When host trigger a whole gpu reset, guest will keep
waiting till host finish reset. But there's a work
queue in guest exchanging data between vf&pf which need
to access frame buffer. During whole gpu reset, frame
buffer is not accessable, and this causes the call trace.

[How]
After vf get reset notification from pf, stop data exchange.

Signed-off-by: Jingwen Chen <Jingwen.Chen2@amd.com>
Signed-off-by: Jack Zhang <Jack.Zhang1@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c