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
Tá an tiomantas seo le fáil i:
Felix Kuehling údaraithe agus Gerrit Code Review tiomanta 2016-04-11 11:17:06 -04:00
1 tuismitheoir 31861c838e
tiomantas 82b3fad320
1 comhad athraithe
+1 -1
+1 -1
Féach ar an gComhad
@@ -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;