From 82b3fad320812e14ce51190c3b27d3d1601bce0d Mon Sep 17 00:00:00 2001 From: Felix Kuehling Date: Fri, 8 Apr 2016 19:58:32 -0400 Subject: [PATCH] Fix 4GB and larger system memory allocations Intermediate size was stored in a 32-bit variable. This resulted in 4GB allocations to fail in KFD due to 0 size. Larger allocations would allocate the wrong amount of memory. Change-Id: If19dedf64952f1d2edd813793241e12c0362d220 --- src/fmm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fmm.c b/src/fmm.c index 5d739eaa5c..32972866ba 100644 --- a/src/fmm.c +++ b/src/fmm.c @@ -811,7 +811,7 @@ static void* fmm_allocate_host_gpu(uint64_t MemorySizeInBytes, manageble_aperture_t *aperture; uint64_t mmap_offset; uint32_t ioc_flags; - uint32_t size; + uint64_t size; int32_t i; uint32_t gpu_id;