aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2019-01-30 01:53:19 +0000
committerAlex Deucher <[email protected]>2019-02-15 16:15:08 +0000
commit1decbf6bb0b4dc56c9da6c5e57b994ebfc2be3aa (patch)
tree1d357e57e9295e264591c03261b36dadaa36d0a8 /drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
parentdrm/amdgpu: don't clamp debugfs register access to the BAR size (diff)
downloadkernel-1decbf6bb0b4dc56c9da6c5e57b994ebfc2be3aa.tar.gz
kernel-1decbf6bb0b4dc56c9da6c5e57b994ebfc2be3aa.zip
drm/sched: Fix entities with 0 rqs.
Some blocks in amdgpu can have 0 rqs. Job creation already fails with -ENOENT when entity->rq is NULL, so jobs cannot be pushed. Without a rq there is no scheduler to pop jobs, and rq selection already does the right thing with a list of length 0. So the operations we need to fix are: - Creation, do not set rq to rq_list[0] if the list can have length 0. - Do not flush any jobs when there is no rq. - On entity destruction handle the rq = NULL case. - on set_priority, do not try to change the rq if it is NULL. Signed-off-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
0 files changed, 0 insertions, 0 deletions