summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/therm
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-08-15 14:16:07 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-08-16 14:04:20 -0400
commit61ef5a58744d22e65d3ad7c3a04a2521d0ccb6af (patch)
tree5b8836864d06495101e15d381f8fdcb8f19f6a6a /drivers/gpu/nvgpu/therm
parentff38ab4dcd87088dc60c870aaf910fcdc4af5918 (diff)
gpu: nvgpu: Deterministic submit fix
Fix some simple pointer arithmetic errors in the deterministic submit path. The lockless allocator was doing a subtraction to determine the correct offset of the element to free. However, this subtraction was using the base address and a numeric offset - not a pointer offset. Thus the difference computed was in bytes not in elements of the block size. The fix is simple: just divide by the block size. Also this modifies the debugging statement a bit so that a bit more information is printed at more useful times. Lastly, a pointer to numeric cast was fixed in the fence code. Change-Id: I514724205f1b73805b21e979481a13ac689f3482 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1538905 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Aingara Paramakuru <aparamakuru@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: Konsta Holtta <kholtta@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/therm')
0 files changed, 0 insertions, 0 deletions