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.

TDA4VM: WDG cannot be restarted

Part Number: TDA4VM
Other Parts Discussed in Thread: PCM3168A

HI.

   SDK: ti-processor-sdk-linux-j7-evm-07_03_00_05

  log:

I"ot@j7-evm:/opt/ltp# ./runltp -P j721e-idk-gw -f ddt/wdt_test -s "WDT_M_FUNC_WRI
INFO: creating /opt/ltp/results directory
INFO: Filtering testscenarios based on j721e-idk-gw capabilities
awk: cmd. line:1: warning: regexp escape sequence `\&' is not a known regexp operator
Checking for required user/group ids

'nobody' user id and group found.
'bin' user id and group found.
'daemon' user id and group found.
Users group found.
Sys group found.
Required users/groups exist.
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.

/etc/os-release
ID=arago
NAME="Arago"
VERSION="2020.09"
VERSION_ID=2020.09
PRETTY_NAME="Arago 2020.09"

uname:
Linux j7-evm 5.4.106-gc709150c2281-dirty #16 SMP PREEMPT Mon Sep 27 18:37:25 CST 2021 aarch64 aarch64 aarch64 GNU/Linux

/proc/cmdline
console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),128k(ospi.env),128k(ospi.env.backup),1m(ospi.sysfw),57216k@8m(ospi.rootfs),128k(ospi.phypattern);47034000.hyperbus:512k(hbmc.tiboot3),2m(hbmc.tispl),4m(hbmc.u-boot),256k(hbmc.env),1m(hbmc.sysfw),-@8m(hbmc.rootfs) root=PARTUUID=cd57c178-02 rw rootfstype=ext4 rootwait

Gnu C                  gcc (GCC) 9.2.1 20191025
Clang                 
Gnu make               4.3
util-linux             2.35.1
mount                  linux 2.35.1 (libmount 2.35.1: btrfs, namespaces, assert, debug)
modutils               26
e2fsprogs              1.45.4
Linux C Library        > libc.2.30
Dynamic linker (ldd)   2.30
Linux C++ Library      6..
Procps                 3.3.16
iproute2               iproute2-ss200127
iputils                'V'
ethtool                5.4
Kbd                    2.2.0
Sh-utils               8.31
Modules Loaded         xhci_plat_hcd xhci_hcd usbcore rpmsg_char ti_am335x_adc kfifo_buf pru_rproc irq_pruss_intc icss_iep cdns3 roles udc_core usb_common crct10dif_ce snd_soc_j721e_evm ti_j721e_cpsw_virt_mac ti_k3_r5_remoteproc ti_am335x_tscadc pruss ntb_hw_epf ntb pci_endpoint_test sa2ul ti_k3_dsp_remoteproc sha512_generic authenc cdns_dphy virtio_rpmsg_bus cdns3_ti snd_soc_pcm3168a_i2c snd_soc_pcm3168a oak_pci rti_wdt sch_fq_codel rpmsg_kdrv_switch ipv6

free reports:
              total        used        free      shared  buff/cache   available
Mem:        1537088      200768      990336       34432      345984     1066304
Swap:             0           0           0

cpuinfo:
Architecture:                    aarch64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
CPU(s):                          2
On-line CPU(s) list:             0,1
Thread(s) per core:              1
Core(s) per socket:              2
Socket(s):                       1
Vendor ID:                       ARM
Model:                           0
Model name:                      Cortex-A72
Stepping:                        r1p0
BogoMIPS:                        400.00
L1d cache:                       64 KiB
L1i cache:                       96 KiB
L2 cache:                        1 MiB
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:  [   90.213006] LTP: starting WDT_M_FUNC_WRITE (source 'common.sh'; do_cmd install_modules.sh 'wdt' ; DEV_NODE=`get_devnode.sh "wdt"` || die "error getting devnode for wdt"; do_cmd wdt_tests -device $DEV_NODE -ioctl -write)
            Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Spec store bypass: Vulnerable
Vulnerability Spectre v1:        Mitigation; __user pointer sanitization
Vulnerability Spectre v2:        Not affected
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Not affected
Flags:                           fp asimd evtstrm aes pmull sha1 sha2 crc32 cpui
                                 d

AppArmor disabled

SELinux mode: unknown
no big block device was specified on commandline.
Tests which require a big block device are disabled.
You can specify it with option -z
COMMAND:    /opt/ltp/bin/ltp-pan   -e -S   -a 1051     -n 1051 -p -f /tmp/ltp-fMVd26mpLM/alltests -l /tmp/tmp.ldIEEbaepc  -C /opt/ltp/output/LTP_RUN_ON-tmp.ldIEEbaepc.failed -T /opt/ltp/output/LTP_RUN_ON-tmp.ldIEEbaepc.tconf
INFO: Restricted to WDT_M_FUNC_WRI
LOG File: /tmp/tmp.ldIEEbaepc
FAILED COMMAND File: /opt/ltp/output/LTP_RUN_ON-tmp.ldIEEbaepc.failed
TCONF COMMAND File: /opt/ltp/output/LTP_RUN_ON-tmp.ldIEEbaepc.tconf
Running tests.......
<<<test_start>>>
tag=WDT_M_FUNC_WRITE stime=1629467161
cmdline="source 'common.sh'; do_cmd install_modules.sh 'wdt' ; DEV_NODE=`get_devnode.sh "wdt"` || die "error getting devnode for wdt"; do_cmd wdt_tests -device $DEV_NODE -ioctl -write"
contacts=""
analysis=exit
<<<test_output>>>
|TRACE LOG|Inside do_cmd:CMD=install_modules.sh wdt|
|TRACE LOG|Inside do_cmd:CMD=wdt_tests -device /dev/watchdog -ioctl -write|


|TEST START|wdt_tests|
|TRACE LOG|******** WDT Testcase  parameters  ******** |
|TRACE LOG|Device         : /dev/watchdog|
|TRACE LOG|Loop Count     : 1|
|TRACE LOG|I/O Operation  : Write|
|TRACE LOG|Operation      : Ioctl|
|TRACE LOG|Ioctl Name     : WDIOC_KEEPALIVE|
|TRACE LOG|Ioctl Arg      : 0 |
|TRACE LOG| ************* End of Test params ************* |
|TRACE LOG|Keeping WDT alive, sleep counter -0(sec)|
|TEST RESULT|PASS|wdt_tests|
|TEST END|wdt_tests|
|TRACE LOG|EVM will be rebooted after 60 seconds|
|TRACE LOG|59 seconds remaining before reboot|
|TRACE LOG|58 seconds remaining before reboot|
|TRACE LOG|57 seconds remaining before reboot|
|TRACE LOG|56 seconds remaining before reboot|
|TRACE LOG|55 seconds remaining before reboot|
|TRACE LOG|54 seconds remaining before reboot|
|TRACE LOG|53 seconds remaining before reboot|
|TRACE LOG|52 seconds remaining before reboot|
|TRACE LOG|51 seconds remaining before reboot|
|TRACE LOG|50 seconds remaining before reboot|
|TRACE LOG|49 seconds remaining before reboot|
|TRACE LOG|48 seconds remaining before reboot|
|TRACE LOG|47 seconds remaining before reboot|
|TRACE LOG|46 seconds remaining before reboot|
|TRACE LOG|45 seconds remaining before reboot|
|TRACE LOG|44 seconds remaining before reboot|
|TRACE LOG|43 seconds remaining before reboot|
|TRACE LOG|42 seconds remaining before reboot|
|TRACE LOG|41 seconds remaining before reboot|
|TRACE LOG|40 seconds remaining before reboot|
|TRACE LOG|39 seconds remaining before reboot|
|TRACE LOG|38 seconds remaining before reboot|
|TRACE LOG|37 seconds remaining before reboot|
|TRACE LOG|36 seconds remaining before reboot|
|TRACE LOG|35 seconds remaining before reboot|
|TRACE LOG|34 seconds remaining before reboot|
|TRACE LOG|33 seconds remaining before reboot|
|TRACE LOG|32 seconds remaining before reboot|
|TRACE LOG|31 seconds remaining before reboot|
|TRACE LOG|30 seconds remaining before reboot|
|TRACE LOG|29 seconds remaining before reboot|
|TRACE LOG|28 seconds remaining before reboot|
|TRACE LOG|27 seconds remaining before reboot|
|TRACE LOG|26 seconds remaining before reboot|
|TRACE LOG|25 seconds remaining before reboot|
[  129.166032] Initializing XFRM netlink socket
|TRACE LOG|24 seconds remaining before reboot|
|TRACE LOG|23 seconds remaining before reboot|
|TRACE LOG|22 seconds remaining before reboot|
|TRACE LOG|21 seconds remaining before reboot|
[  132.792012] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[  132.806006] Bridge firewalling registered
|TRACE LOG|20 seconds remaining before reboot|
|TRACE LOG|19 seconds remaining before reboot|
|TRACE LOG|18 seconds remaining before reboot|
|TRACE LOG|17 seconds remaining before reboot|
|TRACE LOG|16 seconds remaining before reboot|
|TRACE LOG|15 seconds remaining before reboot|
|TRACE LOG|14 seconds remaining before reboot|
|TRACE LOG|13 seconds remaining before reboot|
|TRACE LOG|12 seconds remaining before reboot|
|TRACE LOG|11 seconds remaining before reboot|
|TRACE LOG|10 seconds remaining before reboot|
|TRACE LOG|9 seconds remaining before reboot|
|TRACE LOG|8 seconds remaining before reboot|
|TRACE LOG|7 seconds remaining before reboot|
|TRACE LOG|6 seconds remaining before reboot|
|TRACE LOG|5 seconds remaining before reboot|
|TRACE LOG|4 seconds remaining before reboot|
|TRACE LOG|3 seconds remaining before reboot|
|TRACE LOG|2 seconds remaining before reboot|
|TRACE LOG|1 seconds remaining before reboot|
|TRACE LOG|0 seconds remaining before reboot|
|TRACE LOG|-1 seconds remaining before reboot|
|TRACE LOG|-2 seconds remaining before reboot|
|TRACE LOG|-3 seconds remaining before reboot|
|TRACE LOG|-4 seconds remaining before reboot|
|TRACE LOG|-5 seconds remaining before reboot|
|TRACE LOG|-6 seconds remaining before reboot|
|TRACE LOG|-7 seconds remaining before reboot|
|TRACE LOG|-8 seconds remaining before reboot|
|TRACE LOG|-9 seconds remaining before reboot|
|TRACE LOG|-10 seconds remaining before reboot|
|TRACE LOG|-11 seconds remaining before reboot|
|TRACE LOG|-12 seconds remaining before reboot|
|TRACE LOG|-13 seconds remaining before reboot|
|TRACE LOG|-14 seconds remaining before reboot|

  • Hi,

    I am on 8.0 SDK & I am pretty sure 7.3 also will be triggering WDG reset correctly.

    Here is the log:

    root@j7-evm:~#  ./runltp -P j721e-idk-gw -f ddt/wdt_test -s "WDT_M_FUNC_WRI[   25.714692] process 'docker/tmp/qemu-check395679279/check' started with executable stack
    "
    -sh: ./runltp: No such file or directory
    root@j7-evm:~# cd /opt/ltp/
    root@j7-evm:/opt/ltp#  ./runltp -P j721e-idk-gw -f ddt/wdt_test -s "WDT_M_FUNC_WRI"
    INFO: creating /opt/ltp/output directory
    INFO: creating /opt/ltp/results directory
    INFO: Filtering testscenarios based on j721e-idk-gw capabilities
    awk: cmd. line:1: warning: regexp escape sequence `\&' is not a known regexp operator
    Checking for required user/group ids
    
    'nobody' user id and group found.
    'bin' user id and group found.
    'daemon' user id and group found.
    Users group found.
    Sys group found.
    Required users/groups exist.
    If some fields are empty or look unusual you may have an old version.
    Compare to the current minimal requirements in Documentation/Changes.
    
    /etc/os-release
    ID=arago
    NAME="Arago"
    VERSION="2020.09"
    VERSION_ID=2020.09
    PRETTY_NAME="Arago 2020.09"
    
    uname:
    Linux j7-evm 5.10.41-g4c2eade9f7 #2 SMP PREEMPT Tue Sep 14 17:39:19 IST 2021 aarch64 aarch64 aarch64 GNU/Linux
    
    /proc/cmdline
    console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),256k(ospi.env),1m(ospi.sysfw),256k(ospi.env.backup),57344k@8m(ospi.rootfs),256k(ospi.phypattern);47034000.hyperbus:512k(hbmc.tiboot3),2m(hbmc.tispl),4m(hbmc.u-boot),256k(hbmc.env),1m(hbmc.sysfw),-@8m(hbmc.rootfs) root=PARTUUID=38b855c4-02 rw rootfstype=ext4 rootwait
    
    Gnu C                  gcc (GCC) 9.2.1 20191025
    Clang
    Gnu make               4.3
    util-linux             2.35.1
    mount                  linux 2.35.1 (libmount 2.35.1: btrfs, namespaces, assert, debug)
    modutils               26
    e2fsprogs              1.45.4
    Linux C Library        > libc.2.30
    Dynamic linker (ldd)   2.30
    Linux C++ Library      6..
    Procps                 3.3.16
    Net-tools              1.60
    iproute2               iproute2-5.10.0
    iputils                'V'
    ethtool                5.10
    Kbd                    2.2.0
    Sh-utils               8.31
    Modules Loaded         xt_conntrack xt_MASQUERADE xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ip_tables x_tables bridge stp llc overlay xfrm_user xfrm_algo md5 ecb aes_neon_bs aes_neon_blk des_generic libdes cbc xhci_plat_hcd xhci_hcd rpmsg_char irq_pruss_intc ti_am335x_adc kfifo_buf pru_rproc icss_iep omap_rng cdns3 udc_core roles rng_core usbcore usb_common crct10dif_ce snd_soc_j721e_evm ti_j721e_cpsw_virt_mac phy_can_transceiver ti_k3_r5_remoteproc m[   38.248344] LTP: starting WDT_M_FUNC_WRITE (source 'common.sh'; do_cmd install_modules.sh 'wdt' ; DEV_NODE=`get_devnode.sh "wdt"` || die "error getting devnode for wdt"; do_cmd wdt_tests -device $DEV_NODE -ioctl -write)
    _can_platform m_can can_dev ti_am335x_tscadc pruss sa2ul sha512_generic authenc ti_k3_dsp_remoteproc virtio_rpmsg_bus snd_soc_pcm3168a_i2c snd_soc_pcm3168a ina2xx bluetooth ecdh_generic ecc rfkill vxd_dec videobuf2_dma_sg v4l2_mem2mem videobuf2_dma_contig videobuf2_memops videobuf2_v4l2 videobuf2_common cdns_dphy pci_endpoint_test pvrsrvkm cdns3_ti rti_wdt sch_fq_codel rpmsg_kdrv_switch cryptodev ipv6
    
    free reports:
                  total        used        free      shared  buff/cache   available
    Mem:        2321152      278208     1628096       36992      414848     1670848
    Swap:             0           0           0
    
    cpuinfo:
    Architecture:                    aarch64
    CPU op-mode(s):                  32-bit, 64-bit
    Byte Order:                      Little Endian
    CPU(s):                          2
    On-line CPU(s) list:             0,1
    Thread(s) per core:              1
    Core(s) per socket:              2
    Socket(s):                       1
    Vendor ID:                       ARM
    Model:                           0
    Model name:                      Cortex-A72
    Stepping:                        r1p0
    BogoMIPS:                        400.00
    L1d cache:                       64 KiB
    L1i cache:                       96 KiB
    L2 cache:                        1 MiB
    Vulnerability Itlb multihit:     Not affected
    Vulnerability L1tf:              Not affected
    Vulnerability Mds:               Not affected
    Vulnerability Meltdown:          Not affected
    Vulnerability Spec store bypass: Not affected
    Vulnerability Spectre v1:        Mitigation; __user pointer sanitization
    Vulnerability Spectre v2:        Not affected
    Vulnerability Srbds:             Not affected
    Vulnerability Tsx async abort:   Not affected
    Flags:                           fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid
    
    AppArmor disabled
    
    SELinux mode: unknown
    no big block device was specified on commandline.
    Tests which require a big block device are disabled.
    You can specify it with option -z
    COMMAND:    /opt/ltp/bin/ltp-pan   -e -S   -a 1434     -n 1434 -p -f /tmp/ltp-GrgNJYt3D5/alltests -l /tmp/tmp.8bgtyzyDcW  -C /opt/ltp/output/LTP_RUN_ON-tmp.8bgtyzyDcW.failed -T /opt/ltp/output/LTP_RUN_ON-tmp.8bgtyzyDcW.tconf
    INFO: Restricted to WDT_M_FUNC_WRI
    LOG File: /tmp/tmp.8bgtyzyDcW
    FAILED COMMAND File: /opt/ltp/output/LTP_RUN_ON-tmp.8bgtyzyDcW.failed
    TCONF COMMAND File: /opt/ltp/output/LTP_RUN_ON-tmp.8bgtyzyDcW.tconf
    Running tests.......
    <<<test_start>>>
    tag=WDT_M_FUNC_WRITE stime=1633943718
    cmdline="source 'common.sh'; do_cmd install_modules.sh 'wdt' ; DEV_NODE=`get_devnode.sh "wdt"` || die "error getting devnode for wdt"; do_cmd wdt_tests -device $DEV_NODE -ioctl -write"
    contacts=""
    analysis=exit
    <<<test_output>>>
    |TRACE LOG|Inside do_cmd:CMD=install_modules.sh wdt|
    |TRACE LOG|Inside do_cmd:CMD=wdt_tests -device /dev/watchdog -ioctl -write|
    
    
    |TEST START|wdt_tests|
    |TRACE LOG|******** WDT Testcase  parameters  ******** |
    |TRACE LOG|Device         : /dev/watchdog|
    |TRACE LOG|Loop Count     : 1|
    |TRACE LOG|I/O Operation  : Write|
    |TRACE LOG|Operation      : Ioctl|
    |TRACE LOG|Ioctl Name     : WDIOC_KEEPALIVE|
    |TRACE LOG|Ioctl Arg      : 0 |
    |TRACE LOG| ************* End of Test params ************* |
    |TRACE LOG|Keeping WDT alive, sleep counter -0(sec)|
    |TEST RESULT|PASS|wdt_tests|
    |TEST END|wdt_tests|
    |TRACE LOG|EVM will be rebooted after 60 seconds|
    |TRACE LOG|59 seconds remaining before reboot|
    |TRACE LOG|58 seconds remaining before reboot|
    |TRACE LOG|57 seconds remaining before reboot|
    |TRACE LOG|56 seconds remaining before reboot|
    |TRACE LOG|55 seconds remaining before reboot|
    |TRACE LOG|54 seconds remaining before reboot|
    |TRACE LOG|53 seconds remaining before reboot|
    |TRACE LOG|52 seconds remaining before reboot|
    |TRACE LOG|51 seconds remaining before reboot|
    |TRACE LOG|50 seconds remaining before reboot|
    |TRACE LOG|49 seconds remaining before reboot|
    |TRACE LOG|48 seconds remaining before reboot|
    |TRACE LOG|47 seconds remaining before reboot|
    |TRACE LOG|46 seconds remaining before reboot|
    |TRACE LOG|45 seconds remaining before reboot|
    |TRACE LOG|44 seconds remaining before reboot|
    |TRACE LOG|43 seconds remaining before reboot|
    |TRACE LOG|42 seconds remaining before reboot|
    |TRACE LOG|41 seconds remaining before reboot|
    |TRACE LOG|40 seconds remaining before reboot|
    |TRACE LOG|39 seconds remaining before reboot|
    |TRACE LOG|38 seconds remaining before reboot|
    |TRACE LOG|37 seconds remaining before reboot|
    |TRACE LOG|36 seconds remaining before reboot|
    |TRACE LOG|35 seconds remaining before reboot|
    |TRACE LOG|34 seconds remaining before reboot|
    |TRACE LOG|33 seconds remaining before reboot|
    
    U-Boot SPL 2021.01-00002-gf2b2a890f8-dirty (Sep 23 2021 - 23:14:35 +0530)
    Model: Texas Instruments K3 J721E SoC
    Board: J721EX-PM2-SOM rev E6
    SYSFW ABI: 3.1 (firmware rev 0x0015 '21.5.0--v2021.05 (Terrific Llam')
    Trying to boot from MMC2
    Starting ATF on ARM64 core...
    
    NOTICE:  BL31: v2.5(release):08.00.00.004-dirty
    NOTICE:  BL31: Built : 22:30:09, Aug  4 2021
    
    U-Boot SPL 2021.01-00002-gf2b2a890f8-dirty (Sep 23 2021 - 23:14:30 +0530)
    Model: Texas Instruments K3 J721E SoC
    Board: J721EX-PM2-SOM rev E6
    SYSFW ABI: 3.1 (firmware rev 0x0015 '21.5.0--v2021.05 (Terrific Llam')
    Detected: J7X-BASE-CPB rev E2
    Detected: J7X-INFOTAN-EXP rev E3
    Detected: J7X-VSC8514-ETH rev E2
    Trying to boot from MMC2
    
    
    U-Boot 2021.01-00002-gf2b2a890f8-dirty (Sep 23 2021 - 23:14:30 +0530)
    
    SoC:   J721E SR1.0
    Model: Texas Instruments K3 J721E SoC
    Board: J721EX-PM2-SOM rev E6
    DRAM:  4 GiB
    Flash: 0 Bytes
    MMC:   sdhci@4f80000: 0, sdhci@4fb0000: 1
    Loading Environment from MMC... OK
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Detected: J7X-BASE-CPB rev E2
    Detected: J7X-INFOTAN-EXP rev E3
    Detected: J7X-VSC8514-ETH rev E2
    Net:   am65_cpsw_nuss_slave ethernet@46000000: K3 CPSW: nuss_ver: 0x6BA00101 cpsw_ver: 0x6BA80100 ale_ver: 0x00293904 Ports:1 mdio_freq:1000000
    eth0: ethernet@46000000
    Hit any key to stop autoboot:  0

    Please make sure your SoM DIP switch settings:

    SW2: 01
    SW3: 10

    Before you run your test case.

    If no other questions please click on verify answer.

    Best Regards,
    Keerthy

  • HI  Keerthy

    I can reboot with Ti EVM board.  SOC_SAFETY_ERRORN pin  can change from high to low .

    But I use Customer boards. I use oscilloscope to measure tda4 (U4) SOC_SAFETY_ERRORN pin did not change from high to low.

    Thank you

  • In customer design, how is SAFETY_ERRN pin connected?

  • SOC_SAFETY_ERRORN  connect to  pmic  gpio3, pmic is PTPS65941212RWERQ1.

    or

    In addition, the PMIC gpio3 is disconnected and does not change from high to low

  • PMIC  part number PTPS65941212RWERQ1 is used in PDN-0B.  GPIO3 for PMIC-A is programmed as output for MCU3V3EN.  I believe PDN-0C uses GPIO3 as SAFETY_ERRn, but that has different PMIC part number (PTPS65941213RWERQ1).  

    Is that this issue - both PMIC  and TDA4VM are driving output as outputs?

  • HI Robert

      SAFETY_  Errn disconnects from PMIC, SOC safety_ Errn as output still cannot have high and low changes. 

  • Ok - if SAFETY_ERRn pin isolated from PMIC, not much else to check-out on hardware.  Looping in software help to investigate device configuration.

  • Hello,

    Can you share the output of the below commands on your custom board:

    cd /opt/ltp/
    ./runltp -P j721e-idk-gw -f ddt/wdt_test -s "WDT_M_FUNC_WRI"

    I hope your custom board dtb has the watchdog nodes as well.

    Best Regards,
    Keerthy

  • Hi. Keerthy

        log:

        

    [12-12-28.807]
    [12-12-28.983]root@j7-evm:~# 
    [12-12-29.127]root@j7-evm:~# 
    [12-12-29.289]root@j7-evm:~# 
    [12-12-30.919]root@j7-evm:~# cd /opt/ltp/
    [12-12-33.510]I"ot@j7-evm:/opt/ltp# ./runltp -P j721e-idk-gw -f ddt/wdt_test -s "WDT_M_FUNC_WRI
    [12-12-33.600]INFO: creating /opt/ltp/results directory
    [12-12-33.601]INFO: Filtering testscenarios based on j721e-idk-gw capabilities
    [12-12-34.111]awk: cmd. line:1: warning: regexp escape sequence `\&' is not a known regexp operator
    [12-12-34.127]Checking for required user/group ids
    [12-12-34.127]
    [12-12-34.253]'nobody' user id and group found.
    [12-12-34.253]'bin' user id and group found.
    [12-12-34.253]'daemon' user id and group found.
    [12-12-34.253]Users group found.
    [12-12-34.253]Sys group found.
    [12-12-34.253]Required users/groups exist.
    [12-12-34.253]If some fields are empty or look unusual you may have an old version.
    [12-12-34.253]Compare to the current minimal requirements in Documentation/Changes.
    [12-12-34.253]
    [12-12-34.254]/etc/os-release
    [12-12-34.254]ID=arago
    [12-12-34.254]NAME="Arago"
    [12-12-34.254]VERSION="2020.09"
    [12-12-34.254]VERSION_ID=2020.09
    [12-12-34.254]PRETTY_NAME="Arago 2020.09"
    [12-12-34.254]
    [12-12-34.254]uname:
    [12-12-34.254]Linux j7-evm 5.4.106-ge435b477dc49-dirty #18 SMP PREEMPT Sat Oct 16 21:34:38 CST 2021 aarch64 aarch64 aarch64 GNU/Linux
    [12-12-34.254]
    [12-12-34.254]/proc/cmdline
    [12-12-34.255]console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),128k(ospi.env),128k(ospi.env.backup),1m(ospi.sysfw),57216k@8m(ospi.rootfs),128k(ospi.phypattern);47034000.hyperbus:512k(hbmc.tiboot3),2m(hbmc.tispl),4m(hbmc.u-boot),256k(hbmc.env),1m(hbmc.sysfw),-@8m(hbmc.rootfs) root=PARTUUID=61937028-02 rw rootfstype=ext4 rootwait
    [12-12-34.255]
    [12-12-34.255]Gnu C                  gcc (GCC) 9.2.1 20191025
    [12-12-34.255]Clang                 
    [12-12-34.255]Gnu make               4.3
    [12-12-34.256]util-linux             2.35.1
    [12-12-34.257]mount                  linux 2.35.1 (libmount 2.35.1: btrfs, namespaces, assert, debug)
    [12-12-34.257]modutils               26
    [12-12-34.257]e2fsprogs              1.45.4
    [12-12-34.285]Linux C Library        > libc.2.30
    [12-12-34.285]Dynamic linker (ldd)   2.30
    [12-12-34.285]Linux C++ Library      6..
    [12-12-34.285]Procps                 3.3.16
    [12-12-34.620]iproute2               iproute2-ss200127
    [12-12-34.621]iputils                'V'
    [12-12-34.621]ethtool                5.4
    [12-12-34.621]Kbd                    2.2.0
    [12-12-34.621]Sh-utils               8.31
    [12-12-34.621]Modules Loaded         xt_conntrack xt_MASQUERADE xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ip_tables x_tables br_netfilter bridge stp llc overlay xfrm_user xfrm_algo xhci_plat_hcd xhci_hcd usbcore rpmsg_char ti_am335x_adc kfifo_buf pru_rproc irq_pruss_intc icss_iep omap_rng rng_core cdns3 roles udc_core usb_common crct10dif_ce snd_soc_j721e_evm ti_j721e_cpsw_virt_mac ti_k3_r5_remoteproc ti_am335x_tscadc pruss ntb_hw_epf ntb pci_endpoint_test sa2ul sha512_generic authenc cdns_dphy ti_k3_dsp_remoteproc virtio_rpmsg_bus cdns3_ti snd_soc_pcm3168a_i2c snd_soc_pcm3168a rti_wdt oak_pci sch_fq_codel rpmsg_kdrv_switch jailhouse ipv6
    [12-12-34.622]
    [12-12-34.622]free reports:
    [12-12-34.622]              total        used        free      shared  buff/cache   available
    [12-12-34.622]Mem:        1537088      304832      751424       34944      480832      966400
    [12-12-34.622]Swap:             0           0           0
    [12-12-34.622]
    [12-12-34.622]cpuinfo:
    [12-12-34.622]Architecture:                    aarch64
    [12-12-34.622]CPU op-mode(s):                  32-bit, 64-bit
    [12-12-34.622]Byte Order:                      Little Endian
    [12-12-34.622]CPU(s):                          2
    [12-12-34.623]On-line CPU(s) list:             0,1
    [12-12-34.628]Thread(s) per core:              1
    [12-12-34.628]Core(s) per socket:              2
    [12-12-34.629]Sock[ 6503.692607] LTP: starting WDT_M_FUNC_WRITE (source 'common.sh'; do_cmd install_modules.sh 'wdt' ; DEV_NODE=`get_devnode.sh "wdt"` || die "error getting devnode for wdt"; do_cmd wdt_tests -device $DEV_NODE -ioctl -write)
    [12-12-34.629]et(s):                       1
    [12-12-34.629]Vendor ID:                       ARM
    [12-12-34.629]Model:                           0
    [12-12-34.629]Model name:                      Cortex-A72
    [12-12-34.629]Stepping:                        r1p0
    [12-12-34.629]BogoMIPS:                        400.00
    [12-12-34.629]L1d cache:                       64 KiB
    [12-12-34.629]L1i cache:                       96 KiB
    [12-12-34.629]L2 cache:                        1 MiB
    [12-12-34.629]Vulnerability Itlb multihit:     Not affected
    [12-12-34.629]Vulnerability L1tf:              Not affected
    [12-12-34.629]Vulnerability Mds:               Not affected
    [12-12-34.629]Vulnerability Meltdown:          Not affected
    [12-12-34.630]Vulnerability Spec store bypass: Vulnerable
    [12-12-34.630]Vulnerability Spectre v1:        Mitigation; __user pointer sanitization
    [12-12-34.630]Vulnerability Spectre v2:        Not affected
    [12-12-34.630]Vulnerability Srbds:             Not affected
    [12-12-34.630]Vulnerability Tsx async abort:   Not affected
    [12-12-34.630]Flags:                           fp asimd evtstrm aes pmull sha1 sha2 crc32 cpui
    [12-12-34.630]                                 d
    [12-12-34.630]
    [12-12-34.630]AppArmor disabled
    [12-12-34.630]
    [12-12-34.630]SELinux mode: unknown
    [12-12-34.630]no big block device was specified on commandline.
    [12-12-34.630]Tests which require a big block device are disabled.
    [12-12-34.630]You can specify it with option -z
    [12-12-34.630]COMMAND:    /opt/ltp/bin/ltp-pan   -e -S   -a 1157     -n 1157 -p -f /tmp/ltp-nmunUAXvx3/alltests -l /tmp/tmp.7xHx0Ami7D  -C /opt/ltp/output/LTP_RUN_ON-tmp.7xHx0Ami7D.failed -T /opt/ltp/output/LTP_RUN_ON-tmp.7xHx0Ami7D.tconf
    [12-12-34.631]INFO: Restricted to WDT_M_FUNC_WRI
    [12-12-34.631]LOG File: /tmp/tmp.7xHx0Ami7D
    [12-12-34.631]FAILED COMMAND File: /opt/ltp/output/LTP_RUN_ON-tmp.7xHx0Ami7D.failed
    [12-12-34.631]TCONF COMMAND File: /opt/ltp/output/LTP_RUN_ON-tmp.7xHx0Ami7D.tconf
    [12-12-34.631]Running tests.......
    [12-12-34.631]<<<test_start>>>
    [12-12-34.631]tag=WDT_M_FUNC_WRITE stime=1629473576
    [12-12-34.631]cmdline="source 'common.sh'; do_cmd install_modules.sh 'wdt' ; DEV_NODE=`get_devnode.sh "wdt"` || die "error getting devnode for wdt"; do_cmd wdt_tests -device $DEV_NODE -ioctl -write"
    [12-12-34.631]contacts=""
    [12-12-34.631]analysis=exit
    [12-12-34.631]<<<test_output>>>
    [12-12-34.631]|TRACE LOG|Inside do_cmd:CMD=install_modules.sh wdt|
    [12-12-34.631]|TRACE LOG|Inside do_cmd:CMD=wdt_tests -device /dev/watchdog -ioctl -write|
    [12-12-34.631]
    [12-12-34.631]
    [12-12-34.633]|TEST START|wdt_tests|
    [12-12-35.308]|TRACE LOG|******** WDT Testcase  parameters  ******** |
    [12-12-35.308]|TRACE LOG|Device         : /dev/watchdog|
    [12-12-35.308]|TRACE LOG|Loop Count     : 1|
    [12-12-35.308]|TRACE LOG|I/O Operation  : Write|
    [12-12-35.308]|TRACE LOG|Operation      : Ioctl|
    [12-12-35.308]|TRACE LOG|Ioctl Name     : WDIOC_KEEPALIVE|
    [12-12-35.313]|TRACE LOG|Ioctl Arg      : 0 |
    [12-12-35.313]|TRACE LOG| ************* End of Test params ************* |
    [12-12-36.093]|TRACE LOG|Keeping WDT alive, sleep counter -0(sec)|
    [12-12-36.093]|TEST RESULT|PASS|wdt_tests|
    [12-12-36.873]|TEST END|wdt_tests|
    [12-12-37.690]|TRACE LOG|EVM will be rebooted after 60 seconds|
    [12-12-37.691]|TRACE LOG|59 seconds remaining before reboot|
    [12-12-38.490]|TRACE LOG|58 seconds remaining before reboot|
    [12-12-39.295]|TRACE LOG|57 seconds remaining before reboot|
    [12-12-40.090]|TRACE LOG|56 seconds remaining before reboot|
    [12-12-40.889]|TRACE LOG|55 seconds remaining before reboot|
    [12-12-41.690]|TRACE LOG|54 seconds remaining before reboot|
    [12-12-42.490]|TRACE LOG|53 seconds remaining before reboot|
    [12-12-43.289]|TRACE LOG|52 seconds remaining before reboot|
    [12-12-44.089]|TRACE LOG|51 seconds remaining before reboot|
    [12-12-44.892]|TRACE LOG|50 seconds remaining before reboot|
    [12-12-45.687]|TRACE LOG|49 seconds remaining before reboot|
    [12-12-46.487]|TRACE LOG|48 seconds remaining before reboot|
    [12-12-47.288]|TRACE LOG|47 seconds remaining before reboot|
    [12-12-48.089]|TRACE LOG|46 seconds remaining before reboot|
    [12-12-48.887]|TRACE LOG|45 seconds remaining before reboot|
    [12-12-49.686]|TRACE LOG|44 seconds remaining before reboot|
    [12-12-50.486]|TRACE LOG|43 seconds remaining before reboot|
    [12-12-51.287]|TRACE LOG|42 seconds remaining before reboot|
    [12-12-52.085]|TRACE LOG|41 seconds remaining before reboot|
    [12-12-52.885]|TRACE LOG|40 seconds remaining before reboot|
    [12-12-53.685]|TRACE LOG|39 seconds remaining before reboot|
    [12-12-54.485]|TRACE LOG|38 seconds remaining before reboot|
    [12-12-55.285]|TRACE LOG|37 seconds remaining before reboot|
    [12-12-56.084]|TRACE LOG|36 seconds remaining before reboot|
    [12-12-56.889]|TRACE LOG|35 seconds remaining before reboot|
    [12-12-57.684]|TRACE LOG|34 seconds remaining before reboot|
    [12-12-58.486]|TRACE LOG|33 seconds remaining before reboot|
    [12-12-59.286]|TRACE LOG|32 seconds remaining before reboot|
    [12-13-00.086]|TRACE LOG|31 seconds remaining before reboot|
    [12-13-00.884]|TRACE LOG|30 seconds remaining before reboot|
    [12-13-01.902][ 6537.759537] ------------[ cut here ]------------
    [12-13-01.902][ 6537.765312] WARNING: CPU: 0 PID: 64 at drivers/watchdog/rti_wdt.c:105 rti_wdt_ping+0x28/0x38 [rti_wdt]
    [12-13-01.902][ 6537.776912] Modules linked in: xt_conntrack xt_MASQUERADE xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ip_tables x_tables br_netfilter bridge stp llc overlay xfrm_user xfrm_algo xhci_plat_hcd xhci_hcd usbcore rpmsg_char ti_am335x_adc kfifo_buf pru_rproc irq_pruss_intc icss_iep omap_rng rng_core cdns3 roles udc_core usb_common crct10dif_ce snd_soc_j721e_evm ti_j721e_cpsw_virt_mac ti_k3_r5_remoteproc ti_am335x_tscadc pruss ntb_hw_epf ntb pci_endpoint_test sa2ul sha512_generic authenc cdns_dphy ti_k3_dsp_remoteproc virtio_rpmsg_bus cdns3_ti snd_soc_pcm3168a_i2c snd_soc_pcm3168a rti_wdt oak_pci(O) sch_fq_codel rpmsg_kdrv_switch jailhouse(O) ipv6
    [12-13-01.902][ 6537.853671] CPU: 0 PID: 64 Comm: watchdogd Tainted: G           O      5.4.106-ge435b477dc49-dirty #18
    [12-13-01.903][ 6537.865271] Hardware name: Texas Instruments K3 J721E SoC (DT)
    [12-13-01.903][ 6537.872538] pstate: 80000005 (Nzcv daif -PAN -UAO)
    [12-13-01.903][ 6537.878508] pc : rti_wdt_ping+0x28/0x38 [rti_wdt]
    [12-13-01.903][ 6537.884375] lr : __watchdog_ping+0x50/0x120
    [12-13-01.903][ 6537.889583] sp : ffff8000124efdb0
    [12-13-01.903][ 6537.893707] x29: ffff8000124efdb0 x28: 0000000000000000 
    [12-13-01.903][ 6537.900326] x27: 0000000000000000 x26: ffff0008412d9a00 
    [12-13-01.903][ 6537.906945] x25: 0000000000000001 x24: ffff000841357188 
    [12-13-01.903][ 6537.913561] x23: ffff8000110ea250 x22: ffff0008412d9a00 
    [12-13-01.903][ 6537.920180] x21: ffff000849cad400 x20: 000005f22943be9b 
    [12-13-01.903][ 6537.926796] x19: ffff00084784de90 x18: 0000000000000000 
    [12-13-01.903][ 6537.933413] x17: 0000000000000000 x16: 0000000000000000 
    [12-13-01.903][ 6537.940029] x15: 0000000000000000 x14: 0000000000000000 
    [12-13-01.904][ 6537.946645] x13: 0000000000000000 x12: 0000000000000000 
    [12-13-01.904][ 6537.953263] x11: 0000000000000000 x10: 00000000000009e0 
    [12-13-01.904][ 6537.959881] x9 : ffff8000124efd40 x8 : ffff0008412da440 
    [12-13-01.904][ 6537.966498] x7 : ffff00087fa8b5c0 x6 : 00000130e3bd08ab 
    [12-13-01.904][ 6537.973114] x5 : 00ffffffffffffff x4 : 002b646600000000 
    [12-13-01.904][ 6537.979731] x3 : 0000000000000018 x2 : 000000000000a35c 
    [12-13-01.904][ 6537.986347] x1 : ffff8000145b009c x0 : 0000000000000028 
    [12-13-01.904][ 6537.992965] Call trace:
    [12-13-01.904][ 6537.996010]  rti_wdt_ping+0x28/0x38 [rti_wdt]
    [12-13-01.904][ 6538.001436]  watchdog_ping_work+0x6c/0x88
    [12-13-01.904][ 6538.006431]  kthread_worker_fn+0xa8/0x188
    [12-13-01.904][ 6538.011422]  kthread+0x138/0x158
    [12-13-01.906][ 6538.015440]  ret_from_fork+0x10/0x1c
    [12-13-01.912][ 6538.019890] ---[ end trace 7fcfc672941ea612 ]---
    [12-13-01.912]|TRACE LOG|29 seconds remaining before reboot|
    [12-13-02.701]|TRACE LOG|28 seconds remaining before reboot|
    [12-13-03.503]|TRACE LOG|27 seconds remaining before reboot|
    [12-13-04.303]|TRACE LOG|26 seconds remaining before reboot|
    [12-13-05.100]|TRACE LOG|25 seconds remaining before reboot|
    [12-13-05.900]|TRACE LOG|24 seconds remaining before reboot|
    [12-13-06.706]|TRACE LOG|23 seconds remaining before reboot|
    [12-13-07.499]|TRACE LOG|22 seconds remaining before reboot|
    [12-13-08.299]|TRACE LOG|21 seconds remaining before reboot|
    [12-13-09.103]|TRACE LOG|20 seconds remaining before reboot|
    [12-13-09.898]|TRACE LOG|19 seconds remaining before reboot|
    [12-13-10.698]|TRACE LOG|18 seconds remaining before reboot|
    [12-13-11.499]|TRACE LOG|17 seconds remaining before reboot|
    [12-13-12.300]|TRACE LOG|16 seconds remaining before reboot|
    [12-13-13.099]|TRACE LOG|15 seconds remaining before reboot|
    [12-13-13.899]|TRACE LOG|14 seconds remaining before reboot|
    [12-13-14.698]|TRACE LOG|13 seconds remaining before reboot|
    [12-13-15.501]|TRACE LOG|12 seconds remaining before reboot|
    [12-13-16.297]|TRACE LOG|11 seconds remaining before reboot|
    [12-13-17.098]|TRACE LOG|10 seconds remaining before reboot|
    [12-13-17.896]|TRACE LOG|9 seconds remaining before reboot|
    [12-13-18.697]|TRACE LOG|8 seconds remaining before reboot|
    [12-13-19.495]|TRACE LOG|7 seconds remaining before reboot|
    [12-13-20.297]|TRACE LOG|6 seconds remaining before reboot|
    [12-13-21.097]|TRACE LOG|5 seconds remaining before reboot|
    [12-13-21.895]|TRACE LOG|4 seconds remaining before reboot|
    [12-13-22.707]|TRACE LOG|3 seconds remaining before reboot|
    [12-13-23.496]|TRACE LOG|2 seconds remaining before reboot|
    [12-13-24.297]|TRACE LOG|1 seconds remaining before reboot|
    [12-13-30.138]|TRACE LOG|0 seconds remaining before reboot|
    [12-13-30.138]|TRACE LOG|-1 seconds remaining before reboot|
    [12-13-30.138]|TRACE LOG|-2 seconds remaining before reboot|
    [12-13-30.138]|TRACE LOG|-3 seconds remaining before reboot|
    [12-13-30.138]|TRACE LOG|-4 seconds remaining before reboot|
    [12-13-30.138]|TRACE LOG|-5 seconds remaining before reboot|
    [12-13-30.138]|TRACE LOG|-6 seconds remaining before reboot|
    [12-13-30.710]|TRACE LOG|-7 seconds remaining before reboot|
    [12-13-31.509]|TRACE LOG|-8 seconds remaining before reboot|
    [12-13-32.693]|TRACE LOG|-9 seconds remaining before reboot|
    

  • Hi,

    [12-13-00.884]|TRACE LOG|30 seconds remaining before reboot|
    [12-13-01.902][ 6537.759537] ------------[ cut here ]------------
    [12-13-01.902][ 6537.765312] WARNING: CPU: 0 PID: 64 at drivers/watchdog/rti_wdt.c:105 rti_wdt_ping+0x28/0x38 [rti_wdt]
    [12-13-01.902][ 6537.776912] Modules linked in: xt_conntrack xt_MASQUERADE xt_addrtype iptable_filter iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ip_tables x_tables br_netfilter bridge stp llc overlay xfrm_user xfrm_algo xhci_plat_hcd xhci_hcd usbcore rpmsg_char ti_am335x_adc kfifo_buf pru_rproc irq_pruss_intc icss_iep omap_rng rng_core cdns3 roles udc_core usb_common crct10dif_ce snd_soc_j721e_evm ti_j721e_cpsw_virt_mac ti_k3_r5_remoteproc ti_am335x_tscadc pruss ntb_hw_epf ntb pci_endpoint_test sa2ul sha512_generic authenc cdns_dphy ti_k3_dsp_remoteproc virtio_rpmsg_bus cdns3_ti snd_soc_pcm3168a_i2c snd_soc_pcm3168a rti_wdt oak_pci(O) sch_fq_codel rpmsg_kdrv_switch jailhouse(O) ipv6

    When I ran the test case It rebooted around 30 seconds. Seems like you are getting an event around that but reset is not happening.

    - Keerthy


  • I can reboot with Ti EVM board.  SOC_SAFETY_ERRORN pin  can change from high to low .

    But I use Customer boards. I use oscilloscope to measure tda4 (U4) SOC_SAFETY_ERRORN pin did not change from high to low.

  • From hardware perspective - I'm not aware what could be causing SOC_SAFETY_ERRONn to behave differently.  We've already discussed the PMIC issue, but when isolated from PMIC - still does not behave same as EVM.