This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Starterware/TCI6636K2K: syslib Unit Test (test_pktlib)

Part Number: TCI6636K2H

Tool/software: Starterware

Hi,

Now we are checking sylslib (v4.0.3)functionality on our board with syslib pktlib unit test.

Out environment are;

-. MCSDK 3.1.4.7 (SYSLIB MCSDK Patche was applied)

-. RT Linux.

-. SYSLIB 4.0.3

We had executed all procedures with the unit test guide document.

And we got all pass results except the last shutting down the system configuration.

The error log was "Error: QMSS exit failed -152"

Followings are the output when we executed "test_pktlib_k2k.out"

Do you know why those error comes? or have any checking point?

Pls let me know.

====

./test_pktlib_k2k.out

[Tue Aug 01 19:30:47.026 2017] Debug: Named resource instance [1] mapped to Database 0x23008 shared address 0xb6d86000 [Init 1]
[Tue Aug 01 19:30:47.044 2017] Debug: Name database created successfully [Handle 0x23008]
[Tue Aug 01 19:30:47.044 2017] Debug: HPLIB shared memory semaphore 0xb6f16000
[Tue Aug 01 19:30:47.044 2017] Debug: SYSRM initialized successfully [Handle 0x23060]
[Tue Aug 01 19:30:47.058 2017] Debug: Memory Region [ARM-DDR3-0] Physical 0x9f9ee300 Virtual 0xb6674300
[Tue Aug 01 19:30:47.058 2017] Debug: Inserting Memory Region (ARM-DDR3-0) @ Index 2 Number of Descriptors 4096
[Tue Aug 01 19:30:47.058 2017] Debug: Memory Region [ARM-DDR3-1] Physical 0x9fa6e300 Virtual 0xb66f4300
[Tue Aug 01 19:30:47.074 2017] Debug: Inserting Memory Region (ARM-DDR3-1) @ Index 3 Number of Descriptors 512
[Tue Aug 01 19:30:47.074 2017] ************************************************************************
[Tue Aug 01 19:30:47.090 2017] Debug: Executing the PKTLIB Unit Tests.
[Tue Aug 01 19:30:47.090 2017] ************************************************************************
[Tue Aug 01 19:30:47.090 2017] Debug: Heap 0x246b0 has been created successfully
[Tue Aug 01 19:30:47.107 2017] Debug: Find heap test passed
[Tue Aug 01 19:30:47.107 2017] ------------------------------------------------------
[Tue Aug 01 19:30:47.107 2017] Debug: Merge API Test
[Tue Aug 01 19:30:47.107 2017] Debug: Merge API Test API Passed
[Tue Aug 01 19:30:47.107 2017] ------------------------------------------------------
[Tue Aug 01 19:30:47.122 2017] Debug: Cloning Test starting with 3 packet in a chain
[Tue Aug 01 19:30:47.122 2017] Debug: Testing cloning from the original.
[Tue Aug 01 19:30:47.122 2017] Debug: Testing cloning from the clone.
[Tue Aug 01 19:30:47.122 2017] Debug: Cleaning clones memory leak test
[Tue Aug 01 19:30:47.138 2017] Debug: Merge an original packet after a cloned Packet (with CPDMA simulation).
[Tue Aug 01 19:30:47.138 2017] Debug: Merge an original packet after a cloned Packet (with software free)
[Tue Aug 01 19:30:47.138 2017] Debug: Merge a cloned packet after a cloned packet (with CPDMA simulation)
[Tue Aug 01 19:30:47.154 2017] Debug: Merge a cloned packet after a cloned packet (with software free)
[Tue Aug 01 19:30:47.154 2017] Debug: Merge a cloned packet after an original packet (with CPDMA simulation)
[Tue Aug 01 19:30:47.171 2017] Debug: Merge a cloned packet after an original packet (with software free)
[Tue Aug 01 19:30:47.171 2017] Debug: Merge an original packet after an original packet (with CPDMA simulation)
[Tue Aug 01 19:30:47.186 2017] Debug: Merge an original packet after an original packet (with software free)
[Tue Aug 01 19:30:47.186 2017] Debug: All cloning tests passed.
[Tue Aug 01 19:30:47.186 2017] ------------------------------------------------------
[Tue Aug 01 19:30:47.203 2017] Debug: Split Test starting with 5 packets in a chain
[Tue Aug 01 19:30:47.203 2017] Debug: Testing split in the middle of the first packet
[Tue Aug 01 19:30:47.203 2017] Debug: Testing split in the middle of the 3 packet
[Tue Aug 01 19:30:47.203 2017] Debug: Testing split at the end of the 3 packet
[Tue Aug 01 19:30:47.219 2017] Debug: Testing 10 1 byte splits in the packet.
[Tue Aug 01 19:30:47.219 2017] Debug: Split API test was successful.
[Tue Aug 01 19:30:47.219 2017] ------------------------------------------------------
[Tue Aug 01 19:30:47.219 2017] Debug: Split Test starting with 5 packets in a chain
[Tue Aug 01 19:30:47.235 2017] Debug: Testing split in the middle of the first packet
[Tue Aug 01 19:30:47.235 2017] Debug: Testing split in the middle of the 4 packet
[Tue Aug 01 19:30:47.235 2017] Debug: Testing split at the end of the 2 packet
[Tue Aug 01 19:30:47.251 2017] ------------------------------------------------------
[Tue Aug 01 19:30:47.251 2017] Debug: Split Test starting with 5 packets in a chain
[Tue Aug 01 19:30:47.251 2017] Debug: Testing 10 1 byte splits in the packet.
[Tue Aug 01 19:30:47.251 2017] Debug: Split2 API test was successful.
[Tue Aug 01 19:30:47.269 2017] ------------------------------------------------------
[Tue Aug 01 19:30:47.269 2017] Debug: Testing Multiple Heaps
[Tue Aug 01 19:30:47.269 2017] Debug: Multiple heap test was successful.
[Tue Aug 01 19:30:47.269 2017] ------------------------------------------------------
[Tue Aug 01 19:30:47.285 2017] Debug: Testing Packet Library Free use cases
[Tue Aug 01 19:30:47.285 2017] Debug: Use Case1 -> Sending Packet to IP
[Tue Aug 01 19:30:47.285 2017] Debug: Use Case2 -> Cloning and Sending Orignal Packet to IP (With Garbage Collection)
[Tue Aug 01 19:30:47.301 2017] Debug: Use Case3 -> Cloning and Sending Cloned Packet to IP(With Garbage Collection)
[Tue Aug 01 19:30:47.301 2017] Debug: Use Case4 -> Double cloned IP send.
[Tue Aug 01 19:30:47.301 2017] ------------------------------------------------------
[Tue Aug 01 19:30:47.318 2017] Debug: Testing Super Heap
[Tue Aug 01 19:30:47.318 2017] Debug: 'My Test Heap' has a MAX data buffer size of 512 bytes
[Tue Aug 01 19:30:47.318 2017] Debug: 'MyHeap1' has a MAX data buffer size of 128 bytes
[Tue Aug 01 19:30:47.318 2017] Debug: 'MyHeap2' has a MAX data buffer size of 256 bytes
[Tue Aug 01 19:30:47.334 2017] Debug: Super Heap has been created with handle 0x0x249c8
[Tue Aug 01 19:30:47.334 2017] Debug: Use Case 1 --> Different Packet Size allocation check
[Tue Aug 01 19:30:47.334 2017] Debug: Testing Packet Size allocations from 1 to 128 bytes
[Tue Aug 01 19:30:47.351 2017] Debug: Testing Packet Size allocations from 129 to 256 bytes
[Tue Aug 01 19:30:47.351 2017] Debug: Testing Packet Size allocations from 257 to 512 bytes
[Tue Aug 01 19:30:47.351 2017] Debug: Super Heap Packet size allocation (1 to 512) bytes checks passed
[Tue Aug 01 19:30:47.363 2017] Debug: Use Case 2 --> Super Heap bufferless packet allocation passed
[Tue Aug 01 19:30:47.363 2017] Debug: Use Case 3 --> Super Heap bufferless packet allocation (Member->Member) passed
[Tue Aug 01 19:30:47.378 2017] ------------------------------------------------------
[Tue Aug 01 19:30:47.378 2017] Debug: Testing Packet Library Copy Meta Data
[Tue Aug 01 19:30:47.378 2017] Debug: PKTLIB unit tests passed
[Tue Aug 01 19:30:47.378 2017] Debug: PKTLIB Instance has been deleted
[Tue Aug 01 19:30:47.395 2017] Debug: Database deletion successful
[Tue Aug 01 19:30:47.395 2017] Debug: Shutting down memory region 2
[Tue Aug 01 19:30:47.395 2017] Error: HPLIB free is not supported currently.
[Tue Aug 01 19:30:47.395 2017] Debug: Shutting down memory region 3
[Tue Aug 01 19:30:47.411 2017] Error: HPLIB free is not supported currently.
[Tue Aug 01 19:30:47.411 2017] Error: QMSS exit failed -152
[Tue Aug 01 19:30:47.411 2017] Error: Shutting down the system configuration failed

