gpu: nvgpu: Fix pgsz_idx used in gk20a_vm_alloc_space()
authorAlex Waterman <alexw@nvidia.com>
Wed, 30 Nov 2016 22:12:25 +0000 (14:12 -0800)
committerWinnie Hsu <whsu@nvidia.com>
Fri, 16 Jun 2017 18:23:02 +0000 (11:23 -0700)
commitec9ac25833e9e5972b1dcbfc2f9140259dc71393
tree3729448f9fcb4a3431ed9deb4130a30bd78674c2
parentb4328544835de3fc8215f37668dc97fc21013136
gpu: nvgpu: Fix pgsz_idx used in gk20a_vm_alloc_space()

Use the correct page size index for pgsz_idx in gk20a_vm_alloc_space().
Previously the page size itself was used, not the page size index.

Bug 1837624

Change-Id: I652f5af5321c1c49dc8eb170d3f92f00c23d2b6f
Signed-off-by: Alex Waterman <alexw@nvidia.com>
(cherry picked from commit fd13e0e1c4e397335c24497a0f92c85934d6185f)
Reviewed-on: http://git-master/r/1503371
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
drivers/gpu/nvgpu/gk20a/mm_gk20a.c