From 766506d6e0d406ac312b75f709abfdb9d8ae2b2a Mon Sep 17 00:00:00 2001 From: Alex Waterman Date: Thu, 21 Jan 2016 14:48:57 -0800 Subject: 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 Reviewed-on: http://git-master/r/935911 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Terje Bergstrom GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c') 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) if (c->vm->as_share) asid = c->vm->as_share->id; - /* A pool of 256 semaphores fits into one 4k page. */ sprintf(pool_name, "semaphore_pool-%d", c->hw_chid); sema->pool = gk20a_semaphore_pool_alloc(dev_from_gk20a(c->g), - pool_name, 256); + pool_name, 1024); if (!sema->pool) goto clean_up; -- cgit v1.2.2