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.

[参考译文] 在开关模式下使用 J721E CPSW2G 和 J7200 CPSW5G 进行摄像头流传输时发生[DRA821U][DRA829] phy_error

Guru**** 2575435 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1132825/dra821u-dra829-phy_error-when-camera-stream-transmission-with-j721e-cpsw2g-and-j7200-cpsw5g-in-switch-mode

您好!

我正在使用 SDK 8.2下的 J7200 cpsw5g Linux 本机驱动程序和 J721E cpsw2g 测试以太网功能。

以下是我的客户电路板配置:

摄像头---- J721E cpsw2g -- J7200 cpsw5g 充当开关-- J721E cpsw2g -- J721E 显示摄像头流

20分钟后、链路断开、 物理层错误、 按如下方式进行记录

(1) J7200 PHY 错误

[ 1348.301156] davinci_mdio c000f00.mdio: timed out waiting for user access
[ 1348.307976] ------------[ cut here ]------------
[ 1348.312593] WARNING: CPU: 0 PID: 104 at drivers/net/phy/phy.c:958 phy_error+0x14/0x60
[ 1348.320400] 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 overlay xfrm_user xfrm_algo md5 ecb aes_neon_bs aes_neon_blk des_generic libdes cbc bridge stp llc bluetooth ecdh_generic ecc rfkill rpmsg_char omap_rng rng_core crct10dif_ce ti_k3_r5_remoteproc virtio_rpmsg_bus sa2ul sha512_generic authenc rti_wdt sch_fq_codel rpmsg_kdrv_switch cryptodev(O) ipv6
[ 1348.361909] CPU: 0 PID: 104 Comm: kworker/u4:2 Tainted: G           O      5.10.100-g7a7a3af903 #3
[ 1348.370844] Hardware name: Texas Instruments K3 J7200 SoC (DT)
[ 1348.376663] Workqueue: events_power_efficient phy_state_machine
[ 1348.382567] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--)
[ 1348.388556] pc : phy_error+0x14/0x60
[ 1348.392118] lr : phy_state_machine+0x88/0x218
[ 1348.396457] sp : ffff8000130cfd30
[ 1348.399758] x29: ffff8000130cfd30 x28: ffff800011151000
[ 1348.405055] x27: ffff000800050070 x26: ffff000800050020
[ 1348.410351] x25: 0000000000000000 x24: 00000000ffffff92
[ 1348.415648] x23: ffff0008027f04e8 x22: ffff000800356200
[ 1348.420944] x21: ffff0008027f0000 x20: 0000000000000005
[ 1348.426239] x19: ffff0008027f0000 x18: 0000000000000010
[ 1348.431536] x17: 0000000000000000 x16: 0000000000000000
[ 1348.436832] x15: ffff000800356730 x14: 0000000000000343
[ 1348.442128] x13: 0000000000000000 x12: 0000000000000044
[ 1348.447424] x11: 0000000000000000 x10: 00000000000009a0
[ 1348.452721] x9 : 0000000000000366 x8 : ffff00087facb0c0
[ 1348.458017] x7 : ffff0008001654c0 x6 : 0000000000000003
[ 1348.463313] x5 : 0000000000000000 x4 : 0000000000000000
[ 1348.468609] x3 : ffff0008027f04e8 x2 : 0000000000000000
[ 1348.473904] x1 : ffff000800356200 x0 : ffff0008027f0000
[ 1348.479201] Call trace:
[ 1348.481637]  phy_error+0x14/0x60
[ 1348.484851]  phy_state_machine+0x88/0x218
[ 1348.488849]  process_one_work+0x1a0/0x328
[ 1348.492845]  worker_thread+0x4c/0x420
[ 1348.496495]  kthread+0x140/0x160
[ 1348.499710]  ret_from_fork+0x10/0x34
[ 1348.503272] ---[ end trace c5674e92eabd970e ]---

(2) J721E PHY 错误

