]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu:fix gpu recover missing skipping(v2)
authorMonk Liu <Monk.Liu@amd.com>
Wed, 8 Nov 2017 06:35:04 +0000 (14:35 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Dec 2017 21:41:46 +0000 (16:41 -0500)
commita3c4b59a1f346ff7722b3e38cc8db2bcef6e151c
tree8556b9a53600baf9ada180d981f8e4407785a681
parent9c692480a9cfb09309e79ac85668b93cfbe0f7d1
drm/amdgpu:fix gpu recover missing skipping(v2)

if app close CTX right after IB submit, gpu recover
will fail to find out the entity behind this guilty
job thus lead to no job skipping for this guilty job.

to fix this corner case just move the increasement of
job->karma out of the entity iteration.

v2:
only do karma increasment if bad->s_priority != KERNEL
because we always consider KERNEL job be correct and always
want to recover an unfinished kernel job (sometimes kernel
job is interrupted by VF FLR or other GPU hang event)

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-By: Xiangliang Yu <Xiangliang.Yu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c