| Age | Commit message (Collapse) | Author | Files | Lines | |
|---|---|---|---|---|---|
| 2015-08-28 | drm/amdgpu: add scheduler dependency callback v2 | Christian König | 1 | -0/+3 | |
| This way the scheduler doesn't wait in it's work thread any more. v2: fix race conditions Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> | |||||
| 2015-08-26 | drm/amdgpu: fix wait queue handling in the scheduler | Christian König | 1 | -2/+2 | |
| Freeing up a queue after signalling it isn't race free. Signed-off-by: Christian König <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> | |||||
| 2015-08-26 | drm/amdgpu: remove extra parameters from scheduler callbacks | Christian König | 1 | -5/+2 | |
| Signed-off-by: Christian König <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> | |||||
| 2015-08-26 | drm/amdgpu: remove entity idle timeout v2 | Christian König | 1 | -4/+2 | |
| Removing the entity from scheduling can deadlock the whole system. Wait forever till the remaining IBs are scheduled. v2: fix comment as well Signed-off-by: Christian König <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> (v1) | |||||
| 2015-08-25 | drm/amdgpu: add priv data to sched | Chunming Zhou | 1 | -1/+2 | |
| Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Christian K?nig <[email protected]> | |||||
| 2015-08-25 | drm/amdgpu: add owner for sched fence | Chunming Zhou | 1 | -1/+3 | |
| Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Christian K?nig <[email protected]> | |||||
| 2015-08-25 | drm/amdgpu: remove entity reference from sched fence | Christian König | 1 | -3/+2 | |
| Entity don't live as long as scheduler fences. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> | |||||
| 2015-08-25 | drm/amdgpu: fix and cleanup amd_sched_entity_push_job | Christian König | 1 | -3/+1 | |
| Calling schedule() is probably the worse things we can do. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> | |||||
| 2015-08-25 | drm/amdgpu: remove unused parameters to amd_sched_create | Christian König | 1 | -9/+3 | |
| Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> | |||||
| 2015-08-25 | drm/amdgpu: remove sched_lock | Christian König | 1 | -1/+0 | |
| It isn't protecting anything. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> | |||||
| 2015-08-25 | drm/amdgpu: remove prepare_job callback | Christian König | 1 | -3/+0 | |
| Not used any more. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> | |||||
| 2015-08-25 | drm/amdgpu: fix entity wakeup race condition | Christian König | 1 | -1/+0 | |
| That actually didn't worked at all. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> | |||||
| 2015-08-25 | drm/amdgpu: remove some more unused entity members v2 | Christian König | 1 | -3/+0 | |
| None of them are used any more. v2: fix type in error message Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> | |||||
| 2015-08-25 | drm/amdgpu: rework scheduler submission handling. | Christian König | 1 | -4/+1 | |
| Remove active_hw_rq and it's protecting queue_lock, they are unused. User 32bit atomic for hw_rq_count, 64bits for counting to three is a bit overkill. Cleanup the function name and remove incorrect comments. Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> | |||||
| 2015-08-25 | drm/amdgpu: remove v_seq handling from the scheduler v2 | Christian König | 1 | -6/+1 | |
| Simply not used any more. Only keep 32bit atomic for fence sequence numbering. v2: trivial rebase Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> (v1) Reviewed-by: Jammy Zhou <[email protected]> (v1) Reviewed-by: Chunming Zhou <[email protected]> (v1) | |||||
| 2015-08-20 | drm/amdgpu: use a spinlock instead of a mutex for the rq | Christian König | 1 | -1/+1 | |
| More appropriate and fixes some nasty lockdep warnings. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> | |||||
| 2015-08-20 | drm/amdgpu: abstract amdgpu_job for scheduler | Chunming Zhou | 1 | -5/+1 | |
| Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Christian K?nig <[email protected]> | |||||
| 2015-08-17 | drm/amdgpu: cleanup sheduler rq handling v2 | Christian König | 1 | -16/+9 | |
| Rework run queue implementation, especially remove the odd list handling. v2: cleanup the code only, no algorithem change. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> | |||||
| 2015-08-17 | drm/amdgpu: fix unnecessary wake up | Chunming Zhou | 1 | -0/+1 | |
| decrease CPU extra overhead. Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> Reviewed-by: Christian K?nig <[email protected]> | |||||
| 2015-08-17 | drm/amdgpu: remove scheduler fence list v2 | Christian König | 1 | -2/+0 | |
| Unused and missing proper locking. v2: add locking comment to commit message. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> (v1) | |||||
| 2015-08-17 | drm/amdgpu: remove amd_sched_wait_emit v2 | Christian König | 1 | -10/+0 | |
| Not used any more. v2: remove amd_sched_emit as well. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> | |||||
| 2015-08-17 | drm/amd: add scheduler fence implementation (v2) | Chunming Zhou | 1 | -1/+32 | |
| scheduler fence is based on kernel fence framework. v2: squash in Christian's build fix Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Christian K?nig <[email protected]> | |||||
| 2015-08-17 | drm/amdgpu: use amd_sched_job in its backend ops | Chunming Zhou | 1 | -5/+6 | |
| Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Christian K?nig <[email protected]> | |||||
| 2015-08-17 | drm/amdgpu: cleanup and fix scheduler fence handling v2 | Christian König | 1 | -4/+3 | |
| v2: rebased Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> (v1) Reviewed-by: Chunming Zhou <[email protected]> | |||||
| 2015-08-17 | drm/amdgpu: merge amd_sched_entity and amd_context_entity v2 | Christian König | 1 | -33/+24 | |
| Avoiding a couple of casts. v2: rename c_entity to entity as well Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> | |||||
| 2015-08-17 | drm/amdgpu: remove unused parent entity | Christian König | 1 | -2/+0 | |
| Signed-off-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> | |||||
| 2015-08-17 | drm/amdgpu: process sched job exactly triggered by fence signal | Chunming Zhou | 1 | -5/+13 | |
| Signed-off-by: Chunming Zhou <[email protected]> Reviewed-by: Christian K?nig <[email protected]> | |||||
| 2015-08-17 | Revert "drm/amdgpu: return new seq_no for amd_sched_push_job" | Chunming Zhou | 1 | -1/+1 | |
| This reverts commit d1d33da8eb86b8ca41dd9ed95738030df5267b95. Reviewed-by: Christian K?nig <[email protected]> Conflicts: drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |||||
| 2015-08-17 | drm/amdgpu: stop leaking the ctx id into the scheduler v2 | Christian König | 1 | -6/+0 | |
| Id's are for the IOCTL ABI only. v2: remove tgid as well Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> | |||||
| 2015-08-17 | drm/amdgpu: add amd_sched_next_queued_seq function | Jammy Zhou | 1 | -0/+2 | |
| This function is used to get the next queued sequence number Signed-off-by: Jammy Zhou <[email protected]> Reviewed-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> | |||||
| 2015-08-17 | drm/amdgpu: make last_handled_seq atomic | Jammy Zhou | 1 | -1/+1 | |
| Signed-off-by: Jammy Zhou <[email protected]> Reviewed-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> | |||||
| 2015-08-17 | drm/amdgpu: add amd_sched_commit | Jammy Zhou | 1 | -0/+2 | |
| This function is to update last_emitted_v_seq and wake up the waiters. It should be called by driver in the run_job backend function Signed-off-by: Jammy Zhou <[email protected]> Reviewed-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> | |||||
| 2015-08-17 | drm/amdgpu: return new seq_no for amd_sched_push_job | Jammy Zhou | 1 | -1/+1 | |
| It is clean to update last_queued_v_seq in the scheduler module Signed-off-by: Jammy Zhou <[email protected]> Reviewed-by: Christian König <[email protected]> Reviewed-by: Alex Deucher <[email protected]> | |||||
| 2015-08-17 | drm/amdgpu: clean up amd sched wait_ts and wait_signal | Christian König | 1 | -5/+0 | |
| Remove code not used at the moment. Signed-off-by: Christian König <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> | |||||
| 2015-08-17 | drm/amdgpu: add amdgpu.sched_hw_submission option | Jammy Zhou | 1 | -3/+2 | |
| This option can be used to specify the max number of submissions in the active HW queue. The default value is 2 now. Signed-off-by: Jammy Zhou <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> | |||||
| 2015-08-17 | drm/amdgpu: add amdgpu.sched_jobs option | Jammy Zhou | 1 | -2/+2 | |
| This option can be used to specify the max job number in the job queue, and it is 16 by default. Signed-off-by: Jammy Zhou <[email protected]> Reviewed-by: Chunming Zhou <[email protected]> | |||||
| 2015-08-17 | drm/amd: add basic scheduling framework | Jammy Zhou | 1 | -0/+160 | |
| run queue: A set of entities scheduling commands for the same ring. It implements the scheduling policy that selects the next entity to emit commands from. entity: A scheduler entity is a wrapper around a job queue or a group of other entities. This can be used to build hierarchies of entities. For example all job queue entities belonging to the same process may be placed in a higher level entity and scheduled against other process entities. Entities take turns emitting jobs from their job queue to the corresponding hardware ring, in accordance with the scheduler policy. Signed-off-by: Shaoyun Liu <[email protected]> Signed-off-by: Chunming Zhou <[email protected]> Signed-off-by: Jammy Zhou <[email protected]> Acked-by: Christian K?nig <[email protected]> Reviewed-by: Jammy Zhou <[email protected]> | |||||