diff options
author | Aingara Paramakuru <aparamakuru@nvidia.com> | 2014-12-11 03:10:15 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 18:06:06 -0400 |
commit | 58233492fca7de69121722b6b2e89d500fcb6761 (patch) | |
tree | 2763b2f05fcfe441efbe55a77b012930d7fefe87 /drivers/gpu/nvgpu/vgpu | |
parent | 57eeccb4a5f1e7ee5be2b1dc2376de2103ef9a04 (diff) |
gpu: nvgpu: vgpu: fix comptag alloc failure
setup_buffer_kind_and_compression() expects vm->big_page_size
to be set, which was not done for the vgpu case.
Bug 200064162
Change-Id: I15af3600fda0161aad2185ec7a12b560044cc171
Signed-off-by: Aingara Paramakuru <aparamakuru@nvidia.com>
Reviewed-on: http://git-master/r/662721
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/mm_vgpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c index 20f2b5ee..2dd8cb68 100644 --- a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c | |||
@@ -268,6 +268,7 @@ static int vgpu_vm_alloc_share(struct gk20a_as_share *as_share, | |||
268 | vm->gmmu_page_sizes[i] = gmmu_page_sizes[i]; | 268 | vm->gmmu_page_sizes[i] = gmmu_page_sizes[i]; |
269 | 269 | ||
270 | vm->big_pages = true; | 270 | vm->big_pages = true; |
271 | vm->big_page_size = big_page_size; | ||
271 | 272 | ||
272 | vm->va_start = big_page_size << 10; /* create a one pde hole */ | 273 | vm->va_start = big_page_size << 10; /* create a one pde hole */ |
273 | vm->va_limit = mm->channel.size; /* note this means channel.size is | 274 | vm->va_limit = mm->channel.size; /* note this means channel.size is |