aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
diff options
context:
space:
mode:
authorJammy Zhou <Jammy.Zhou@amd.com>2015-07-30 16:36:58 +0800
committerAlex Deucher <alexander.deucher@amd.com>2015-08-17 16:50:41 -0400
commit1333f723fb6f1356a54135586f1ede44dcaa9652 (patch)
treea91edb7bb65004749a8cf8390dd7ef665e034f1f /drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
parentdrm/amdgpu: silent the message for GPU scheduler creation (diff)
downloadlinux-1333f723fb6f1356a54135586f1ede44dcaa9652.tar.gz
linux-1333f723fb6f1356a54135586f1ede44dcaa9652.zip
drm/amdgpu: add amdgpu.sched_jobs option
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 <Jammy.Zhou@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/scheduler/gpu_scheduler.h')
-rw-r--r--drivers/gpu/drm/amd/scheduler/gpu_scheduler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
index a6226e1e924a..52577a88b054 100644
--- a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
+++ b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h
@@ -27,7 +27,6 @@
#include <linux/kfifo.h>
#define AMD_MAX_ACTIVE_HW_SUBMISSION 2
-#define AMD_MAX_JOB_ENTRY_PER_CONTEXT 16
#define AMD_KERNEL_CONTEXT_ID 0
#define AMD_KERNEL_PROCESS_ID 0
@@ -155,6 +154,7 @@ int amd_context_entity_init(struct amd_gpu_scheduler *sched,
struct amd_context_entity *entity,
struct amd_sched_entity *parent,
struct amd_run_queue *rq,
- uint32_t context_id);
+ uint32_t context_id,
+ uint32_t jobs);
#endif