Disable scratch Host allocation - via debug registration flags.

Change-Id: Ia6e5f86ec3979c4a49800f7af4509442a4e5be27
Signed-off-by: Yair Shachar <Yair.Shachar@amd.com>
Este commit está contenido en:
Yair Shachar
2016-02-07 17:56:40 +02:00
cometido por Gerrit Code Review
padre 7070f7ec5e
commit a815a4337f
+4 -6
Ver fichero
@@ -73,10 +73,9 @@ hsaKmtDbgRegister(
args.gpu_id = gpu_id;
long err = kmtIoctl(kfd_fd, AMDKFD_IOC_DBG_REGISTER, &args);
if (err == 0) {
is_device_debugged[NodeId] = true;
if (err == 0)
result = HSAKMT_STATUS_SUCCESS;
} else
else
result = HSAKMT_STATUS_ERROR;
return (result);
@@ -105,10 +104,9 @@ hsaKmtDbgUnregister(
memset(&args, 0, sizeof(args));
args.gpu_id = gpu_id;
long err = kmtIoctl(kfd_fd, AMDKFD_IOC_DBG_UNREGISTER, &args);
if (err == 0) {
is_device_debugged[NodeId] = false;
if (err == 0)
result = HSAKMT_STATUS_SUCCESS;
} else
else
result = HSAKMT_STATUS_ERROR;
return (result);