Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: mimxrt1170_evk_cm7: 100M: phy does not work well tx/rx timeout #79965

Open
hakehuang opened this issue Oct 17, 2024 · 0 comments
Open

net: mimxrt1170_evk_cm7: 100M: phy does not work well tx/rx timeout #79965

hakehuang opened this issue Oct 17, 2024 · 0 comments
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP priority: medium Medium impact/importance bug

Comments

@hakehuang
Copy link
Collaborator

hakehuang commented Oct 17, 2024

Describe the bug

mimxrt1170_evk_cm7 100M enet does not work. tx/rx timeout

Please also mention any information which could help others to understand
the problem you're facing:

  • What target platform are you using?
  • mimxrt1170_evk_cm7
  • What have you tried to diagnose or workaround this issue?
  • git bisect
  • Is this a regression? If yes, have you been able to "git bisect" it to a
    specific commit?
e9047431526e9a738a60f669a1a075b4656f8945 is the first bad commit
commit e9047431526e9a738a60f669a1a075b4656f8945
Author: Declan Snyder <declan.snyder@nxp.com>
Date:   Fri Oct 4 16:46:24 2024 -0500

    ethernet: phy_mc_ksz8081: Don't reset in cfg link

    No need to reset in cfg link, this was blocking system workqueue during
    phy callbacks that call cfg link, since this happens from monitor work
    handler which is in the system workqueue.

    Signed-off-by: Declan Snyder <declan.snyder@nxp.com>

 drivers/ethernet/phy/phy_microchip_ksz8081.c | 6 ------
 1 file changed, 6 deletions(-)

To Reproduce

west update
west build -b mimxrt1170_evk/mimxrt1176/cm7 samples/net/dhcpv4_client/ -p always
west flash --runner=linkserver --probe="JTAQCQAR"

console log

*** Booting Zephyr OS build v3.7.0-4110-ge9047431526e ***
[00:00:02.912,000] <inf> net_dhcpv4_client_sample: Run dhcpv4 client
[00:00:02.913,000] <inf> net_dhcpv4_client_sample: Start on ethernet: index=1
uart:~$ net iface

Interface eth0 (0x80000d60) (Ethernet) [1]
===================================
Link addr : 02:04:9F:8D:05:5C
MTU       : 1500
Flags     : AUTO_START,IPv4
Device    : ethernet (0x3001f650)
Ethernet capabilities supported:
        TX checksum offload
        RX checksum offload
        10 Mbits
        100 Mbits
        MAC address filtering
Ethernet PHY device: phy@0 (0x3001f63c)
Ethernet link speed: 100 Mbits full-duplex
IPv4 unicast addresses (max 1):
        <none>
IPv4 multicast addresses (max 2):
        224.0.0.1
IPv4 gateway : 0.0.0.0
DHCPv4 lease time : 0
DHCPv4 renew time : 0
DHCPv4 server     : 0.0.0.0
DHCPv4 requested  : 0.0.0.0
DHCPv4 state      : selecting
DHCPv4 attempts   : 1
uart:~$ net iface

Interface eth0 (0x80000d60) (Ethernet) [1]
===================================
Link addr : 02:04:9F:8D:05:5C
MTU       : 1500
Flags     : AUTO_START,IPv4
Device    : ethernet (0x3001f650)
Ethernet capabilities supported:
        TX checksum offload
        RX checksum offload
        10 Mbits
        100 Mbits
        MAC address filtering
Ethernet PHY device: phy@0 (0x3001f63c)
Ethernet link speed: 100 Mbits full-duplex
IPv4 unicast addresses (max 1):
        <none>
IPv4 multicast addresses (max 2):
        224.0.0.1
IPv4 gateway : 0.0.0.0
DHCPv4 lease time : 0
DHCPv4 renew time : 0
DHCPv4 server     : 0.0.0.0
DHCPv4 requested  : 0.0.0.0
DHCPv4 state      : selecting
DHCPv4 attempts   : 5

Expected behavior

[00:00:03.411,000] <inf> phy_mc_ksz8081: PHY 0 is up
[00:00:03.411,000] <inf> phy_mc_ksz8081: PHY (0) Link speed 100 Mb, full duplex

*** Booting Zephyr OS build v3.7.0-4109-gf90b1caae4f9 ***
[00:00:03.412,000] <inf> net_dhcpv4_client_sample: Run dhcpv4 client
[00:00:03.413,000] <inf> net_dhcpv4_client_sample: Start on ethernet: index=1
[00:00:11.423,000] <inf> net_dhcpv4: Received: 192.168.1.230
[00:00:11.423,000] <inf> net_dhcpv4_client_sample:    Address[1]: 192.168.1.230
[00:00:11.423,000] <inf> net_dhcpv4_client_sample:     Subnet[1]: 255.255.255.0
[00:00:11.423,000] <inf> net_dhcpv4_client_sample:     Router[1]: 192.168.1.1
[00:00:11.423,000] <inf> net_dhcpv4_client_sample: Lease time[1]: 43200 seconds

Impact

100M function

Environment (please complete the following information):

  • OS: (e.g. Linux)
  • Toolchain (e.g Zephyr SDK, ...): 0.17.0-rc1
  • Commit SHA or Version used: v3.7.0-4578-g829c03bcdca

Additional context

1G port is ok, mimxrt1060_evk is ok as well. this only happens on rt1170_evk 100M port

@hakehuang hakehuang added bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP labels Oct 17, 2024
@dleach02 dleach02 assigned decsny and unassigned mmahadevan108 and dleach02 Oct 18, 2024
@dleach02 dleach02 added the priority: medium Medium impact/importance bug label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP priority: medium Medium impact/importance bug
Projects
None yet
Development

No branches or pull requests

4 participants