]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ipc/ipcdev.git/commitdiff
Change NameServer_get to ignore 'remote get' timeouts in BIOS
authorvwan@ti.com <vwan@ti.com>
Fri, 13 Dec 2013 01:56:21 +0000 (17:56 -0800)
committerChris Ring <cring@ti.com>
Fri, 13 Dec 2013 20:11:20 +0000 (12:11 -0800)
This patch allows NameServer requests to succeed even when some of the other
remote cores are not yet ready to handle NameServer requests.

packages/ti/ipc/namesrv/NameServerRemoteRpmsg.c
packages/ti/sdo/ipc/nsremote/NameServerRemoteNotify.c
packages/ti/sdo/utils/NameServer.c

index a005e51631e0dc85bf0f4c22e1ff9d1f4ec0b1bd..9ec68390b491912cd5d558e80974526a4677fe6d 100644 (file)
@@ -203,7 +203,7 @@ Int NameServerRemoteRpmsg_get(NameServerRemoteRpmsg_Object *obj,
     if (status == FALSE) {
         Log_print0(Diags_INFO, FXNN": Wait for NS reply timed out\n");
         /* return timeout failure */
-        return (NameServer_E_OSFAILURE);
+        return (NameServer_E_TIMEOUT);
     }
 
     /* get the message */
index 92e45621df3e833d0301c25399291cf6909b8923..409325061dd7a006a6c042976dd41b1c563b1788 100644 (file)
@@ -393,7 +393,7 @@ Int NameServerRemoteNotify_get(NameServerRemoteNotify_Object *obj,
     status = Semaphore_pend(semRemoteWait, NameServerRemoteNotify_timeout);
 
     if (status == FALSE) {
-        retval = NameServer_E_OSFAILURE;
+        retval = NameServer_E_TIMEOUT;
     }
     else {
         /* getting here means we got the notification back */
index f99fc3249999603503b355e74ac468436d677b6d..43e46b9dfc35a8d770e4ab8ce68938b444d67cc7 100644 (file)
@@ -370,7 +370,8 @@ Int NameServer_get(NameServer_Handle handle, String name, Ptr value,
                         /* continue only if not found */
                         if ((status >= 0) ||
                             ((status < 0) &&
-                            (status != NameServer_E_NOTFOUND))) {
+                            (status != NameServer_E_NOTFOUND) &&
+                            (status != NameServer_E_TIMEOUT))) {
                              break;
                         }
                     }
@@ -402,7 +403,8 @@ Int NameServer_get(NameServer_Handle handle, String name, Ptr value,
             /* continue only if not found */
             if ((status >= 0) ||
                 ((status < 0) &&
-                (status != NameServer_E_NOTFOUND))) {
+                (status != NameServer_E_NOTFOUND) &&
+                (status != NameServer_E_TIMEOUT))) {
                  break;
             }
             else {