diff options
author | Alex Waterman <alexw@nvidia.com> | 2015-05-20 15:23:01 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2015-06-06 10:25:07 -0400 |
commit | 34a3e35631b5d7111a35c8709fd6210c5f5c79e3 (patch) | |
tree | 4f12325a711e45b9f68cd0c953799574dc1fbcd9 /include/trace | |
parent | 140d213de6f76d19c3137ea6a97a88af7eaaf6ac (diff) |
gpu: nvgpu: Fix OOM case for buddy allocator
The allocator could attempt to use a buddy list for an order larger than
the max order when all the valid buddy lists were empty. This patch
ensures that when looking for a particular order buddy that the passed
order is valid.
Also handle the prints in the no-mem case a litle differently. Only print
and update alloc info when there was a successful allocation.
Lastly print hex numbers for the allocator stats printing function.
Change-Id: If289f3e8925e236e3b7d84206a75bd45a14082a1
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/745071
(cherry picked from commit f3548e67f435975238b55ac152871dcd60a1a907)
Reviewed-on: http://git-master/r/753280
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include/trace')
0 files changed, 0 insertions, 0 deletions