diff options
author | Aparna Das <aparnad@nvidia.com> | 2018-07-25 20:43:32 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-08-09 21:45:42 -0400 |
commit | 9c13b30a465ed94f1e3547dc439462c3ea496eb8 (patch) | |
tree | bcb6b30d3bbee222b1824c4b91bf233391e908fe /userspace/src/exec.c | |
parent | 0a0ad7e67560cfc18874795532ee1eba3b865e59 (diff) |
gpu: nvgpu: make cbc alloc os specific
CBC base needs to be aligned to 64KB. On Linux this is
achieved making compbit backing size multiple of 64KB.
However QNX nvmap alloc function does not allocate
memory aligned to requested size and needs to overallocate
to satisfy alignment requirement. Make cbc alloc function OS
specific to be able to modify QNX code.
Also align cbc base address to 64KB before writing to CBC BASE
register.
Bug 200426427
Change-Id: Ic867501403f2e2a4ba41ad5a8ed6f9c5c8ffa3f4
Signed-off-by: Aparna Das <aparnad@nvidia.com>
(cherry picked from commit 3f1e1133a46ebfc9763c649d7b839d069cae5a36)
Reviewed-on: https://git-master.nvidia.com/r/1786046
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'userspace/src/exec.c')
0 files changed, 0 insertions, 0 deletions