]> git.baikalelectronics.ru Git - kernel.git/commit
drm/scheduler: implement a function to modify sched list
authorNirmoy Das <nirmoy.das@amd.com>
Thu, 27 Feb 2020 14:34:15 +0000 (15:34 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Mar 2020 17:51:35 +0000 (13:51 -0400)
commitb37aced31eb08757875306137a0ac00004f2f783
treefe0d59b0b3e724b0192ce394397f9be8e7a6145e
parent33abcb1f5a1719b1c18867e5bf24fb70efe98804
drm/scheduler: implement a function to modify sched list

Implement drm_sched_entity_modify_sched() which modifies existing
sched_list with a different one. This is going to be helpful when
userspace changes priority of a ctx/entity then the driver can switch
to the corresponding HW scheduler list for that priority.

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/scheduler/sched_entity.c
include/drm/gpu_scheduler.h