From 7f0aa103eaba5f1ad9c928066c8abe69ef734626 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 29 Nov 2017 15:20:36 -0800 Subject: gpu: nvgpu: Use only standard size defines SZ_4G is not defined in mainline Linux. Use SZ_1G*4 instead. Change-Id: I6d226d49da59e4e7b47ccef364b03b82c5758f57 Signed-off-by: Terje Bergstrom Reviewed-on: https://git-master.nvidia.com/r/1612648 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Alex Waterman GVS: Gerrit_Virtual_Submit Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/mm/vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/common/mm/vm.c b/drivers/gpu/nvgpu/common/mm/vm.c index bb6faafa..ee9d2e0b 100644 --- a/drivers/gpu/nvgpu/common/mm/vm.c +++ b/drivers/gpu/nvgpu/common/mm/vm.c @@ -437,7 +437,7 @@ static int __nvgpu_vm_init(struct mm_gk20a *mm, * distinguish channel address spaces from other address spaces is by * size - if the address space is 4GB or less, it's not a channel. */ - if (vm->va_limit > SZ_4G) { + if (vm->va_limit > 4ULL * SZ_1G) { err = nvgpu_init_sema_pool(vm); if (err) goto clean_up_allocators; -- cgit v1.2.2