diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2018-02-01 10:10:55 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-03-08 07:27:10 -0500 |
commit | 4320877eb49ef16a5620536427f77de44bee12b7 (patch) | |
tree | bef4e7b948ea132fe3cd695217b9e7693f04275c /drivers/gpu/nvgpu/common/bus.c | |
parent | b94770dc4d2d96b80b14b9942595d3e7fc2bbf6c (diff) |
gpu: nvgpu: handle semaphore wraparound
Compare gpu semaphores in the kernel in the same way as the hardware
does: released if value is over threshold, but at most half of u32's
range. This makes it possible to skip zeroing the sema values when semas
are allocated, so that they'd be just monotonically increasing numbers
like syncpoints are.
Jira NVGPU-514
Change-Id: I3bae352fbacfe9690666765b9ecdeae6f0813ea1
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1652086
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/bus.c')
0 files changed, 0 insertions, 0 deletions