diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2016-09-05 07:58:23 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2016-09-14 17:13:40 -0400 |
commit | 6029684eb0e9d2def2b0c12cbfba90c24b99369f (patch) | |
tree | fe459edc189353d6c44cbc99ae14ec447cbfc401 /drivers/gpu/nvgpu/vgpu/fifo_vgpu.c | |
parent | 93d31990197897471e291d83361d9d57769cd6f2 (diff) |
gpu: nvgpu: fix chunk size mismatch in page allocator
When allocating discontiguous memory composed of several chunks,
update also the number of pages used by the current chunk, if a large
chunk was not available and a retry is performed with a smaller one.
Failing to do this would result in too few chunks reserved for a large
enough allocation in certain conditions.
Bug 1805067
Change-Id: I9d14864724d228b42c47eb4669fbe0f789334397
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1214914
(cherry picked from commit 9bece931b13e4dad808622462d4d98d421cfb383)
Reviewed-on: http://git-master/r/1220546
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu/fifo_vgpu.c')
0 files changed, 0 insertions, 0 deletions