Thanks,

  • I had tested the additional test, msgcom unit test.
    But the results are the same.
    All internal test was passed, but It was failed on the last step with "Error: CPPI exit failed -140"

    Pls check the following the msgcom unit test log.
    ============
    ./test_msgcom_k2k.out
    Debug: Named resource instance [1] mapped to Database 0x27008 shared address 0xb6e4b000 [Init 1]
    Debug: Name database created successfully [Handle 0x27008]
    Debug: HPLIB shared memory semaphore 0xb6fdb000
    Debug: SYSRM initialized successfully [Handle 0x27060]
    Debug: Accumulator Channel [hi_accumulator_channel_arm] 26 Core 8 Queue 2:8922 EventId:255 PDSPID:2
    Debug: Accumulator Channel [hi_accumulator_channel_arm] 27 Core 8 Queue 2:8923 EventId:256 PDSPID:2
    Debug: Accumulator Channel [hi_accumulator_channel_arm] 28 Core 8 Queue 2:8924 EventId:257 PDSPID:2
    Debug: Accumulator Channel [hi_accumulator_channel_arm] 29 Core 8 Queue 2:8925 EventId:258 PDSPID:2
    Debug: Allocated CPINTC Id -1 Direct Interrupt Queue 660 System Interrupt 42
    Debug: Memory Region [ARM-DDR3-0] Physical 0x9f9ee300 Virtual 0xb6739300
    Debug: Inserting Memory Region (ARM-DDR3-0) @ Index 2 Number of Descriptors 4096
    Debug: Memory Region [ARM-DDR3-1] Physical 0x9fa6e300 Virtual 0xb67b9300
    Debug: Inserting Memory Region (ARM-DDR3-1) @ Index 3 Number of Descriptors 512
    Debug: Heap My Test Heap has been created successfully
    Debug: UINTC module has been opened successfully.
    ************************************************************************
    Debug: Executing the MSGCOM Unit Tests.
    ************************************************************************
    Debug: Reader Test Starting.
    Debug: Writer Test Starting.
    Debug: MSGCOM Queue-DMA allocated [CPPI Block 0, Flow Id: 0 Channel Id: 0]
    Debug: Basic Queue DMA Writer Non-Blocking Test Passed
    Debug: Free Data Packet:64 Zero Buffer Packets:64 Garbage Packets:0
    Debug: Basic Queue DMA Reader Non-Blocking Test Passed
    Debug: Cache coherent memory allocated 0xb67d1300, Physical memory 0x9fa86300
    Debug: Enabling GIC interrupt 258 for channel 'Accumulated-QDMA-Block'
    Debug: MSGCOM Queue-DMA allocated [CPPI Block 1, Flow Id: 1 Channel Id: 1]
    Debug: Accumulated Queue DMA Writer Blocking Test Passed
    Debug: Disabling GIC interrupt 258 for channel 'Accumulated-QDMA-Block'
    Error: Cache coherent memory free is NOT supported
    Debug: Accumulated Queue DMA Reader Blocking Test Passed
    Debug: Cache coherent memory allocated 0xb67d1400, Physical memory 0x9fa86400
    Debug: Enabling GIC interrupt 258 for channel 'Accumulated-QDMA-NonBlock'
    Debug: MSGCOM Queue-DMA allocated [CPPI Block 0, Flow Id: 0 Channel Id: 0]
    Debug: Accumulated Queue DMA Writer Non Blocking Test Passed
    Debug: Disabling GIC interrupt 258 for channel 'Accumulated-QDMA-NonBlock'
    Error: Cache coherent memory free is NOT supported
    Debug: Accumulated Queue DMA Reader Blocking Test Passed
    Debug: Enabling GIC interrupt 42 for channel 'Impl-QDMA-Block'
    Debug: MSGCOM Queue-DMA allocated [CPPI Block 1, Flow Id: 1 Channel Id: 1]
    Debug: Implicit Notify Queue DMA Writer Blocking Test Passed
    Debug: Disabling GIC interrupt 42 for channel 'Impl-QDMA-Block'
    Debug: Free Data Packet:64 Zero Buffer Packets:64 Garbage Packets:0
    Debug: Implicit Notify Queue DMA Reader Blocking Test Passed
    Debug: Enabling GIC interrupt 42 for channel 'Impl-QDMA-NonBlock'
    Debug: MSGCOM Queue-DMA allocated [CPPI Block 0, Flow Id: 0 Channel Id: 0]
    Debug: Implicit Notify Queue DMA Writer Non-Blocking Test Passed
    Debug: Disabling GIC interrupt 42 for channel 'Impl-QDMA-NonBlock'
    Debug: Free Data Packet:64 Zero Buffer Packets:64 Garbage Packets:0
    Debug: Implicit Notify Queue DMA Reader Non-Blocking Test Passed
    Debug: Basic Queue Writer Non-Blocking Test Passed
    Debug: Free Data Packet:64 Zero Buffer Packets:64 Garbage Packets:0
    Debug: Basic Queue Reader Non-Blocking Test Passed
    Debug: Enabling GIC interrupt 42 for channel 'Implicit-Queue-Blocking'
    Debug: Implicit Queue Writer Blocking Test Passed
    Debug: Disabling GIC interrupt 42 for channel 'Implicit-Queue-Blocking'
    Debug: Free Data Packet:64 Zero Buffer Packets:64 Garbage Packets:0
    Debug: Implicit Notify Queue Reader Blocking Test Passed
    Debug: Enabling GIC interrupt 42 for channel 'Implicit-Queue-NonBlocking'
    Debug: Implicit Queue Writer Non-Blocking Test Passed
    Debug: Disabling GIC interrupt 42 for channel 'Implicit-Queue-NonBlocking'
    Debug: Free Data Packet:64 Zero Buffer Packets:64 Garbage Packets:0
    Debug: Implicit Notify Queue Reader Non-Blocking Test Passed
    Debug: Cache coherent memory allocated 0xb67d1500, Physical memory 0x9fa86500
    Debug: Enabling GIC interrupt 255 for channel 'Accumulated-Queue-Blocking'
    Debug: Accumulated Queue Writer Blocking Test Passed
    Debug: Disabling GIC interrupt 255 for channel 'Accumulated-Queue-Blocking'
    Error: Cache coherent memory free is NOT supported
    Debug: Free Data Packet:64 Zero Buffer Packets:64 Garbage Packets:0
    Debug: Accumulated Queue Reader Blocking Test Passed
    Debug: Cache coherent memory allocated 0xb67d1600, Physical memory 0x9fa86600
    Debug: Enabling GIC interrupt 255 for channel 'Accumulated-Queue-NonBlocking'
    Debug: Accumulated Queue Writer Non-Blocking Test Passed
    *******************************************************************
    Debug: MSGCOM Writer Unit Test all passed
    *******************************************************************
    Debug: Disabling GIC interrupt 255 for channel 'Accumulated-Queue-NonBlocking'
    Error: Cache coherent memory free is NOT supported
    Debug: Free Data Packet:64 Zero Buffer Packets:64 Garbage Packets:0
    Debug: Accumulated Queue Reader Non-Blocking Test Passed
    *******************************************************************
    Debug: MSGCOM Reader Unit Test all passed
    *******************************************************************
    Debug: Shutting down the UINTC module successful
    Debug: Database deleted successfully
    Debug: Shutting down memory region 2
    Debug: Shutting down memory region 3
    Debug: Releasing accumulated channel 58
    Debug: Releasing accumulated channel 59
    Debug: Releasing accumulated channel 60
    Debug: Releasing accumulated channel 61
    Debug: Releasing queue pend 660
    Error: CPPI exit failed -140
    Error: Shutting down the system configuration failed

    Thanks.

  • Hi,

    The factory team have been notified. Feedback will be posted here.

    Best Regards,
    Yordan
  • Yordan,

    Thanks for your notification.
    I will wait your feedback.

    We need your suguesstion on this ticket.

    Shinha.
  • Dera Yordan,

    Do you have any inform when your factory team will feedback?
    If had, pls let me know.

    Thanks,
    Shinha.
  • Hi,

    I've sent a reminder.

    Best Regards,
    Yordan
  • If you look look at the driver's header files, you will see a base value for errors and a value for each failure type. For QMSS, these are found in qmss_qm.h:

    #define QMSS_LLD_EBASE (-128)

    #define QMSS_EXIT_QUEUES_OPEN QMSS_LLD_EBASE-24

    So an error of -152 is this error code. In this case it means that the code is trying to shutdown without "closing" all the queues that have been opened. In this case, it doesn't single an issue with the hardware; it's purely a driver housekeeping issue.

    I don't know if you are running an unaltered test or if you've modified it. In most cases, the examples do not bother with shutting down.
  • Yordan,

    Thanks for your reply.

    Actually we did not changed SYSLIB unit test code.
    You mean that It can be occurred on SYSLIB unit test code, example?

    Thanks.
  • If the test runs successfully up to that point, I would not worry about it. I will file an internal ticket for this, but at this point in the code's life cycle, I don't believe it is being updated.
  • Thanks for your update.