[12957.256255] am65-cpsw-nuss 46000000.ethernet eth0: Link is Down
[12965.448175] ------------[ cut here ]------------
[12965.452798] WARNING: CPU: 0 PID: 2714 at drivers/net/phy/phy.c:958 phy_error+0x14/0x60
[12965.460692] 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 bridge stp llc overlay xfrm_user xfrm_algo md5 ecb aes_neon_bs aes_neon_blk des_generic libdes cbc sch_mqprio act_skbedit cls_u32 sch_ingress bluetooth ecdh_generic ecc rfkill rpmsg_char ti_am335x_adc kfifo_buf omap_rng rng_core pru_rproc icss_iep irq_pruss_intc crct10dif_ce ti_j721e_cpsw_virt_mac ti_am335x_tscadc ti_k3_r5_remoteproc pruss vxe_enc vxd_dec pvrsrvkm(O) sa2ul videobuf2_dma_contig videobuf2_dma_sg v4l2_mem2mem ti_k3_dsp_remoteproc sha512_generic authenc videobuf2_memops videobuf2_v4l2 videobuf2_common virtio_rpmsg_bus rti_wdt sch_fq_codel v4l2loopback rpmsg_kdrv_switch cryptodev(O) ipv6
[12965.529015] CPU: 0 PID: 2714 Comm: kworker/u4:2 Tainted: G           O      5.10.100-g7a7a3af903 #2
[12965.538036] Hardware name: Texas Instruments K3 J721E SoC (DT)
[12965.543854] Workqueue: events_power_efficient phy_state_machine
[12965.549758] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--)
[12965.555746] pc : phy_error+0x14/0x60
[12965.559306] lr : phy_state_machine+0x88/0x218
[12965.563646] sp : ffff80012762fd30
[12965.566947] x29: ffff80012762fd30 x28: ffff800011151000
[12965.572243] x27: ffff80012e02fcc8 x26: ffff00082869a3c8
[12965.577539] x25: 0000000000000000 x24: 00000000fffffffb
[12965.582835] x23: ffff0008241d8ce8 x22: ffff000824c59a00
[12965.588131] x21: ffff0008241d8800 x20: 0000000000000005
[12965.593427] x19: ffff0008241d8800 x18: 0000000000000000
[12965.598722] x17: 0000000000000000 x16: 0000000000000000
[12965.604018] x15: 0000ffff826fe430 x14: 00000000000003f5
[12965.609314] x13: 0000000000000000 x12: 0000000000000001
[12965.614611] x11: 0000000000000000 x10: 00000000000009a0
[12965.619907] x9 : ffff80012762fad0 x8 : ffff000824c5a400
[12965.625202] x7 : ffff00087fa6b140 x6 : 0000025c10f36475
[12965.630497] x5 : 00ffffffffffffff x4 : 0000000000000000
[12965.635793] x3 : ffff0008241d8ce8 x2 : 0000000000000000
[12965.641089] x1 : ffff000824c59a00 x0 : ffff0008241d8800
[12965.646386] Call trace:
[12965.648821]  phy_error+0x14/0x60
[12965.652036]  phy_state_machine+0x88/0x218
[12965.656036]  process_one_work+0x1a0/0x328
[12965.660030]  worker_thread+0x4c/0x420
[12965.663678]  kthread+0x140/0x160
[12965.666894]  ret_from_fork+0x10/0x34
[12965.670455] ---[ end trace 91d0ddd4b6b6af5c ]---

