]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: fix double gpu_recovery for NV of SRIOV
authorMonk Liu <Monk.Liu@amd.com>
Tue, 17 Dec 2019 10:18:31 +0000 (18:18 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:38:17 +0000 (08:38 +0100)
commit02dbc003c9661ad05059aad49bf9bd29f4fb9ef9
treea1bd01968405a5f20108e1a3ce5f22d82a564676
parent36a36d16067e3c6b863e68837ef4046ed43bcdb5
drm/amdgpu: fix double gpu_recovery for NV of SRIOV

[ Upstream commit 1512d064f55bace6a8e32d65009c7ea112e76a31 ]

issues:
gpu_recover() is re-entered by the mailbox interrupt
handler mxgpu_nv.c

fix:
we need to bypass the gpu_recover() invoke in mailbox
interrupt as long as the timeout is not infinite (thus the TDR
will be triggered automatically after time out, no need to invoke
gpu_recover() through mailbox interrupt.

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Emily Deng <Emily.Deng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c