Files
linux-nvgpu/drivers/gpu/nvgpu/gk20a
Alex Waterman 34a3e35631 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>
2015-06-06 07:25:07 -07:00
..
2015-03-18 12:10:40 -07:00
2015-06-06 07:24:52 -07:00
2015-06-06 07:24:40 -07:00
2015-03-18 12:12:01 -07:00
2015-06-06 07:24:40 -07:00
2015-03-18 12:08:53 -07:00
2015-04-04 19:01:35 -07:00
2015-03-18 12:08:53 -07:00
2015-05-05 13:59:01 -07:00
2015-04-04 18:57:49 -07:00
2015-03-18 12:10:40 -07:00
2015-03-18 12:12:25 -07:00