[ 8414.315558] davinci_mdio c000f00.mdio: timed out waiting for user access
[ 8414.322282] ------------[ cut here ]------------
[ 8414.326895] WARNING: CPU: 1 PID: 1409 at drivers/net/phy/phy.c:958 phy_error+0x14/0x60
[ 8414.334789] Modules linked in: xt_conntrack xt_MASQUERADE xt_addrtype iptable_filter iptabl
e_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c ip_tables x_tables overlay x
frm_user xfrm_algo md5 ecb aes_neon_bs aes_neon_blk des_generic libdes cbc act_skbedit cls_u32
sch_ingress sch_taprio bridge stp llc bluetooth ecdh_generic ecc rfkill rpmsg_char omap_rng r
ng_core crct10dif_ce sa2ul sha512_generic authenc ti_k3_r5_remoteproc virtio_rpmsg_bus rti_wdt
sch_fq_codel rpmsg_kdrv_switch cryptodev(O) ipv6
[ 8414.380033] CPU: 1 PID: 1409 Comm: kworker/u4:2 Tainted: G           O      5.10.100-g7a7a3
af903 #3
[ 8414.389055] Hardware name: Texas Instruments K3 J7200 SoC (DT)
[ 8414.394878] Workqueue: events_power_efficient phy_state_machine
[ 8414.400782] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--)
[ 8414.406771] pc : phy_error+0x14/0x60
[ 8414.410334] lr : phy_state_machine+0x88/0x218
[ 8414.414674] sp : ffff8000194efd30
[ 8414.417975] x29: ffff8000194efd30 x28: ffff800011151000
[ 8414.423271] x27: ffff80001222fcc8 x26: ffff000803a8ad48
[ 8414.428567] x25: 0000000000000000 x24: 00000000ffffff92
[ 8414.433862] x23: ffff0008023144e8 x22: ffff000801227e00
[ 8414.439158] x21: ffff000802314000 x20: 0000000000000004
[ 8414.444455] x19: ffff000802314000 x18: 0000000000000010
[ 8414.449751] x17: 0000000000000000 x16: 0000000000000000
[ 8414.455047] x15: ffff000801228330 x14: 00000000000001d7
[ 8414.460343] x13: ffff000801228330 x12: 00000000ffffffea
[ 8414.465639] x11: ffff8000111da3e0 x10: ffff8000111c23a0
[ 8414.470936] x9 : ffff8000111c23f8 x8 : 0000000000017fe8
[ 8414.476232] x7 : c0000000ffffefff x6 : 0000018817072da5
[ 8414.481528] x5 : 00ffffffffffffff x4 : 0000000000000000
[ 8414.486824] x3 : ffff0008023144e8 x2 : 0000000000000000
[ 8414.492120] x1 : ffff000801227e00 x0 : ffff000802314000
[ 8414.497416] Call trace:
[ 8414.499853]  phy_error+0x14/0x60
[ 8414.503069]  phy_state_machine+0x88/0x218
[ 8414.507066]  process_one_work+0x1a0/0x328
[ 8414.511062]  worker_thread+0x4c/0x420
[ 8414.514711]  kthread+0x140/0x160
[ 8414.517926]  ret_from_fork+0x10/0x34
[ 8414.521487] ---[ end trace d905449417dbb081 ]---

对此有什么想法吗?

BR

Jay

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Jay:

    PC:phy_error+0x14/0x60
    PHY_STAND_MACHINE_0x88/0x218

    一些问题:

    a:您是否在之前的 PCB 中看到过这种误差?

    b.您需要检查是否对硬件 PHY 进行了任何修改重新分级。

    c.为什么 PHY 会导致此问题? RTK phy? 哪个器件型号?

    BR RIO

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    你(们)好

    [引用 userid="85279" URL"~/support/processors-group/processors/f/processors-forum/1132825/dra821u-dra829-phy_error-when-camera-stream-transmission-with-j721e-cpsw2g-and-j7200-cpsw5g-in-switch-mode/4203214 #4203214"]

    a:您是否在之前的 PCB 中看到过这种误差?

    b.您需要检查是否对硬件 PHY 进行了任何修改重新分级。

    c.为什么 PHY 会导致此问题? RTK phy? 哪个器件型号?

    [/报价]

    A/B:是的、此错误显示在 P0和 P1、P0和 P1 HW PHY 中是相同的。

    C:

    (1)由  RGMII 提供的具有 RTL9010AR 的 J721E CPSW2G

    (2)由 SGMII 提供的具有 RTL9010AS 的 J7200 CPSW5G

    BR

    Jay

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Jay:

    让我们先在离线邮件中讨论。

    我向您发送了更多问题。

    谢谢。

    BR RIO

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Rio、

    我们已经测试了您提供给我们的补丁并在内 核中禁用 CONFIG_WQ_POWER_efficient 默认设置、但问题仍然存在。

    请检查日志文件。

    e2e.ti.com/.../dmesg_5F00_0920.zip

    谢谢、

    Josh

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Josh、您好!

    从附加的映像中、似乎 仍然启用 CONFIG_WQ_POWER_efficient 默认设置。  

    我们可以使用命令`cat /proc/config.gz | gunzip | grep WQ_POWER_efficient`在运行时检查配置标志。 您能否运行此命令并检查其值?  

    我们怀疑某些高能效执行可能会干扰 phy_state_machine 并导致其行为错误。

    此致、
    Tanmay

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Tanmay:

    放大 MDIO 超时值后、此问题得到改善。

    Josh 将更长时间地对其进行测试、如果通过48小时测试、我们将解决此问题。

    谢谢。

    BR RIO

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 Tanmay、

     CONFIG_WQ_POWER_efficient 默认 设置实际上是禁用的

    此致、

    Josh

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    通过扩大 MDIO 超时、72小时测试通过、解决了此问题。