Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-10460

Using RPMessage_recvNb() causes Mutex Overflow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • PDK
    • PDK-10304
    • Hide
      PROCESSOR_SDK_07.01.00
      PROCESSOR_SDK_07.03.00
      Show
      PROCESSOR_SDK_07.01.00 PROCESSOR_SDK_07.03.00
    • PROCESSOR_SDK_08.00.00
    • j721e-evm

      In '/ti/drv/ipc/src/ipc_osal.c', Ipc_osalMutexCreate(void) is creating mutex with Semaphore and it has a comment saying it uses BINARY mode.

      However, the semaphore params used for creation takes the default value, which is COUNTING mode.

       When the "RPMessage_recvNb()" is used, the Mutex count would overflow because this API doesn’t lock Mutex and "RPMessage_enqueMsg()" would unlock Mutex every time.

      Eventually, the semaphore count would overflow.

       

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: