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>


[ROCm/ROCR-Runtime commit: 16fa78b134]
Este commit está contenido en:
Yong Zhao
2019-10-02 18:30:20 -04:00
cometido por Yong Zhao
padre 211742a1f7
commit 3872b5ce32
+3
Ver fichero
@@ -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);