Make hsaKmtAllocMemory more compliant with the Thunk spec

Allocations from GPU nodes will return VRAM, not system memory.
Only non-paged allocation from GPU nodes is supported. System
memory can only be allocated from CPU nodes (usually node 0).

The HostAccess flag is no longer used to distinguish the memory
type. It only indicates, whether the memory is mapped for CPU
access.

Maintain compatibility with broken KfdTests by returning system
memory for paged-memory requested from GPU nodes.

Change-Id: I514defede735f55e6de436f41944125b6f2c4ccf
このコミットが含まれているのは:
Felix Kuehling
2016-02-06 18:47:40 -05:00
committed by Gerrit Code Review
コミット 887b32fe86
6個のファイルの変更68行の追加53行の削除
+1 -2
ファイルの表示
@@ -51,8 +51,7 @@ void fmm_destroy_process_apertures(void);
*/
void* fmm_allocate_scratch(uint32_t gpu_id, uint64_t MemorySizeInBytes);
void* fmm_allocate_device(uint32_t gpu_id, uint64_t MemorySizeInBytes);
void* fmm_allocate_host(uint32_t gpu_id, uint64_t MemorySizeInBytes,
HsaMemFlags flags, uint16_t dev_id);
void* fmm_allocate_host(uint64_t MemorySizeInBytes, HsaMemFlags flags);
void* fmm_open_graphic_handle(uint32_t gpu_id,
int32_t graphic_device_handle,
uint32_t graphic_handle,