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.

AM6548: How to perform 4G ddr mem test

Part Number: AM6548

Dear TI,

Currently we are facing a problem of doing 4G DDR mem test on our customisation board, we are using the mem_test.c from PDK as the base to do the mem test under R5, however, there is only 2G address space for DDR under R5F, so it's not possible for us to perform the 4G DDR test under R5...

We noticed the DDR size for EVM is 4G, so we are wondering how TI performed the 4G DDR test on EVM board?

From the public document we can only find the mem test log in [1] which only test 2G space.

From the PDK code, we noticed the mem test should be buildable for A53 as well, however, we didn't find any document of how to perform mem test on A53 core... Also in the code [2] the DDR space is staring from 0x9_0000_0000, don't know why, since the TRM says DDR is starting from 0x8_0000_0000 (or 0x8_8000_0000), so we are wondering is this code actually workable on A53?

[1]. https://software-dl.ti.com/processor-sdk-rtos/esd/AM65X/08_02_00_05/exports/docs/pdk_am65xx_08_02_00_21/docs/userguide/am65xx/board/board_diag_execution.html#id112

[2] https://git.ti.com/cgit/processor-sdk/pdk/tree/packages/ti/board/diag/mem/src/mem_test.c?h=REL.PSDK.SITARA.08.06.00.05

BRs/Baocheng Su

  • Hi,

    for a thorough and all-encompassing mem test you should use a Linux memtester-based solution. This can be created in a small footprint and easy-to-use way, see https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1267722/am625-enable-memory-test-on-u-boot/4800216#4800216

    Regards, Andreas

  • But according to the manpage of memtester, even under ramdisk mode, it's not possible to test all the high 2G memory, and it's also hard to find a large continuous physical memory space to test, especially considering the kernel memory management, (physical mem layout, virtual memory, cache, etc.)

    I am just wondering how this memtester tool is used for the EVM board? Is there any shell command reference or example test log? What is the total memory space could be tested on the EVM with the memtester tool?

  • But according to the manpage of memtester, even under ramdisk mode, it's not possible to test all the high 2G memory, and it's also hard to find a large continuous physical memory space to test, especially considering the kernel memory management, (physical mem layout, virtual memory, cache, etc.)

    IIRC you can test the entire memory area in Linux (except the pieces that are actually used/reserved by the Kernel). Let me try this and report back here.

    Regards, Andreas

  • . Let me try this and report back here.

    I ran into issues today with my HW setup here that I'm still debugging; hopefully I will be able to run a quick test in another day or so to prove how it works. Will report back.

    Regards, Andreas

  • I was running memtester today on an AM62A board that has more than 2GB of DDR (4GB, to be exact) and was able to use it without issues as follows:

    root@am62axx-evm:/opt/edgeai-gst-apps# free -h
                   total        used        free      shared  buff/cache   available
    Mem:           3.2Gi       111Mi       3.1Gi       8.0Mi        34Mi       3.0Gi
    Swap:             0B          0B          0B
    root@am62axx-evm:/opt/edgeai-gst-apps# memtester 3100M
    memtester version 4.5.1 (64-bit)
    Copyright (C) 2001-2020 Charles Cazabon.
    Licensed under the GNU General Public License version 2 (only).
    
    pagesize is 4096
    pagesizemask is 0xfffffffffffff000
    want 3100MB (3250585600 bytes)
    got  3100MB (3250585600 bytes), trying mlock ...locked.
    Loop 1:
      Stuck Address       : ok
      Random Value        : ok
      Compare XOR         : ok
      Compare SUB         : ok
      Compare MUL         : ok
      Compare DIV         : ok
      Compare OR          : ok
      Compare AND         : ok
      Sequential Increment: ok
      Solid Bits          : ok
      Block Sequential    : ok
      Checkerboard        : ok
      Bit Spread          : ok
      Bit Flip            : ok
      Walking Ones        : ok
      Walking Zeroes      : ok

    While the AM62A is not the same as the AM65 you are using I'd expect it to work just the same way on your device, and that you should be able to use 'memtester' to validate your DDR setup.

    Regards, Andreas