Skip to content

Commit 0de451b

Browse files
authored
increase the size of uvm memory allocation
From `1<<16` to `1<<32`
1 parent 0306ebb commit 0de451b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel-open/nvidia-uvm/uvm_kvmalloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ static void *alloc_internal(size_t size, bool zero_memory)
257257
// Make sure that (sizeof(hdr) + size) is what it should be
258258
BUILD_BUG_ON(sizeof(uvm_vmalloc_hdr_t) != offsetof(uvm_vmalloc_hdr_t *, ptr));
259259

260-
assert(size <= (1 << 16));
260+
assert(size <= (1 << 32));
261261
if (size <= UVM_KMALLOC_THRESHOLD) {
262262
if (zero_memory)
263263
return kzalloc(size, NV_UVM_GFP_FLAGS);

0 commit comments

Comments
 (0)