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.

RSTOUT pin duration issue

Hi,all,

I met a problem

In dm8168 custom board , phy chip (rtl8211EG) not working after reboot (detection is ok, autonegotiation is ok too)

I try to trigger watch dog reset manually by write the dm8168 register directly, and increase the RSTTIME1 and RSTTIME2,phy chip work perfectly

# increase RSTTIME2 and RSTTIME1
./mem_rdwr.out --wr 481800a4 fffffefe

# Initiate software reset
./mem_rdwr.out --wr 480c2010 00000002

but RSTIME1 and RSTIME2's value has no impact on  RST_GLOBAL_COLD_SW and RST_GLOBAL_WARM_SW.

Please see this thread for detail:e2e.ti.com/.../360513

My problem is :

How can I increase the RSTOUT asserted time when use linux's command reboot.

  • Tracy,

    tracy mcgrady said:
    but RSTIME1 and RSTIME2's value has no impact on  RST_GLOBAL_COLD_SW and RST_GLOBAL_WARM_SW.

    tracy mcgrady said:
    How can I increase the RSTOUT asserted time when use linux's command reboot.

    It is clearly stated that RSTOUT pulse duration can be controlled only when initiated by a Watchdog timeout. DM816x device is designed like that and I do not expect changes in the design in future.

    The only option for you that I can think of is to initiate WDT reset through the application saWatchdog, see the below wiki page:

    Regards,
    Pavel

  • hi,may i ask you another question。I use watchdog reboot instead of system reboot.

    I add the watchdog reboot script to /etc/rc6.d/S40umountfs(This file is execute just before the S90reboot)

    after reboot,phy chip work fine,

    but kernel crash when load the mcfw releate module,here is the log:


    SysLink version : 2.20.02.20
    SysLink module created on Date:Dec 17 2015 Time:20:44:14
    Trace enabled
    Trace SetFailureReason enabled
    Unhandled fault: Precise External Abort on non-linefetch (0x1808) at 0xf9020000
    Internal error: : 1808 [#1]
    last sysfs file: /sys/devices/virtual/syslinkipc/syslinkipc_RingIOShm/uevent
    Modules linked in: syslink
    CPU: 0 Not tainted (2.6.37+ #3)
    PC is at DM8168DUCATIMMU_enable+0x60/0xa0 [syslink]
    LR is at DM8168DUCATIMMU_enable+0x28/0xa0 [syslink]
    pc : [<bf0171d8>] lr : [<bf0171a0>] psr: 00000013
    sp : d9fc8ff0 ip : deaef000 fp : d9fc9004
    r10: 00000000 r9 : d9fc8000 r8 : bf0af5a8
    r7 : bf07ca50 r6 : deaec000 r5 : 00000000 r4 : deaec000
    r3 : 00010000 r2 : f9020000 r1 : 00060000 r0 : bf06140e
    Flags: nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
    Control: 10c5387d Table: d97a0019 DAC: 00000015
    Process fw_load.out (pid: 717, stack limit = 0xd9fc82e8)
    Stack: (0xd9fc8ff0 to 0xd9fca000)
    8fe0: deaef000 00000000 d9fc9034 d9fc9008
    9000: bf0168cc bf017184 00000008 f9020000 00000000 deaec000 d9fc9e34 deaf5000
    9020: d9fc9ea4 00000000 d9fc9054 d9fc9038 bf0047e8 bf0167dc d9fc9e34 bf01c0fc
    9040: d9fc9ea4 d9fc9078 d9fc9e5c d9fc9058 bf004160 bf00478c d9fc9ea4 00000000
    9060: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9080: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    90a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    90c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    90e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9100: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9120: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9140: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9160: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9180: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    91a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    91c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    91e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9200: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9220: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9240: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9260: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9280: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    92a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    92c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    92e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9300: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9320: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9340: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9360: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9380: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    93a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    93c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    93e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9400: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9420: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9440: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9460: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9480: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    94a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    94c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    94e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9500: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9520: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9540: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9560: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9580: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    95a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    95c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    95e0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9600: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9620: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9640: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9660: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    9680: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    96a0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    96c0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    96e0: 00000000 00000000 00000000 00000000 00000000 00000000 d9fc9714 d9fc9708
    9700: c005a0d8 c006f41c d9fc977c d9fc9718 c0095150 c005a0cc 812c2193 0007bfa4
    9720: 7f241ef0 d9fcc5b0 c050b5e8 997ce100 00000003 00989680 d9fc976c d9fc9748
    9740: c0070ab0 1b6b43e0 00000000 1adb10a9 c050b434 00000000 d9fc9784 d9fc9768
    9760: c050b5e8 c050b608 792f3e55 00000002 00000000 1c340721 d9fc97ac d9fc9788
    9780: c0072c74 c01c2dd4 d9fcc5c4 d9fcd340 c050b5a0 00000001 d9fcd370 1c341db3
    97a0: 00000000 1b73a729 c050b434 00000000 d9fc97cc d9fc97c0 c005a0d8 c006f41c
    97c0: c050b5e8 c050b608 79c7d4d5 00000002 d9fc9824 d9fc97e0 bf02d008 bf01c0fc
    97e0: c0072c74 c01c2dd4 d9fcc5c4 d9fcd340 c050b5a0 00000001 d9fcd370 1cf529b1
    9800: 00000000 d9699f80 00000012 00000001 be836660 be836660 d9fc9ef4 d9fc9828
    9820: bf050e14 bf01c0fc c024f352 be836660 d9fc984c d9fc9840 c005a080 be836660
    9840: d9fc9874 d9fc9850 c0098f80 00000000 00000000 00000000 1d34ce80 c04f69d8
    9860: 1cf529b1 0000000f d9fc98b4 d9fc9878 c00997c4 c0098e64 1cf529b1 0000000f
    9880: 1cf529b1 0000000f d9fc98a4 1cf4fd47 0000000f 1d34ce80 0000000f c050d2c8
    98a0: 1cf4fd47 00000000 d9fc98cc d9fc98b8 c0099950 c0099790 00000000 0000000f
    98c0: d9fc9924 d9fc98d0 c00910c8 c0099934 d9fc9924 d9fc98e0 c0080c40 0000000f
    98e0: 1cf4fd47 0000000f 1cf4fd47 0000000f 1cf4fd47 0000000f c007b6e8 c04f6a30
    9900: 00000000 00000000 00000043 d9d82800 d9e50000 00000802 d9fc9934 d9fc9928
    9920: c005a0b4 c0090f50 d9fc9944 d9fc9938 c005aaf0 c005aa6c d9fc9954 d9fc9948
    9940: c00a523c c005aad0 d9fc996c d9fc9958 d9fc996c d9fc9960 c007b6e8 c0071d2c
    9960: d9fc9984 d9fc9970 c0041080 c007b6a0 ffffffff fa200000 d9fc99dc d9e50a80
    9980: 00000001 00000000 040000cc d9e505b0 00000000 da804000 00000000 000000d0
    99a0: d9e505b0 d9d82810 d9d82800 d9e50000 00000802 d9fc99dc d9fc99ec d9fc99c8
    99c0: c00597b8 c00592fc d9fc99ec d9fc99d8 c00594bc c00592fc d9fc9a0c d9fc99e8
    99e0: c005951c c005931c d9d82a00 00000000 d9d82810 d9d82a00 0000002a d9d82810
    9a00: 00000001 d9e50a80 d9e50000 0000083a d9fc9a6c d9fc9a20 c02545b0 c02551f4
    9a20: 00008920 d9e50480 c056d72c 00000200 0000000e d9e50c82 d9e50c80 d9e50cba
    9a40: c0250ac4 d9d82a00 d9d82810 d9e50480 000000eb d9d82810 d9e50480 000000eb
    9a60: 00008920 d9f98960 d9d82a00 c02501c0 d9fc9aac d9fc9a80 c02506b0 00000000
    9a80: 00000000 00008920 00000000 60000113 d9d82a00 d9d82810 00000000 0448f6a0
    9aa0: 00000000 d9d82810 d9fc9ad4 d9fc9ab8 c0071b44 c0071ab0 00000000 d9fc9ac8
    9ac0: c024e95c d9d82a00 d9fc9aec d9fc9ad8 c024f044 c0071b28 00000000 d9d82a00
    9ae0: d9fc9b1c d9fc9af0 c02506b0 c024f00c d9d82bf4 d9d83000 d9fc9b54 009c0000
    9b00: 00000000 03acf6a0 d9e35400 00000000 d9fc9b74 d9fc9b20 c02469a0 c0250610
    9b20: 00000a4b d9fc9b94 d9f98000 00000000 d9fc9b54 00000000 00000000 00000000
    9b40: 00000000 00000000 d9fc9b9c 0000e6a0 00000000 d9f98000 00000a4b 03acf6a0
    9b60: 00000000 d9d83000 d9fc9bc4 d9fc9b78 c025d7bc c02468f8 00000a4b d9fc9b94
    9b80: d95df840 d9d83000 00000000 00000000 d95df840 d9d83000 00000000 00000000
    9ba0: d9fc9bc4 d9fc9bb0 c025d170 c00cc178 00000000 d9e5d000 d9fc9c0c d9fc9bc8
    9bc0: c025d3ec c025d130 00000a4b 00000000 c04f69d8 d9f98000 000001d4 00000000
    9be0: c005a080 0000e6a0 d9e5d000 00000000 00000a4b d9f98000 00000a4b d9fc9d28
    9c00: d9fc9c44 d9fc9c10 c025b4c8 c025d180 0000e6a0 00000a4b 00000000 c0098e64
    9c20: 1d355129 d9f98000 000001d4 0000e6a0 00000a4b 0000e6a0 d9fc9c74 d9fc9c48
    9c40: c01851e8 c025b400 00000a4b 00000000 d9fc9c74 d9fc9c60 d9f98000 d9fc9ca4
    9c60: d9f98a4b bfe10000 bfe0fef5 bfe0fded c01889ac d9fc9d34 bfe0f000 00000a1b
    9c80: d9f98030 d9fc9d34 bfe0f000 00000020 d9fc9cbc d9fc9ca0 c01ac8d4 c01d03dc
    9ca0: d9fc9cc4 d9fc9cb0 c00badd8 c00bad80 60000113 c08e4d20 d9fc9cdc d9fc9cc8
    9cc0: d9fc9ce4 d9fc9cd0 c00badd8 c00bad80 60000113 d9f98000 d9fc9cfc d9fc9ce8
    9ce0: c00bb068 c00badac 00000043 d9f98000 d9fc9d0c d9fc9d00 c00551b0 c00bb05c
    9d00: d9fc9d64 d9fc9d10 c017d628 c005515c 00000001 c053991c 00000000 00000043
    9d20: 000427fc 00000000 00001295 20000020 d992de6c 00001000 c08e4d20 00000000
    9d40: d9fc9d64 d9fc9d50 c00a8178 c008d6ec d992ddc8 00000020 d9fc9dc4 d9fc9d68
    9d60: c017df78 c00a8140 d992de6c c08e4d20 00000000 00000020 d992de6c 00000004
    9d80: 00000000 00000020 d9fc9da4 d9fc9d98 c01c19f8 c01c1944 d9fc9dc4 d9fc9da8
    9da0: c00a7e28 c01c19f0 00000000 d992de6c d9477180 c08e4d20 d9fc9e0c d9fc9dc8
    9dc0: 000db7e9 db7e930f d9fc9de4 d9fc9dd8 c00c761c c00c75b0 d9fc9df4 d9fc9de8
    9de0: c08e4d20 00000000 d9fc9e0c d9fc9df8 c00a8178 c008d6ec c08e4d20 db7e930f
    9e00: d9fc9e5c d9fc9e10 c00bc00c c00a8140 00001208 00000000 00000204 d94218a0
    9e20: 00000000 00000020 d9fc9ea4 00000000 d9fc9e5c d9fc9ea4 d9fc9ea4 d9699400
    9e40: d9fc8000 be836a34 be836a34 00000000 d9fc9ef4 d9fc9e60 bf00511c bf0040c8
    9e60: c00ce0a0 be836a34 00000000 00000000 deaf5000 be836a80 d9f94900 000000a0
    9e80: c00d79d8 c00e5994 d9699080 00000000 d9fc9f5c d9fc9ea0 00000204 d9fc9fb0
    9ea0: d9fcc580 00000000 00000000 d9fc9eb8 c0091ae4 c01c3824 d9fc9efc d9fc9ec8
    9ec0: c03b1d4c c0091ae0 deaf5000 00000000 00000000 00000000 d9699400 00000008
    9ee0: 00000008 be836a34 d9fc9f04 d9fc9ef8 c00dbf90 bf004954 d9fc9f74 d9fc9f08
    9f00: c00dc6a0 c00dbf74 c00db798 c00db6b8 00000000 00000000 fffffffd 00000000
    9f20: d9fc9f54 d9fc9f30 c03b1ecc c00471c4 d96ce01c d9fcc580 00000015 d9fcc2c0
    9f40: d9fc8000 00000000 d9fc9f6c 00000000 be836a34 c00ce0a0 00000008 d9699400
    9f60: d9fc8000 00000000 d9fc9fa4 d9fc9f78 c00dc738 c00dc1ac d9fc9fac 00000001
    9f80: c03ae634 be836a34 00000000 00000000 00000036 c004bfa8 00000000 d9fc9fa8
    9fa0: c004be00 c00dc6ec be836a34 00000000 00000008 c00ce0a0 be836a34 00000001
    9fc0: be836a34 00000000 00000000 00000036 0007ee54 000519dc 0007eb3c be836a94
    9fe0: c00ce0a0 be836a00 0002a544 401e81cc 60000010 00000008 00000000 00000000
    Backtrace:
    [<bf017178>] (DM8168DUCATIMMU_enable+0x0/0xa0 [syslink]) from [<bf0168cc>] (DM8168DUCATIPWR_on+0xfc/0x150 [syslink])
    r5:00000000 r4:deaef000
    [<bf0167d0>] (DM8168DUCATIPWR_on+0x0/0x150 [syslink]) from [<bf0047e8>] (PwrMgr_attach+0x68/0xa0 [syslink])
    r8:00000000 r7:d9fc9ea4 r6:deaf5000 r5:d9fc9e34 r4:deaec000
    [<bf004780>] (PwrMgr_attach+0x0/0xa0 [syslink]) from [<bf004160>] (ProcMgr_attach+0xa4/0x1d4 [syslink])
    r5:d9fc9078 r4:d9fc9ea4
    [<bf0040bc>] (ProcMgr_attach+0x0/0x1d4 [syslink]) from [<bf00511c>] (ProcMgrDrv_ioctl+0x7d4/0x170c [syslink])
    [<bf004948>] (ProcMgrDrv_ioctl+0x0/0x170c [syslink]) from [<c00dbf90>] (vfs_ioctl+0x28/0x44)
    r8:be836a34 r7:00000008 r6:00000008 r5:d9699400 r4:00000000
    [<c00dbf68>] (vfs_ioctl+0x0/0x44) from [<c00dc6a0>] (do_vfs_ioctl+0x500/0x540)
    [<c00dc1a0>] (do_vfs_ioctl+0x0/0x540) from [<c00dc738>] (sys_ioctl+0x58/0x7c)
    [<c00dc6e0>] (sys_ioctl+0x0/0x7c) from [<c004be00>] (ret_fast_syscall+0x0/0x30)
    r8:c004bfa8 r7:00000036 r6:00000000 r5:00000000 r4:be836a34
    Code: 0afffffc e59c2010 e3a03801 e3a01806 (e5823000)
    ---[ end trace 58ffa6afa8c65014 ]---
  • I solve this problem,please see this post
    e2e.ti.com/.../292838