Differentiate gfx700 and improve the logic by introducing is_gfx700()

Because gfx700 has local memory but other APUs don't, we should reflect
that in the code. Meanwhile, fix a bug that on gfx902 svm aperture is not
added when calling hsaKmtGetNodeMemoryProperties().

Change-Id: Id840f2db0b14fda9ee713b219a9474c15f8a9771
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Este commit está contenido en:
Yong Zhao
2018-08-07 16:03:24 -04:00
cometido por Yong Zhao
padre 8fbf4a26ec
commit 110e754f64
Se han modificado 3 ficheros con 11 adiciones y 7 borrados
+1 -1
Ver fichero
@@ -49,7 +49,7 @@ HSAKMT_STATUS HSAKMTAPI hsaKmtSetMemoryPolicy(HSAuint32 Node,
pr_debug("[%s] node %d; default %d; alternate %d\n",
__func__, Node, DefaultPolicy, AlternatePolicy);
if (is_dgpu)
if (!is_kaveri(Node))
/* This is a legacy API useful on Kaveri only. On dGPU
* the alternate aperture is setup and used
* automatically for coherent allocations. Don't let