UDMA: HC/UHC channel allocation fails due to RM config mismatch with CSL defines

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: High
    • SITSW-8208
    • 10.01.00
    • 11.02.00
    • Hide
      am62xx-sk
      am62xx-sk-lp
      am62x-sip-sk
      am62a-sk
      am62p-sk
      am62d-evm
      am62l-evm
      am275x-evm
      Show
      am62xx-sk am62xx-sk-lp am62x-sip-sk am62a-sk am62p-sk am62d-evm am62l-evm am275x-evm

      Problem:
      While executing UDMA test cases for Block Copy / RX / TX High Capacity (HC) and Ultra High Capacity (UHC) channels,
      the tests fail at Udma_chOpen() with UDMA_EALLOC because the resource manager (RM) does not expose HC channels.

      Root Cause:

      • CSL defines (cslr_dmss_defines.h) indicate hardware supports HC channels 
          (e.g. AM62Ax shows 6 RX HC channels).
      • But board RM configuration (udma_rmcfg.c) marks HC resources as INVALID.
      • During Udma_rmInitPrms_init(), rmInitPrms-> numRxHcCh  is set to 0.
      • Hence Udma_rmAllocRxHcCh always return UDMA_DMA_CH_INVALID.
      • Udma_chOpen() calls these allocation functions again internally and fails, even if manual allocation was attempted.

      Impact:

      • HC/UHC test cases cannot run on AM62Ax/AM62Dx/AM62x devices despite CSL showing support.
      • No functional coverage can be achieved for HC/UHC resource allocation in udma_rm.c on these devices.

      Files for reference:

      • drivers/udma/v0/udma_rm.c (Udma_rmAllocRxHcCh, etc.)
      • drivers/udma/v0/udma_ch.c (Udma_chOpen/Udma_chAllocResource)
      • board RM config: udma_rmcfg.c (gUdmaRmDefBoardCfg_Bcdma, gUdmaRmDefBoardCfg_Udma)
      • CSL: cslr_dmss_defines.h

      TC : https://jira.itg.ti.com/browse/SITSW-8289

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

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-6188 - UDMA: HC/UHC channel allocation fai...
                SYNCHRONIZED
                • Last Sync Date: