The number of entries in the next level PDE data structure was one
half of what was needed since the bit shift was 1 bit too small.
Change-Id: Ifcedd1dfad9b2cf5c4537887d38ec750a54518c4
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/736899
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
int num_entries =
1 <<
(l->hi_bit[pgsz_idx]
- - l->lo_bit[pgsz_idx]);
+ - l->lo_bit[pgsz_idx] + 1);
pte->entries =
kzalloc(sizeof(struct gk20a_mm_entry) *
num_entries, GFP_KERNEL);