summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKrishna Reddy <vdumpa@nvidia.com>2016-11-22 16:14:34 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2016-12-05 16:49:17 -0500
commit89e707d2b4f492f01a566844d01b1da555709c24 (patch)
tree5ecb144ea7fad96c3307e1cbc20acad7d4d4fd6a /drivers
parent665b017c322da63cc66a66e62fb3a511a20bf8cb (diff)
gpu: nvgpu: fix hardcoded page size reference
Bug 1843356 Bug 1769772 Change-Id: I6c2a3a72f7082074bbf1165a74d5070195e1e653 Signed-off-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-on: http://git-master/r/1258352 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
index c59dc734..4c5deef5 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.c
@@ -3517,7 +3517,7 @@ int gk20a_get_sgtable_from_pages(struct device *d, struct sg_table **sgt,
3517 goto fail; 3517 goto fail;
3518 } 3518 }
3519 err = sg_alloc_table_from_pages(*sgt, pages, 3519 err = sg_alloc_table_from_pages(*sgt, pages,
3520 DIV_ROUND_UP(size, 4096), 0, size, GFP_KERNEL); 3520 DIV_ROUND_UP(size, PAGE_SIZE), 0, size, GFP_KERNEL);
3521 if (err) { 3521 if (err) {
3522 dev_err(d, "failed to allocate sg_table\n"); 3522 dev_err(d, "failed to allocate sg_table\n");
3523 goto fail; 3523 goto fail;