summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/nvgpu/common/mm/vm.c2
1 files changed, 1 insertions, 1 deletions
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,
437 * distinguish channel address spaces from other address spaces is by 437 * distinguish channel address spaces from other address spaces is by
438 * size - if the address space is 4GB or less, it's not a channel. 438 * size - if the address space is 4GB or less, it's not a channel.
439 */ 439 */
440 if (vm->va_limit > SZ_4G) { 440 if (vm->va_limit > 4ULL * SZ_1G) {
441 err = nvgpu_init_sema_pool(vm); 441 err = nvgpu_init_sema_pool(vm);
442 if (err) 442 if (err)
443 goto clean_up_allocators; 443 goto clean_up_allocators;