libhsakmt: Print an error message when map_mmio failes

Without this change, the failure was hard to notice when it happened.

Change-Id: I99c3e8cea0d0cbd3bcfe79069410e6e870e225bf
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
This commit is contained in:
Yong Zhao
2019-10-02 18:30:20 -04:00
committato da Yong Zhao
parent 23541e0289
commit 16fa78b134
+3
Vedi File
@@ -2348,6 +2348,9 @@ HSAKMT_STATUS fmm_init_process_apertures(unsigned int NumNodes)
gpu_mem[gpu_mem_id].mmio_aperture.limit = (void *)
((char *)gpu_mem[gpu_mem_id].mmio_aperture.base +
PAGE_SIZE - 1);
else
pr_err("Failed to map remapped mmio page on gpu_mem %d\n",
gpu_mem_id);
}
free(process_apertures);