Disable scratch Host allocation - via debug registration flags.

Change-Id: Ia6e5f86ec3979c4a49800f7af4509442a4e5be27
Signed-off-by: Yair Shachar <Yair.Shachar@amd.com>
Αυτή η υποβολή περιλαμβάνεται σε:
Yair Shachar authored and Gerrit Code Review committed 2016-02-10 07:52:32 -05:00
1 γονέας 7070f7ec5e
υποβολή a815a4337f
1 file changed
+4 -6
+4 -6
Προβολή Αρχείου
@@ -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);