mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 11:04:51 +03:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user