diff options
author | 2019-12-16 14:43:34 +0100 | |
---|---|---|
committer | 2019-12-18 16:09:12 -0500 | |
commit | f880799d7fcf0a63ca2295d950cd12f5520251d9 (patch) | |
tree | 0d31e56e716a1abc547a839e20c85014499d3aca /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h | |
parent | drm/amdgpu: replace vm_pte's run-queue list with drm gpu scheds list (diff) | |
download | linux-f880799d7fcf0a63ca2295d950cd12f5520251d9.tar.gz linux-f880799d7fcf0a63ca2295d950cd12f5520251d9.tar.bz2 linux-f880799d7fcf0a63ca2295d950cd12f5520251d9.zip |
amd/amdgpu: add sched array to IPs with multiple run-queues
This sched array can be passed on to entity creation routine
instead of manually creating such sched array on every context creation.
v2: squash in missing break fix
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h index da808633732b..4ad90a44dc3c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h @@ -87,4 +87,7 @@ void amdgpu_ctx_mgr_entity_fini(struct amdgpu_ctx_mgr *mgr); long amdgpu_ctx_mgr_entity_flush(struct amdgpu_ctx_mgr *mgr, long timeout); void amdgpu_ctx_mgr_fini(struct amdgpu_ctx_mgr *mgr); +void amdgpu_ctx_init_sched(struct amdgpu_device *adev); + + #endif |