aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
diff options
context:
space:
mode:
authorJammy Zhou <[email protected]>2015-07-30 08:44:05 +0000
committerAlex Deucher <[email protected]>2015-08-17 20:50:42 +0000
commit4afcb30383bef8bf972c6aae47995ef314e5f8a1 (patch)
treee903b75b92873341efa915b59af3c011d2040b72 /drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
parentdrm/amdgpu: add amdgpu.sched_jobs option (diff)
downloadkernel-4afcb30383bef8bf972c6aae47995ef314e5f8a1.tar.gz
kernel-4afcb30383bef8bf972c6aae47995ef314e5f8a1.zip
drm/amdgpu: add amdgpu.sched_hw_submission option
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]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
index b0e15b574606..67d9277d6168 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
@@ -926,7 +926,8 @@ void amdgpu_fence_driver_init_ring(struct amdgpu_ring *ring)
if (amdgpu_enable_scheduler) {
ring->scheduler = amd_sched_create((void *)ring->adev,
&amdgpu_sched_ops,
- ring->idx, 5, 0);
+ ring->idx, 5, 0,
+ amdgpu_sched_hw_submission);
if (!ring->scheduler)
DRM_ERROR("Failed to create scheduler on ring %d.\n",
ring->idx);