libhsakmt: Remove HsaMemFlag reserved bit init
HsaMemFlag new flags added and the number of the reserved bits is reduced, and generate value overflow compilanation error. The reserved bits is not used, remove the init. Change-Id: I603596977dfd558ce31ead03711d7c5ce5ee5b71 Signed-off-by: Philip Yang <Philip.Yang@amd.com>
This commit is contained in:
1 parent
a180fea5ad
commit
e2d742ac6f
1 file changed
-2
@@ -1643,7 +1643,6 @@ void *fmm_allocate_doorbell(uint32_t gpu_id, uint64_t MemorySizeInBytes,
|
||||
mflags.Value = 0;
|
||||
mflags.ui32.NonPaged = 1;
|
||||
mflags.ui32.HostAccess = 1;
|
||||
mflags.ui32.Reserved = 0x3e1;
|
||||
|
||||
pthread_mutex_lock(&aperture->fmm_mutex);
|
||||
vm_obj->mflags = mflags;
|
||||
@@ -2371,7 +2370,6 @@ static void *map_mmio(uint32_t node_id, uint32_t gpu_id, int mmap_fd)
|
||||
mflags.Value = 0;
|
||||
mflags.ui32.NonPaged = 1;
|
||||
mflags.ui32.HostAccess = 1;
|
||||
mflags.ui32.Reserved = 0;
|
||||
pthread_mutex_lock(&aperture->fmm_mutex);
|
||||
vm_obj->mflags = mflags;
|
||||
vm_obj->node_id = node_id;
|
||||
|
||||
Reference in new issue
Block a user