drm/amdgpu: Do gpu recovery when no job is running
authorLiu ChengZhe <ChengZhe.Liu@amd.com>
Wed, 9 Sep 2020 08:00:12 +0000 (16:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Sep 2020 21:24:18 +0000 (17:24 -0400)
commit2a9787dcf537d0e4f1fa41cbd883abe9d70b9fcb
tree6d6874b7ca87693e130b74ca55e98caf4e60d65e
parentedb084f487a3b7c86efce81bfa1a7aa666dd4047
drm/amdgpu: Do gpu recovery when no job is running

In function flr_work, we should do gpu recovery when no job
is running. Fix the logic by inverting it.

v2: modify the description

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Liu ChengZhe <ChengZhe.Liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
drivers/gpu/drm/amd/amdgpu/mxgpu_nv.c