diff options
author | Alex Waterman <alexw@nvidia.com> | 2016-01-21 17:48:57 -0500 |
---|---|---|
committer | Alex Waterman <alexw@nvidia.com> | 2016-01-27 13:59:08 -0500 |
commit | 766506d6e0d406ac312b75f709abfdb9d8ae2b2a (patch) | |
tree | c4834c107ac5cbcd3d83986402bf5f18fd9bcb93 /drivers | |
parent | f7d219dd1c95ba9de2349b4de9f8cb510ec001cb (diff) |
gpu: nvgpu: Increase semaphore count
Increase the semaphore count per channel. Some channels
were running out of semaphores. The original limit was
255 (256 fits in 1 page, but the 0th semaphore is used
to return error codes from the allocator).
Easy fix was to simply increase the number of semaphores
each channel is allocated to 1024.
Bug 1604892
Change-Id: I163e24b8d42a3dc1bb9b418dadc0c8532aff9adb
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/935911
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c index bba18789..8ff53d17 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | |||
@@ -677,10 +677,9 @@ gk20a_channel_semaphore_create(struct channel_gk20a *c) | |||
677 | if (c->vm->as_share) | 677 | if (c->vm->as_share) |
678 | asid = c->vm->as_share->id; | 678 | asid = c->vm->as_share->id; |
679 | 679 | ||
680 | /* A pool of 256 semaphores fits into one 4k page. */ | ||
681 | sprintf(pool_name, "semaphore_pool-%d", c->hw_chid); | 680 | sprintf(pool_name, "semaphore_pool-%d", c->hw_chid); |
682 | sema->pool = gk20a_semaphore_pool_alloc(dev_from_gk20a(c->g), | 681 | sema->pool = gk20a_semaphore_pool_alloc(dev_from_gk20a(c->g), |
683 | pool_name, 256); | 682 | pool_name, 1024); |
684 | if (!sema->pool) | 683 | if (!sema->pool) |
685 | goto clean_up; | 684 | goto clean_up; |
686 | 685 | ||