drm/amd: add basic scheduling framework
authorJammy Zhou <Jammy.Zhou@amd.com>
Fri, 22 May 2015 10:55:07 +0000 (18:55 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Aug 2015 20:50:30 +0000 (16:50 -0400)
commita72ce6f84109c1dec1ab236d65979d3250668af3
treea43a70811446edf57012f953dfb508c7de394321
parent2da78e21d153d333778d6566f159be06548418f9
drm/amd: add basic scheduling framework

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 <Shaoyun.Liu@amd.com>
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Acked-by: Christian K?nig <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c [new file with mode: 0644]
drivers/gpu/drm/amd/scheduler/gpu_scheduler.h [new file with mode: 0644]