linux/drivers/gpu/drm/amd
Monk Liu 48f05f2955 amd/scheduler:imple job skip feature(v3)
jobs are skipped under two cases
1)when the entity behind this job marked guilty, the job
poped from this entity's queue will be dropped in sched_main loop.

2)in job_recovery(), skip the scheduling job if its karma detected
above limit, and also skipped as well for other jobs sharing the
same fence context. this approach is becuase job_recovery() cannot
access job->entity due to entity may already dead.

v2:
some logic fix

v3:
when entity detected guilty, don't drop the job in the poping
stage, instead set its fence error as -ECANCELED

in run_job(), skip the scheduling either:1) fence->error < 0
or 2) there was a VRAM LOST occurred on this job.
this way we can unify the job skipping logic.

with this feature we can introduce new gpu recover feature.

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-12-04 16:41:30 -05:00
..
acp
amdgpu amd/scheduler:imple job skip feature(v3) 2017-12-04 16:41:30 -05:00
amdkfd Merge tag 'drm-amdkfd-fixes-2017-11-26' of git://people.freedesktop.org/~gabbayo/linux into drm-fixes 2017-12-01 09:14:46 +10:00
display drm/amd/display: Only add stream to freesync when modeset required 2017-12-04 16:41:29 -05:00
include drm/amdgpu: add new pp function point notify_smu_memory_info 2017-12-04 16:33:18 -05:00
lib drm/amd/chash: Fix typo 2017-09-28 16:03:29 -04:00
powerplay drm/amd/pp: delete an outdated comment in amd_powerplay.c 2017-12-04 16:33:19 -05:00
scheduler amd/scheduler:imple job skip feature(v3) 2017-12-04 16:41:30 -05:00