Revert "Workaround: make mmap memory resident for gfx902"
This reverts commit 716755b1de.
Change-Id: I9f4f0b6b426aeae4cb652b33cf0d4c0f57270ca5
Signed-off-by: Yong Zhao <yong.zhao@amd.com>
Этот коммит содержится в:
@@ -933,8 +933,6 @@ void *fmm_allocate_scratch(uint32_t gpu_id, uint64_t MemorySizeInBytes)
|
||||
munmap(aligned_end,
|
||||
VOID_PTRS_SUB(padded_end, aligned_end));
|
||||
mem = aligned_start;
|
||||
|
||||
memset(mem, 0, aligned_size);
|
||||
}
|
||||
|
||||
/* Remember scratch backing aperture for later */
|
||||
@@ -1133,8 +1131,6 @@ static void *fmm_allocate_host_cpu(uint64_t MemorySizeInBytes,
|
||||
if (mem == MAP_FAILED)
|
||||
return NULL;
|
||||
|
||||
memset(mem, 0, MemorySizeInBytes);
|
||||
|
||||
pthread_mutex_lock(&cpuvm_aperture.fmm_mutex);
|
||||
vm_obj = aperture_allocate_object(&cpuvm_aperture, mem, 0,
|
||||
MemorySizeInBytes, flags.Value);
|
||||
|
||||
@@ -323,9 +323,6 @@ static void *allocate_exec_aligned_memory_cpu(uint32_t size)
|
||||
|
||||
if (ptr == MAP_FAILED)
|
||||
return NULL;
|
||||
|
||||
memset(ptr, 0, size);
|
||||
|
||||
return ptr;
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user