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.

DP83867E: Xilinx Zynq Ultrascale+ SGMII mode with TI DP83867 PHY issue

Part Number: DP83867E
Other Parts Discussed in Thread: MIO,

Hello TI Support,

I'm having issues with the Ethernet on a custom board with a ZynqMP and the Ti83867 PHY running in SGMII mode.

We have a custom board designed with Xilinx Zynq Ultrascale+ FPGA. We connect to port 0 as GEMO(EMIO) <-->SGMII over LVDS <---> External PHY  use TI DP83867.

When boot up Linux, I cannot dhcp, and I cannot get any activity on wireshark.

I can set IP address and ping itself, but cannot ping outside.

My Linux log:

root@petalinux-lincs:~# ifconfig eth0 191.168.1.20 netmask 255.255.255.0
root@petalinux-lincs:~# ip link set dev eth0 down
[  295.127823] macb ff0b0000.ethernet: gem-ptp-timer ptp clock unregistered.
root@petalinux-lincs:~# ip link set dev eth0 up  
[  298.568252] pps pps0: new PPS source ptp0
[  298.572282] macb ff0b0000.ethernet: gem-ptp-timer ptp clock registered.
[  298.579042] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
root@petalinux-lincs:~# dmesg | grep PHY
[    4.543691] Xilinx PCS/PMA PHY ff0b0000.ethernet-ffffffff:09: attached PHY driver [Xilinx PCS/PMA PHY] (mii_bus:phy_addr=ff0b0000.ethernet-ffffffff:09, irq=POLL)
root@petalinux-lincs:~# dmesg | grep mio
[    4.594535] cdns-i2c ff020000.i2c: 400 kHz mmio ff020000 irq 32
[    4.604977] cdns-i2c ff030000.i2c: 400 kHz mmio ff030000 irq 33
root@petalinux-lincs:~# dmesg | grep emio
root@petalinux-lincs:~# dmesg | grep mii_probe
root@petalinux-lincs:~# dmesg | grep PHY      
[    4.543691] Xilinx PCS/PMA PHY ff0b0000.ethernet-ffffffff:09: attached PHY driver [Xilinx PCS/PMA PHY] (mii_bus:phy_addr=ff0b0000.ethernet-ffffffff:09, irq=POLL)
root@petalinux-lincs:~#
root@petalinux-lincs:~# ethtool eth0
Settings for eth0:
    Supported ports: [ TP MII ]
    Supported link modes:   10baseT/Half 10baseT/Full
                            100baseT/Half 100baseT/Full
                            1000baseT/Half 1000baseT/Full
    Supported pause frame use: No
    Supports auto-negotiation: Yes
    Supported FEC modes: Not reported
    Advertised link modes:  1000baseT/Full
    Advertised pause frame use: No
    Advertised auto-negotiation: No
    Advertised FEC modes: Not reported
    Speed: 1000Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 9
    Transceiver: internal
    Auto-negotiation: off
    Link detected: no
root@petalinux-lincs:~# ping 192.168.1.20
PING 192.168.1.20 (192.168.1.20): 56 data bytes
ping: sendto: Network is unreachable
root@petalinux-lincs:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0A:35:00:22:01  
          inet addr:191.168.1.20  Bcast:191.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:30

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:14 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1188 (1.1 KiB)  TX bytes:1188 (1.1 KiB)


Here is my device tree

/include/ "system-conf.dtsi"
/ {
};

&gem0 {
    status = "okay";
    phy-handle = <&phy0>;    
    is-internal-pcspma;
    phy0: phy@9 {
        reg = <0x9>;
        ti,rx-internal-delay = <0x8>;
        ti,tx-internal-delay = <0xa>;
        ti,fifo-depth = <0x3>;
        enet-phy-lane-no-swap;        
        ti,dp83867-rxctrl-strap-quirk;
    };
};

Thanks for your help!

  • Hi Amy,

    Can you please send over a register dump of registers 0-1F, 6E, 6F, 31, 37, D3, 16F, 1D5?

    Can you also please send a schematic of your system over?

    I noticed that the MII port is only listed, not SGMII. This could be part of the issue you are facing.

    Sincerely,
    Gerome

  • Hi Gerome,

    Thank you for your response.

    Regarding how SGMII connect, we use PS Ethernet block GEM0 with the PL PHY through the EMIO interface. You can see from the xilinx wiki here

    Here is the register dump.

    ZynqMP> mii info
    PHY 0x00: OUI = 0x5D03, Model = 0x00, Rev = 0x00, 1000baseX, FDX
    PHY 0x01: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x02: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x03: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x04: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x05: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x06: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x07: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x08: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x09: OUI = 0x5D03, Model = 0x00, Rev = 0x00, 1000baseX, FDX
    PHY 0x0A: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x0B: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x0C: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x0D: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x0E: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x0F: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x10: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x11: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x12: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x13: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x14: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x15: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x16: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x17: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x18: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x19: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x1A: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x1B: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x1C: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x1D: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x1E: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX
    PHY 0x1F: OUI = 0x0000, Model = 0x00, Rev = 0x00,  10baseT, HDX

    ZynqMP> mii read 0x9 0x0
    0140
    ZynqMP> mii read 0x9 0x1
    01C0
    ZynqMP> mii read 0x9 0x2
    0174
    ZynqMP> mii read 0x9 0x3
    0C00
    ZynqMP> mii read 0x9 0x4
    0001
    ZynqMP> mii read 0x9 0x5
    0001
    ZynqMP> mii read 0x9 0x6
    0000
    ZynqMP> mii read 0x9 0x7
    0000
    ZynqMP> mii read 0x9 0x8
    0000
    ZynqMP> mii read 0x9 0x9
    0000
    ZynqMP> mii read 0x9 0xa
    0000
    ZynqMP> mii read 0x9 0xb
    0000
    ZynqMP> mii read 0x9 0xc
    0000
    ZynqMP> mii read 0x9 0xd
    0000
    ZynqMP> mii read 0x9 0xe
    0000
    ZynqMP> mii read 0x9 0xf
    8000
    ZynqMP> mii read 0x9 0x10
    0000
    ZynqMP> mii read 0x9 0x11
    0001
    ZynqMP> mii read 0x9 0x12
    0003
    ZynqMP> mii read 0x9 0x13
    0000
    ZynqMP> mii read 0x9 0x14
    0000
    ZynqMP> mii read 0x9 0x15
    0000


    ZynqMP> mii read 0x9 0x16
    0000
    ZynqMP> mii read 0x9 0x17
    0000
    ZynqMP> mii read 0x9 0x18
    0000
    ZynqMP> mii read 0x9 0x19
    0000
    ZynqMP> mii read 0x9 0x1A
    0000
    ZynqMP> mii read 0x9 0x1B
    0000
    ZynqMP> mii read 0x9 0x1C
    0000
    ZynqMP> mii read 0x9 0x1D
    0000
    ZynqMP> mii read 0x9 0x1E
    0000
    ZynqMP> mii read 0x9 0x1F
    0000

    ZynqMP> mii read 0x9 0x6E
    0000
    ZynqMP> mii read 0x9 0x6F
    0000
    ZynqMP> mii read 0x9 0x31
    0001
    ZynqMP> mii read 0x9 0x37
    0000
    ZynqMP> mii read 0x9 0xD3
    0000
    ZynqMP> mii read 0x9 0x16F
    0000
    ZynqMP> mii read 0x9 0x1D5
    0000
    ZynqMP>



    ZynqMP> mii dump 0x9 0
    0.     (0140)                 -- PHY control register --
      (8000:0000) 0.15    =     0    reset
      (4000:0000) 0.14    =     0    loopback
      (2040:0040) 0. 6,13 =   b10    speed selection = 1000 Mbps
      (1000:0000) 0.12    =     0    A/N enable
      (0800:0000) 0.11    =     0    power-down
      (0400:0000) 0.10    =     0    isolate
      (0200:0000) 0. 9    =     0    restart A/N
      (0100:0100) 0. 8    =     1    duplex = full
      (0080:0000) 0. 7    =     0    collision test enable
      (003f:0000) 0. 5- 0 =     0    (reserved)


    ZynqMP> mii dump 0x9 1
    1.     (01c0)                 -- PHY status register --
      (8000:0000) 1.15    =     0    100BASE-T4 able
      (4000:0000) 1.14    =     0    100BASE-X  full duplex able
      (2000:0000) 1.13    =     0    100BASE-X  half duplex able
      (1000:0000) 1.12    =     0    10 Mbps    full duplex able
      (0800:0000) 1.11    =     0    10 Mbps    half duplex able
      (0400:0000) 1.10    =     0    100BASE-T2 full duplex able
      (0200:0000) 1. 9    =     0    100BASE-T2 half duplex able
      (0100:0100) 1. 8    =     1    extended status
      (0080:0080) 1. 7    =     1    (reserved)
      (0040:0040) 1. 6    =     1    MF preamble suppression
      (0020:0000) 1. 5    =     0    A/N complete
      (0010:0000) 1. 4    =     0    remote fault
      (0008:0000) 1. 3    =     0    A/N able
      (0004:0000) 1. 2    =     0    link status
      (0002:0000) 1. 1    =     0    jabber detect
      (0001:0000) 1. 0    =     0    extended capabilities


    ZynqMP> mii dump 0x9 2
    2.     (0174)                 -- PHY ID 1 register --
      (ffff:0174) 2.15- 0 =   372    OUI portion


    ZynqMP> mii dump 0x9 3
    3.     (0c00)                 -- PHY ID 2 register --
      (fc00:0c00) 3.15-10 =     3    OUI portion
      (03f0:0000) 3. 9- 4 =     0    manufacturer part number
      (000f:0000) 3. 3- 0 =     0    manufacturer rev. number


    ZynqMP> mii dump 0x9 4
    4.     (0001)                 -- Autonegotiation advertisement register --
      (8000:0000) 4.15    =     0    next page able
      (4000:0000) 4.14    =     0    (reserved)
      (2000:0000) 4.13    =     0    remote fault
      (1000:0000) 4.12    =     0    (reserved)
      (0800:0000) 4.11    =     0    asymmetric pause
      (0400:0000) 4.10    =     0    pause enable
      (0200:0000) 4. 9    =     0    100BASE-T4 able
      (0100:0000) 4. 8    =     0    100BASE-TX full duplex able
      (0080:0000) 4. 7    =     0    100BASE-TX able
      (0040:0000) 4. 6    =     0    10BASE-T   full duplex able
      (0020:0000) 4. 5    =     0    10BASE-T   able
      (001f:0001) 4. 4- 0 =     1    selector = IEEE 802.3


    ZynqMP> mii dump 0x9 5
    5.     (0001)                 -- Autonegotiation partner abilities register --
      (8000:0000) 5.15    =     0    next page able
      (4000:0000) 5.14    =     0    acknowledge
      (2000:0000) 5.13    =     0    remote fault
      (1000:0000) 5.12    =     0    (reserved)
      (0800:0000) 5.11    =     0    asymmetric pause able
      (0400:0000) 5.10    =     0    pause able
      (0200:0000) 5. 9    =     0    100BASE-T4 able
      (0100:0000) 5. 8    =     0    100BASE-X full duplex able
      (0080:0000) 5. 7    =     0    100BASE-TX able
      (0040:0000) 5. 6    =     0    10BASE-T full duplex able
      (0020:0000) 5. 5    =     0    10BASE-T able
      (001f:0001) 5. 4- 0 =     1    selector = IEEE 802.3


    I attached whole kernel boot up log.

    SGMII_debug_log0107.txt
    Release 2019.1   Jan  8 2021  -  02:13:45
    NOTICE:  ATF running on XCZU9EG/silicon v4/RTL5.1 at 0xfffea000
    NOTICE:  BL31: Secure code at 0x60000000
    NOTICE:  BL31: Non secure code at 0x8000000
    NOTICE:  BL31: v2.0(release):xilinx-v2018.3-720-g80d1c790
    NOTICE:  BL31: Built : 02:14:00, Jan  8 2021
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
    [    0.000000] Linux version 4.19.0-xilinx-v2019.1 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Fri Jan 8 02:13:10 UTC 2021
    [    0.000000] Machine model: xlnx,zynqmp
    [    0.000000] earlycon: cdns0 at MMIO 0x00000000ff000000 (options '115200n8')
    [    0.000000] bootconsole [cdns0] enabled
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 256 MiB at 0x000000006fc00000
    [    0.000000] psci: probing for conduit method from DT.
    [    0.000000] psci: PSCIv1.1 detected in firmware.
    [    0.000000] psci: Using standard PSCI v0.2 function IDs
    [    0.000000] psci: MIGRATE_INFO_TYPE not supported.
    [    0.000000] psci: SMC Calling Convention v1.1
    [    0.000000] random: get_random_bytes called from start_kernel+0x94/0x3f8 with crng_init=0
    [    0.000000] percpu: Embedded 22 pages/cpu @(____ptrval____) s53016 r8192 d28904 u90112
    [    0.000000] Detected VIPT I-cache on CPU0
    [    0.000000] CPU features: enabling workaround for ARM erratum 845719
    [    0.000000] Speculative Store Bypass Disable mitigation not required
    [    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1033987
    [    0.000000] Kernel command line: earlycon console=ttyPS0,115200 clk_ignore_unused
    [    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
    [    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
    [    0.000000] software IO TLB: mapped [mem 0x6bc00000-0x6fc00000] (64MB)
    [    0.000000] Memory: 3749892K/4193280K available (10812K kernel code, 636K rwdata, 5432K rodata, 33600K init, 316K bss, 181244K reserved, 262144K cma-reserved)
    [    0.000000] rcu: Hierarchical RCU implementation.
    [    0.000000] rcu: 	RCU event tracing is enabled.
    [    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [    0.000000] GIC: Adjusting CPU interface base to 0x00000000f902f000
    [    0.000000] GIC: Using split EOI/Deactivate mode
    [    0.000000] arch_timer: cp15 timer(s) running at 99.99MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x170f8de2d3, max_idle_ns: 440795206112 ns
    [    0.000003] sched_clock: 56 bits at 99MHz, resolution 10ns, wraps every 4398046511101ns
    [    0.008144] Console: colour dummy device 80x25
    [    0.012293] Calibrating delay loop (skipped), value calculated using timer frequency.. 199.98 BogoMIPS (lpj=399960)
    [    0.022572] pid_max: default: 32768 minimum: 301
    [    0.027231] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.033739] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.041496] ASID allocator initialised with 32768 entries
    [    0.046134] rcu: Hierarchical SRCU implementation.
    [    0.051070] EFI services will not be available.
    [    0.055382] smp: Bringing up secondary CPUs ...
    [    0.242115] Detected VIPT I-cache on CPU1
    [    0.242145] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
    [    0.390351] Detected VIPT I-cache on CPU2
    [    0.390370] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
    [    0.543131] Detected VIPT I-cache on CPU3
    [    0.543150] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
    [    0.543195] smp: Brought up 1 node, 4 CPUs
    [    0.572810] SMP: Total of 4 processors activated.
    [    0.577446] CPU features: detected: 32-bit EL0 Support
    [    0.584312] CPU: All CPU(s) started at EL2
    [    0.586550] alternatives: patching kernel code
    [    0.591829] devtmpfs: initialized
    [    0.598769] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.603799] futex hash table entries: 1024 (order: 4, 65536 bytes)
    [    0.615451] xor: measuring software checksum speed
    [    0.653953]    8regs     :  2375.000 MB/sec
    [    0.693981]    8regs_prefetch:  2051.000 MB/sec
    [    0.734012]    32regs    :  2724.000 MB/sec
    [    0.774042]    32regs_prefetch:  2308.000 MB/sec
    [    0.774073] xor: using function: 32regs (2724.000 MB/sec)
    [    0.778354] pinctrl core: initialized pinctrl subsystem
    [    0.784127] NET: Registered protocol family 16
    [    0.788117] audit: initializing netlink subsys (disabled)
    [    0.793262] audit: type=2000 audit(0.744:1): state=initialized audit_enabled=0 res=1
    [    0.800830] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))
    [    0.800835] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.815482] DMA: preallocated 256 KiB pool for atomic allocations
    [    0.835713] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.903744] raid6: int64x1  gen()   446 MB/s
    [    0.971691] raid6: int64x1  xor()   454 MB/s
    [    1.039794] raid6: int64x2  gen()   680 MB/s
    [    1.107776] raid6: int64x2  xor()   600 MB/s
    [    1.175811] raid6: int64x4  gen()   980 MB/s
    [    1.243871] raid6: int64x4  xor()   737 MB/s
    [    1.311944] raid6: int64x8  gen()  1162 MB/s
    [    1.379973] raid6: int64x8  xor()   759 MB/s
    [    1.448026] raid6: neonx1   gen()   735 MB/s
    [    1.516043] raid6: neonx1   xor()   856 MB/s
    [    1.584115] raid6: neonx2   gen()  1127 MB/s
    [    1.652139] raid6: neonx2   xor()  1173 MB/s
    [    1.720221] raid6: neonx4   gen()  1480 MB/s
    [    1.788235] raid6: neonx4   xor()  1418 MB/s
    [    1.856310] raid6: neonx8   gen()  1563 MB/s
    [    1.924339] raid6: neonx8   xor()  1459 MB/s
    [    1.924367] raid6: using algorithm neonx8 gen() 1563 MB/s
    [    1.928302] raid6: .... xor() 1459 MB/s, rmw enabled
    [    1.933193] raid6: using neon recovery algorithm
    [    1.938529] SCSI subsystem initialized
    [    1.941602] usbcore: registered new interface driver usbfs
    [    1.946871] usbcore: registered new interface driver hub
    [    1.952102] usbcore: registered new device driver usb
    [    1.957109] media: Linux media interface: v0.10
    [    1.961531] videodev: Linux video capture interface: v2.00
    [    1.966937] pps_core: LinuxPPS API ver. 1 registered
    [    1.971807] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    1.980827] PTP clock support registered
    [    1.984694] EDAC MC: Ver: 3.0.0
    [    1.988214] zynqmp-ipi-mbox mailbox@ff990400: Probed ZynqMP IPI Mailbox driver.
    [    1.995204] FPGA manager framework
    [    1.998489] Advanced Linux Sound Architecture Driver Initialized.
    [    2.004597] Bluetooth: Core ver 2.22
    [    2.007863] NET: Registered protocol family 31
    [    2.012224] Bluetooth: HCI device and connection manager initialized
    [    2.018490] Bluetooth: HCI socket layer initialized
    [    2.023293] Bluetooth: L2CAP socket layer initialized
    [    2.028285] Bluetooth: SCO socket layer initialized
    [    2.033448] clocksource: Switched to clocksource arch_sys_counter
    [    2.039186] VFS: Disk quotas dquot_6.6.0
    [    2.042981] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [    2.054159] NET: Registered protocol family 2
    [    2.054549] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes)
    [    2.061778] TCP established hash table entries: 32768 (order: 6, 262144 bytes)
    [    2.069058] TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
    [    2.075792] TCP: Hash tables configured (established 32768 bind 32768)
    [    2.081881] UDP hash table entries: 2048 (order: 4, 65536 bytes)
    [    2.087806] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
    [    2.094232] NET: Registered protocol family 1
    [    2.098596] RPC: Registered named UNIX socket transport module.
    [    2.104216] RPC: Registered udp transport module.
    [    2.108847] RPC: Registered tcp transport module.
    [    2.113478] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    2.230425] hw perfevents: no interrupt-affinity property for /pmu, guessing.
    [    2.232053] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
    [    2.240429] Initialise system trusted keyrings
    [    2.244004] workingset: timestamp_bits=62 max_order=20 bucket_order=0
    [    2.251010] NFS: Registering the id_resolver key type
    [    2.255254] Key type id_resolver registered
    [    2.259361] Key type id_legacy registered
    [    2.263314] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    2.269927] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    [    3.363695] NET: Registered protocol family 38
    [    3.425973] Key type asymmetric registered
    [    3.426002] Asymmetric key parser 'x509' registered
    [    3.429286] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
    [    3.436556] io scheduler noop registered
    [    3.440405] io scheduler deadline registered
    [    3.444646] io scheduler cfq registered (default)
    [    3.449244] io scheduler mq-deadline registered
    [    3.453705] io scheduler kyber registered
    [    3.458780] xilinx-vdma 80005000.dma: failed to get axi_aclk (-517)
    [    3.463874] xilinx-vdma 80009000.dma: failed to get axi_aclk (-517)
    [    3.470039] xilinx-vdma 80000000.dma: failed to get axi_aclk (-517)
    [    3.503570] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [    3.507898] cacheinfo: Unable to detect cache hierarchy for CPU 0
    [    3.514909] brd: module loaded
    [    3.518879] loop: module loaded
    [    3.520053] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    3.524085] libphy: Fixed MDIO Bus: probed
    [    3.527995] tun: Universal TUN/TAP device driver, 1.6
    [    3.531902] CAN device driver interface
    [    3.536554] usbcore: registered new interface driver asix
    [    3.540917] usbcore: registered new interface driver ax88179_178a
    [    3.546902] usbcore: registered new interface driver cdc_ether
    [    3.552648] usbcore: registered new interface driver net1080
    [    3.558226] usbcore: registered new interface driver cdc_subset
    [    3.564060] usbcore: registered new interface driver zaurus
    [    3.569561] usbcore: registered new interface driver cdc_ncm
    [    3.575861] usbcore: registered new interface driver uas
    [    3.580375] usbcore: registered new interface driver usb-storage
    [    3.586790] rtc_zynqmp ffa60000.rtc: rtc core: registered ffa60000.rtc as rtc0
    [    3.593452] i2c /dev entries driver
    [    3.598494] usbcore: registered new interface driver uvcvideo
    [    3.602485] USB Video Class driver (1.1.1)
    [    3.607051] Bluetooth: HCI UART driver ver 2.3
    [    3.610895] Bluetooth: HCI UART protocol H4 registered
    [    3.615954] Bluetooth: HCI UART protocol BCSP registered
    [    3.621209] Bluetooth: HCI UART protocol LL registered
    [    3.626249] Bluetooth: HCI UART protocol ATH3K registered
    [    3.631585] Bluetooth: HCI UART protocol Three-wire (H5) registered
    [    3.637790] Bluetooth: HCI UART protocol Intel registered
    [    3.643087] Bluetooth: HCI UART protocol QCA registered
    [    3.648246] usbcore: registered new interface driver bcm203x
    [    3.653823] usbcore: registered new interface driver bpa10x
    [    3.659312] usbcore: registered new interface driver bfusb
    [    3.664718] usbcore: registered new interface driver btusb
    [    3.670097] Bluetooth: Generic Bluetooth SDIO driver ver 0.1
    [    3.675720] usbcore: registered new interface driver ath3k
    [    3.681208] EDAC MC: ECC not enabled
    [    3.684737] EDAC DEVICE0: Giving out device to module edac controller cache_err: DEV edac (POLLED)
    [    3.693613] EDAC DEVICE1: Giving out device to module zynqmp-ocm-edac controller zynqmp_ocm: DEV ff960000.memory-controller (INTERRUPT)
    [    3.705907] sdhci: Secure Digital Host Controller Interface driver
    [    3.711543] sdhci: Copyright(c) Pierre Ossman
    [    3.715832] sdhci-pltfm: SDHCI platform and OF driver helper
    [    3.721688] ledtrig-cpu: registered to indicate activity on CPUs
    [    3.727379] zynqmp_firmware_probe Platform Management API v1.1
    [    3.733084] zynqmp_firmware_probe Trustzone version v1.0
    [    3.760770] zynqmp_clk_mux_get_parent() getparent failed for clock: lpd_wdt, ret = -22
    [    3.763484] alg: No test for xilinx-zynqmp-aes (zynqmp-aes)
    [    3.768584] zynqmp_aes zynqmp_aes: AES Successfully Registered
    [    3.768584] 
    [    3.775997] alg: No test for xilinx-keccak-384 (zynqmp-keccak-384)
    [    3.782070] alg: No test for xilinx-zynqmp-rsa (zynqmp-rsa)
    [    3.787600] usbcore: registered new interface driver usbhid
    [    3.792886] usbhid: USB HID core driver
    [    3.798915] fpga_manager fpga0: Xilinx ZynqMP FPGA Manager registered
    [    3.803380] usbcore: registered new interface driver snd-usb-audio
    [    3.810012] pktgen: Packet Generator for packet performance testing. Version: 2.75
    [    3.816945] Initializing XFRM netlink socket
    [    3.820861] NET: Registered protocol family 10
    [    3.825509] Segment Routing with IPv6
    [    3.828827] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    3.834917] NET: Registered protocol family 17
    [    3.838969] NET: Registered protocol family 15
    [    3.843349] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
    [    3.856159] can: controller area network core (rev 20170425 abi 9)
    [    3.862263] NET: Registered protocol family 29
    [    3.866594] can: raw protocol (rev 20170425)
    [    3.870795] can: broadcast manager protocol (rev 20170425 t)
    [    3.876377] can: netlink gateway (rev 20170425) max_hops=1
    [    3.881835] Bluetooth: RFCOMM TTY layer initialized
    [    3.886594] Bluetooth: RFCOMM socket layer initialized
    [    3.891657] Bluetooth: RFCOMM ver 1.11
    [    3.895340] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [    3.900571] Bluetooth: BNEP filters: protocol multicast
    [    3.905722] Bluetooth: BNEP socket layer initialized
    [    3.910610] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [    3.916447] Bluetooth: HIDP socket layer initialized
    [    3.921456] 9pnet: Installing 9P2000 support
    [    3.925556] Key type dns_resolver registered
    [    3.930171] registered taskstats version 1
    [    3.933785] Loading compiled-in X.509 certificates
    [    3.938830] Btrfs loaded, crc32c=crc32c-generic
    �    3.9�&)�‚�����ͽ�������AM���*������5R��rʪ‚�����ͽ�������AM���*������5R��rʲ�������э��ͽ���ڍ������"�ͅ����5R��rʲ�������э��ͽ���ڍ������"�ͅ����5R��rʲʪ���2�������r��ɥ������AM�
                       сj5%=��™�������BJ�Ł���b�͕}��Ց�����ʚ��JJ́
                                                                   ��Յ����5R�[    3.982612] of-fpga-region fpga-full: FPGA Region probed
    [    3.988447] nwl-pcie fd0e0000.pcie: Link is UP
    [    3.992924] nwl-pcie fd0e0000.pcie: host bridge /amba/pcie@fd0e0000 ranges:
    [    3.999899] nwl-pcie fd0e0000.pcie:   MEM 0xe0000000..0xefffffff -> 0xe0000000
    [    4.007119] nwl-pcie fd0e0000.pcie:   MEM 0x600000000..0x7ffffffff -> 0x600000000
    [    4.014705] nwl-pcie fd0e0000.pcie: PCI host bridge to bus 0000:00
    [    4.020885] pci_bus 0000:00: root bus resource [bus 00-ff]
    [    4.026368] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
    [    4.033234] pci_bus 0000:00: root bus resource [mem 0x600000000-0x7ffffffff pref]
    [    4.042407] pci 0000:01:00.0: 16.000 Gb/s available PCIe bandwidth, limited by 5 GT/s x4 link at 0000:00:00.0 (capable of 31.504 Gb/s with 8 GT/s x4 link)
    [    4.057486] pci 0000:00:00.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff]
    [    4.064274] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0003fff 64bit]
    [    4.071588] pci 0000:00:00.0: PCI bridge to [bus 01-0c]
    [    4.076805] pci 0000:00:00.0:   bridge window [mem 0xe0000000-0xe00fffff]
    [    4.083829] nvme nvme0: pci function 0000:01:00.0
    [    4.088560] pci 0000:00:00.0: enabling device (0000 -> 0002)
    [    4.088661] xilinx-vdma 80005000.dma: Please ensure that IP supports buffer length > 23 bits
    [    4.094233] nvme 0000:01:00.0: enabling device (0000 -> 0002)
    [    4.102797] xilinx-vdma 80005000.dma: Xilinx AXI DMA Engine Driver Probed!!
    [    4.115511] xilinx-vdma 80009000.dma: Xilinx AXI VDMA Engine Driver Probed!!
    [    4.122775] xilinx-vdma 80000000.dma: Xilinx AXI VDMA Engine Driver Probed!!
    [    4.130067] xilinx-zynqmp-dma fd500000.dma: ZynqMP DMA driver Probe success
    [    4.137171] xilinx-zynqmp-dma fd510000.dma: ZynqMP DMA driver Probe success
    [    4.144270] xilinx-zynqmp-dma fd520000.dma: ZynqMP DMA driver Probe success
    [    4.151371] xilinx-zynqmp-dma fd530000.dma: ZynqMP DMA driver Probe success
    [    4.158469] xilinx-zynqmp-dma fd540000.dma: ZynqMP DMA driver Probe success
    [    4.165571] xilinx-zynqmp-dma fd550000.dma: ZynqMP DMA driver Probe success
    [    4.172676] xilinx-zynqmp-dma fd560000.dma: ZynqMP DMA driver Probe success
    [    4.179773] xilinx-zynqmp-dma fd570000.dma: ZynqMP DMA driver Probe success
    [    4.186947] xilinx-zynqmp-dma ffa80000.dma: ZynqMP DMA driver Probe success
    [    4.194044] xilinx-zynqmp-dma ffa90000.dma: ZynqMP DMA driver Probe success
    [    4.201151] xilinx-zynqmp-dma ffaa0000.dma: ZynqMP DMA driver Probe success
    [    4.208254] xilinx-zynqmp-dma ffab0000.dma: ZynqMP DMA driver Probe success
    [    4.215355] xilinx-zynqmp-dma ffac0000.dma: ZynqMP DMA driver Probe success
    [    4.217981] nvme nvme0: missing or invalid SUBNQN field.
    [    4.222464] xilinx-zynqmp-dma ffad0000.dma: ZynqMP DMA driver Probe success
    [    4.227670] nvme nvme0: Shutdown timeout set to 8 seconds
    [    4.234722] xilinx-zynqmp-dma ffae0000.dma: ZynqMP DMA driver Probe success
    [    4.245365] WARNING: CPU: 2 PID: 41 at drivers/pci/msi.c:1259 pci_irq_get_affinity+0x68/0x90
    [    4.247084] xilinx-zynqmp-dma ffaf0000.dma: ZynqMP DMA driver Probe success
    [    4.255334] Modules linked in:
    [    4.255342] CPU: 2 PID: 41 Comm: kworker/u8:3 Not tainted 4.19.0-xilinx-v2019.1 #1
    [    4.255346] Hardware name: xlnx,zynqmp (DT)
    [    4.262418] 80001000.serial: ttyUL1 at MMIO 0x80001000 (irq = 54, base_baud = 0) is a uartlite
    [    4.265331] Workqueue: nvme-reset-wq nvme_reset_work
    [    4.273221] 8000a000.serial: ttyUL2 at MMIO 0x8000a000 (irq = 55, base_baud = 0) is a uartlite
    [    4.277048] pstate: 60000005 (nZCv daif -PAN -UAO)
    [    4.277053] pc : pci_irq_get_affinity+0x68/0x90
    [    4.277058] lr : blk_mq_pci_map_queues+0x44/0xe0
    [    4.277062] sp : ffffff800b333bb0
    [    4.285951] 80004000.serial: ttyUL3 at MMIO 0x80004000 (irq = 56, base_baud = 0) is a uartlite
    [    4.290604] x29: ffffff800b333bb0 x28: 0000000000000000 
    [    4.290609] x27: 0000000000000000 x26: 0000000000000001 
    [    4.290613] x25: ffffffc878455cc0 x24: ffffffc8784e8800 
    [    4.299490] 80008000.serial: ttyUL4 at MMIO 0x80008000 (irq = 57, base_baud = 0) is a uartlite
    [    4.303982] x23: 0000000000000000 x22: ffffffc87bac6008 
    [    4.303986] x21: ffffff800b1487a4 x20: ffffff800b1487a4 
    [    4.303992] x19: 0000000000000000 
    [    4.309117] zynqmp_pll_disable() clock disable failed for apll_int, ret = -13
    [    4.313107] x18: 0000000000000001 
    [    4.316651] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0x68
    [    4.324998] x17: 0000000000000000 x16: 0000000000000000 
    [    4.325002] x15: ffffffffffffffff x14: ffffff800b148648 
    [    4.330311] nand: Micron MT29F32G08ABAAA3W
    [    4.335597] x13: ffffffffffff0000 x12: ffffffffffffffff 
    [    4.335603] x11: 000000000000000f 
    [    4.340910] nand: 4096 MiB, SLC, erase size: 1024 KiB, page size: 8192, OOB size: 448
    [    4.349495] x10: 0000000000000009 
    [    4.349497] x9 : 0000000000000000 x8 : ffffffc87872bb80 
    [    4.356013] Bad block table found at page 524160, version 0x01
    [    4.360094] x7 : 0000000000000000 x6 : 000000000000003f 
    [    4.360098] x5 : 0000000000000040 x4 : 000000000000000f 
    [    4.360104] x3 : 0000000000000000 
    [    4.365567] Bad block table found at page 524032, version 0x01
    [    4.370607] x2 : ffffffc87872bf80 
    [    4.370609] x1 : 0000000000000000 x0 : 0000000000000000 
    [    4.370613] Call trace:
    [    4.370622]  pci_irq_get_affinity+0x68/0x90
    [    4.375900] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0x68
    [    4.380342]  nvme_pci_map_queues+0x24/0x30
    [    4.380347]  blk_mq_update_queue_map+0x64/0x80
    [    4.380353]  blk_mq_alloc_tag_set+0xcc/0x230
    [    4.385649] nand: Micron MT29F32G08ABAAA3W
    [    4.390939]  nvme_reset_work+0xd14/0x1650
    [    4.390944]  process_one_work+0x1e4/0x340
    [    4.390949]  worker_thread+0x248/0x488
    [    4.395033] nand: 4096 MiB, SLC, erase size: 1024 KiB, page size: 8192, OOB size: 448
    [    4.400325]  kthread+0x124/0x128
    [    4.400332]  ret_from_fork+0x10/0x18
    [    4.405071] Bad block table found at page 524160, version 0x01
    [    4.411529] ---[ end trace c7995d59172bdae8 ]---
    [    4.420834]  nvme0n1: p1
    [    4.428473] Bad block table found at page 524032, version 0x01
    [    4.531439] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0x68
    [    4.537784] nand: Micron MT29F32G08ABAAA3W
    [    4.541870] nand: 4096 MiB, SLC, erase size: 1024 KiB, page size: 8192, OOB size: 448
    [    4.551077] Bad block table found at page 524160, version 0x01
    [    4.559331] Bad block table found at page 524032, version 0x01
    [    4.567902] macb ff0b0000.ethernet: Not enabling partial store and forward
    [    4.575323] libphy: MACB_mii_bus: probed
    [    4.653586] Xilinx PCS/PMA PHY ff0b0000.ethernet-ffffffff:09: attached PHY driver [Xilinx PCS/PMA PHY] (mii_bus:phy_addr=ff0b0000.ethernet-ffffffff:09, irq=POLL)
    [    4.668022] macb ff0b0000.ethernet eth0: Cadence GEM rev 0x50070106 at 0xff0b0000 irq 30 (00:0a:35:00:22:01)
    [    4.678229] xilinx-axipmon ffa00000.perf-monitor: Probed Xilinx APM
    [    4.684781] xilinx-axipmon fd0b0000.perf-monitor: Probed Xilinx APM
    [    4.691269] xilinx-axipmon fd490000.perf-monitor: Probed Xilinx APM
    [    4.697750] xilinx-axipmon ffa10000.perf-monitor: Probed Xilinx APM
    [    4.704440] cdns-i2c ff020000.i2c: 400 kHz mmio ff020000 irq 32
    [    4.710937] pca954x 1-0074: probe failed
    [    4.714881] cdns-i2c ff030000.i2c: 400 kHz mmio ff030000 irq 33
    [    4.721116] cdns-wdt fd4d0000.watchdog: Xilinx Watchdog Timer at (____ptrval____) with timeout 60s
    [    4.730286] cdns-wdt ff150000.watchdog: Xilinx Watchdog Timer at (____ptrval____) with timeout 10s
    [    4.739538] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 1199880 KHz
    [    4.746984] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 1199999 KHz
    [    4.757826] rtc_zynqmp ffa60000.rtc: setting system clock to 1970-01-13 03:31:41 UTC (1049501)
    [    4.766431] of_cfs_init
    [    4.768878] of_cfs_init: OK
    [    4.771819] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [    4.916259] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
    [    4.922796] clk: Not disabling unused clocks
    [    4.927062] ALSA device list:
    [    4.930016]   No soundcards found.
    [    4.933445] Warning: unable to open an initial console.
    [    4.933479] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
    [    4.947268] cfg80211: failed to load regulatory.db
    [    4.949042] Freeing unused kernel memory: 33600K
    [    4.969452] Run /init as init process
    [    5.665221] udevd[1796]: starting version 3.2.5
    [    5.670046] random: udevd: uninitialized urandom read (16 bytes read)
    [    5.676572] random: udevd: uninitialized urandom read (16 bytes read)
    [    5.683065] random: udevd: uninitialized urandom read (16 bytes read)
    [    5.693633] udevd[1797]: starting eudev-3.2.5
    [    6.059187] EXT2-fs (nvme0n1p1): warning: mounting unchecked fs, running e2fsck is recommended
    [    6.498229] pps pps0: new PPS source ptp0
    [    6.502252] macb ff0b0000.ethernet: gem-ptp-timer ptp clock registered.
    [    6.508962] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   15.696367] urandom_read: 5 callbacks suppressed
    [   15.696372] random: dropbearkey: uninitialized urandom read (32 bytes read)
    [   15.710610] random: dropbearkey: uninitialized urandom read (32 bytes read)
    
    PetaLinux 2019.1 petalinux-lincs /dev/ttyPS0
    
    petalinux-lincs login: root
    Password: 
    root@petalinux-lincs:~# ifconfig -a
    eth0      Link encap:Ethernet  HWaddr 00:0A:35:00:22:01  
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
              Interrupt:30 
    
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:2 errors:0 dropped:0 overruns:0 frame:0
              TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:140 (140.0 B)  TX bytes:140 (140.0 B)
    
    sit0      Link encap:IPv6-in-IPv4  
              NOARP  MTU:1480  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
    
    root@petalinux-lincs:~# ethtool -s eth0 speed 1000 duplex full autoneg off
    root@petalinux-lincs:~# ethtool eth0
    Settings for eth0:
    	Supported ports: [ TP MII ]
    	Supported link modes:   10baseT/Half 10baseT/Full 
    	                        100baseT/Half 100baseT/Full 
    	                        1000baseT/Half 1000baseT/Full 
    	Supported pause frame use: No
    	Supports auto-negotiation: Yes
    	Supported FEC modes: Not reported
    	Advertised link modes:  1000baseT/Full 
    	Advertised pause frame use: No
    	Advertised auto-negotiation: No
    	Advertised FEC modes: Not reported
    	Speed: 1000Mb/s
    	Duplex: Full
    	Port: MII
    	PHYAD: 9
    	Transceiver: internal
    	Auto-negotiation: off
    	Link detected: no
    root@petalinux-lincs:~# ethtool -s eth0 speed 1000 duplex full autoneg off
    root@petalinux-lincs:~# ethtool eth0
    Settings for eth0:
    	Supported ports: [ TP MII ]
    	Supported link modes:   10baseT/Half 10baseT/Full 
    	                        100baseT/Half 100baseT/Full 
    	                        1000baseT/Half 1000baseT/Full 
    	Supported pause frame use: No
    	Supports auto-negotiation: Yes
    	Supported FEC modes: Not reported
    	Advertised link modes:  1000baseT/Full 
    	Advertised pause frame use: No
    	Advertised auto-negotiation: No
    	Advertised FEC modes: Not reported
    	Speed: 1000Mb/s
    	Duplex: Full
    	Port: MII
    	PHYAD: 9
    	Transceiver: internal
    	Auto-negotiation: off
    	Link detected: no
    root@petalinux-lincs:~# ifconfig eth0 down
    [   78.409896] macb ff0b0000.ethernet: gem-ptp-timer ptp clock unregistered.
    root@petalinux-lincs:~# ifconfig eth0 192.168.1.20 netmask 255.255.255.0 up
    [   95.854836] pps pps0: new PPS source ptp0
    [   95.858872] macb ff0b0000.ethernet: gem-ptp-timer ptp clock registered.
    [   95.865613] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    root@petalinux-lincs:~# dmesg | grep PHY
    [    4.653586] Xilinx PCS/PMA PHY ff0b0000.ethernet-ffffffff:09: attached PHY driver [Xilinx PCS/PMA PHY] (mii_bus:phy_addr=ff0b0[  110.025459] random: fast init done
    000.ethernet-ffffffff:09, irq=POLL)
    root@petalinux-lincs:~# dmesg | grep probe
    [    3.524085] libphy: Fixed MDIO Bus: probed
    [    3.727379] zynqmp_firmware_probe Platform Management API v1.1
    [    3.733084] zynqmp_firmware_probe Trustzone version v1.0
    [    3.982612] of-fpga-region fpga-full: FPGA Region probed
    [    4.575323] libphy: MACB_mii_bus: probed
    [    4.710937] pca954x 1-0074: probe failed
    root@petalinux-lincs:~# ifconfig eth0 down
    [  142.566002] macb ff0b0000.ethernet: gem-ptp-timer ptp clock unregistered.
    root@petalinux-lincs:~# devmem 0xff0b0034
    0x64820140
    root@petalinux-lincs:~# devmem 0xff0b0000
    0x00100010
    root@petalinux-lincs:~# devmem 0xFF0B0000
    0x00100010
    root@petalinux-lincs:~# devmem 0xFF0B0004
    0x012EA048
    root@petalinux-lincs:~# devmem 0xFF0B0008
    0x00000006
    root@petalinux-lincs:~# devmem 0xFF0B0008 32 0x4
    root@petalinux-lincs:~# devmem 0xFF0B0008
    0x00000006
    root@petalinux-lincs:~# devmem 0xFF0B0008
    0x00000006
    root@petalinux-lincs:~# devmem 0xFF0B0008
    0x00000006
    root@petalinux-lincs:~# devmem 0xFF0B0034
    0x64820140
    root@petalinux-lincs:~# devmem 0xFF0B0034 32 0x0
    root@petalinux-lincs:~# devmem 0xFF0B0034
    0x00000000
    root@petalinux-lincs:~# devemem 0xFF0B0208
    -sh: devemem: command not found
    root@petalinux-lincs:~# devmem 0xFF0B0208
    0x00004007
    root@petalinux-lincs:~# demsg | grep PHY
    -sh: demsg: command not found
    root@petalinux-lincs:~# dmesg | grep PHY
    [    4.653586] Xilinx PCS/PMA PHY ff0b0000.ethernet-ffffffff:09: attached PHY driver [Xilinx PCS/PMA PHY] (mii_bus:phy_addr=ff0b0000.ethernet-ffffffff:09, irq=POLL)
    root@petalinux-lincs:~# 
    
    

  • Hello,

    Thank you for providing the information. I will need a couple days to research this issue based on the provided data. I look to have a response by latest Wednesday EoD.

    Sincerely,

    Gerome

  • Hi Amy,

    Just double checking, it looks like you set your own IP address to 191.168.1.20 while you try to ping 192.168.1.20. I did not see where you were able to ping yourself. Can you confirm you can ping yourself, and what IP address is your target? In addition, what is your link partner?

    Sincerely,

    Gerome

  • hi Gerome,

    Yes, the device can ping itself, but cannot ping others.

    My setup as: Board (192.168.1.20)has Ethernet <--> Connect to PC (192.168.1.10)

    Thanks!

  • Hi Amy,

    Are there any other PHYs inside your system? I am asking as the PHY ID registers 0x2 and 0x3 are not lining up with our read only values, indicating you are not checking on the DP83867.

    Sincerely,
    Gerome

  • Hi Gerome,

    No other PHY in my system. Only TI DP83867E PHY on the system!

    Thanks!

  • Hi Amy,

    What device is connected to PHY ID 0x0? I noticed in the MII info from your initial answer that it has the same configurations as PHY ID 0x9.

    Sincerely,

    Gerome

  • hi Gerome,

    Nothing is connect to PHY ID 0x0. Not sure why I see it when do mii info. I looked at the TI SNLA258A 4 Level strap device configuration ("https://www.ti.com/lit/an/snla258a/snla258a.pdf?ts=1610492298832&ref_url=https%253A%252F%252Fwww.google.com%252F

    So my custom board is setup up with the following straps:

    We use 4 wired SGMII mode: RX_D0/SGMII_COP, RX_D1/SGMII_CON, RX_D2/SGMII_SOP, and RX_D3/SGMII_SON. Connect to the pull up register 4.02 ohms

    RX_CTRL = 0 (mode 3)

    SGMII Enable = 1 (mode 2)

    PHY address = 15 and change device tree. When Linux come up, it still cannot ping others. It able to ping itself.

    I attached log here.

    ti_phy_testlog.log
    Release 2019.1   Jan 12 2021  -  22:19:58
    Programming SI570 for 125MHZ ref clock 
    
    Hello IIC SI5338 and SI570 Clock Test.
    
    IIC Switch Config Read Value 0x8
    SI570 0x89 Read Failed
    clock programming failed
    
    Progarmming SI570 with 125MHZ ref clock successfull 
    
    NOTICE:  ATF running on XCZU9EG/silicon v4/RTL5.1 at 0xfffea000
    NOTICE:  BL31: Secure code at 0x60000000
    NOTICE:  BL31: Non secure code at 0x8000000
    NOTICE:  BL31: v2.0(release):xilinx-v2018.3-720-g80d1c790
    NOTICE:  BL31: Built : 22:19:25, Jan 12 2021
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
    [    0.000000] Linux version 4.19.0-xilinx-v2019.1 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Tue Jan 12 22:18:40 UTC 2021
    [    0.000000] Machine model: xlnx,zynqmp
    [    0.000000] earlycon: cdns0 at MMIO 0x00000000ff000000 (options '115200n8')
    [    0.000000] bootconsole [cdns0] enabled
    [    0.000000] efi: Getting EFI parameters from FDT:
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 256 MiB at 0x000000006fc00000
    [    0.000000] psci: probing for conduit method from DT.
    [    0.000000] psci: PSCIv1.1 detected in firmware.
    [    0.000000] psci: Using standard PSCI v0.2 function IDs
    [    0.000000] psci: MIGRATE_INFO_TYPE not supported.
    [    0.000000] psci: SMC Calling Convention v1.1
    [    0.000000] random: get_random_bytes called from start_kernel+0x94/0x3f8 with crng_init=0
    [    0.000000] percpu: Embedded 22 pages/cpu @(____ptrval____) s53016 r8192 d28904 u90112
    [    0.000000] Detected VIPT I-cache on CPU0
    [    0.000000] CPU features: enabling workaround for ARM erratum 845719
    [    0.000000] Speculative Store Bypass Disable mitigation not required
    [    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1033987
    [    0.000000] Kernel command line: earlycon console=ttyPS0,115200 clk_ignore_unused
    [    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
    [    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
    [    0.000000] software IO TLB: mapped [mem 0x6bc00000-0x6fc00000] (64MB)
    [    0.000000] Memory: 3749896K/4193280K available (10812K kernel code, 636K rwdata, 5432K rodata, 33600K init, 316K bss, 181240K reserved, 262144K cma-reserved)
    [    0.000000] rcu: Hierarchical RCU implementation.
    [    0.000000] rcu: 	RCU event tracing is enabled.
    [    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [    0.000000] GIC: Adjusting CPU interface base to 0x00000000f902f000
    [    0.000000] GIC: Using split EOI/Deactivate mode
    [    0.000000] arch_timer: cp15 timer(s) running at 99.99MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x170f8de2d3, max_idle_ns: 440795206112 ns
    [    0.000003] sched_clock: 56 bits at 99MHz, resolution 10ns, wraps every 4398046511101ns
    [    0.008158] Console: colour dummy device 80x25
    [    0.012293] Calibrating delay loop (skipped), value calculated using timer frequency.. 199.98 BogoMIPS (lpj=399960)
    [    0.022573] pid_max: default: 32768 minimum: 301
    [    0.027231] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.033739] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.041500] ASID allocator initialised with 32768 entries
    [    0.046134] rcu: Hierarchical SRCU implementation.
    [    0.051081] EFI services will not be available.
    [    0.055381] smp: Bringing up secondary CPUs ...
    [    0.241369] Detected VIPT I-cache on CPU1
    [    0.241398] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
    [    0.389207] Detected VIPT I-cache on CPU2
    [    0.389227] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
    [    0.541718] Detected VIPT I-cache on CPU3
    [    0.541737] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
    [    0.541782] smp: Brought up 1 node, 4 CPUs
    [    0.571402] SMP: Total of 4 processors activated.
    [    0.576038] CPU features: detected: 32-bit EL0 Support
    [    0.582905] CPU: All CPU(s) started at EL2
    [    0.585143] alternatives: patching kernel code
    [    0.590416] devtmpfs: initialized
    [    0.597316] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.602392] futex hash table entries: 1024 (order: 4, 65536 bytes)
    [    0.614042] xor: measuring software checksum speed
    [    0.652543]    8regs     :  2374.000 MB/sec
    [    0.692573]    8regs_prefetch:  2051.000 MB/sec
    [    0.732603]    32regs    :  2724.000 MB/sec
    [    0.772633]    32regs_prefetch:  2308.000 MB/sec
    [    0.772663] xor: using function: 32regs (2724.000 MB/sec)
    [    0.776946] pinctrl core: initialized pinctrl subsystem
    [    0.782707] NET: Registered protocol family 16
    [    0.786720] audit: initializing netlink subsys (disabled)
    [    0.791848] audit: type=2000 audit(0.744:1): state=initialized audit_enabled=0 res=1
    [    0.799422] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))
    [    0.799427] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.814080] DMA: preallocated 256 KiB pool for atomic allocations
    [    0.834597] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.902261] raid6: int64x1  gen()   445 MB/s
    [    0.970302] raid6: int64x1  xor()   453 MB/s
    [    1.038398] raid6: int64x2  gen()   680 MB/s
    [    1.106361] raid6: int64x2  xor()   600 MB/s
    [    1.174460] raid6: int64x4  gen()   981 MB/s
    [    1.242458] raid6: int64x4  xor()   737 MB/s
    [    1.310534] raid6: int64x8  gen()  1162 MB/s
    [    1.378570] raid6: int64x8  xor()   759 MB/s
    [    1.446660] raid6: neonx1   gen()   736 MB/s
    [    1.514632] raid6: neonx1   xor()   880 MB/s
    [    1.582724] raid6: neonx2   gen()  1128 MB/s
    [    1.650734] raid6: neonx2   xor()  1173 MB/s
    [    1.718791] raid6: neonx4   gen()  1480 MB/s
    [    1.786820] raid6: neonx4   xor()  1418 MB/s
    [    1.854876] raid6: neonx8   gen()  1562 MB/s
    [    1.922908] raid6: neonx8   xor()  1459 MB/s
    [    1.922936] raid6: using algorithm neonx8 gen() 1562 MB/s
    [    1.926869] raid6: .... xor() 1459 MB/s, rmw enabled
    [    1.931760] raid6: using neon recovery algorithm
    [    1.937124] SCSI subsystem initialized
    [    1.940173] usbcore: registered new interface driver usbfs
    [    1.945438] usbcore: registered new interface driver hub
    [    1.950669] usbcore: registered new device driver usb
    [    1.955677] media: Linux media interface: v0.10
    [    1.960102] videodev: Linux video capture interface: v2.00
    [    1.965505] pps_core: LinuxPPS API ver. 1 registered
    [    1.970374] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    1.979394] PTP clock support registered
    [    1.983261] EDAC MC: Ver: 3.0.0
    [    1.986747] zynqmp-ipi-mbox mailbox@ff990400: Probed ZynqMP IPI Mailbox driver.
    [    1.993827] FPGA manager framework
    [    1.997051] Advanced Linux Sound Architecture Driver Initialized.
    [    2.003166] Bluetooth: Core ver 2.22
    [    2.006427] NET: Registered protocol family 31
    [    2.010793] Bluetooth: HCI device and connection manager initialized
    [    2.017057] Bluetooth: HCI socket layer initialized
    [    2.021861] Bluetooth: L2CAP socket layer initialized
    [    2.026852] Bluetooth: SCO socket layer initialized
    [    2.031929] clocksource: Switched to clocksource arch_sys_counter
    [    2.037755] VFS: Disk quotas dquot_6.6.0
    [    2.041552] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [    2.052590] NET: Registered protocol family 2
    [    2.052981] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes)
    [    2.060346] TCP established hash table entries: 32768 (order: 6, 262144 bytes)
    [    2.067624] TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
    [    2.074363] TCP: Hash tables configured (established 32768 bind 32768)
    [    2.080445] UDP hash table entries: 2048 (order: 4, 65536 bytes)
    [    2.086376] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
    [    2.092803] NET: Registered protocol family 1
    [    2.097166] RPC: Registered named UNIX socket transport module.
    [    2.102782] RPC: Registered udp transport module.
    [    2.107411] RPC: Registered tcp transport module.
    [    2.112044] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    2.228913] hw perfevents: no interrupt-affinity property for /pmu, guessing.
    [    2.230543] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
    [    2.239001] Initialise system trusted keyrings
    [    2.242487] workingset: timestamp_bits=62 max_order=20 bucket_order=0
    [    2.249484] NFS: Registering the id_resolver key type
    [    2.253742] Key type id_resolver registered
    [    2.257851] Key type id_legacy registered
    [    2.261803] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    2.268417] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    [    3.362259] NET: Registered protocol family 38
    [    3.422998] Key type asymmetric registered
    [    3.423027] Asymmetric key parser 'x509' registered
    [    3.426320] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
    [    3.433568] io scheduler noop registered
    [    3.437427] io scheduler deadline registered
    [    3.441666] io scheduler cfq registered (default)
    [    3.446266] io scheduler mq-deadline registered
    [    3.450727] io scheduler kyber registered
    [    3.455835] xilinx-vdma 80005000.dma: failed to get axi_aclk (-517)
    [    3.460895] xilinx-vdma 80009000.dma: failed to get axi_aclk (-517)
    [    3.467061] xilinx-vdma 80000000.dma: failed to get axi_aclk (-517)
    [    3.500469] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
    [    3.505142] cacheinfo: Unable to detect cache hierarchy for CPU 0
    [    3.511829] brd: module loaded
    [    3.515747] loop: module loaded
    [    3.517072] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    3.520987] libphy: Fixed MDIO Bus: probed
    [    3.524878] tun: Universal TUN/TAP device driver, 1.6
    [    3.528767] CAN device driver interface
    [    3.533509] usbcore: registered new interface driver asix
    [    3.537778] usbcore: registered new interface driver ax88179_178a
    [    3.543768] usbcore: registered new interface driver cdc_ether
    [    3.549522] usbcore: registered new interface driver net1080
    [    3.555094] usbcore: registered new interface driver cdc_subset
    [    3.560928] usbcore: registered new interface driver zaurus
    [    3.566431] usbcore: registered new interface driver cdc_ncm
    [    3.572791] usbcore: registered new interface driver uas
    [    3.577253] usbcore: registered new interface driver usb-storage
    [    3.583664] rtc_zynqmp ffa60000.rtc: rtc core: registered ffa60000.rtc as rtc0
    [    3.590315] i2c /dev entries driver
    [    3.595474] usbcore: registered new interface driver uvcvideo
    [    3.599350] USB Video Class driver (1.1.1)
    [    3.603965] Bluetooth: HCI UART driver ver 2.3
    [    3.607753] Bluetooth: HCI UART protocol H4 registered
    [    3.612822] Bluetooth: HCI UART protocol BCSP registered
    [    3.618075] Bluetooth: HCI UART protocol LL registered
    [    3.623117] Bluetooth: HCI UART protocol ATH3K registered
    [    3.628456] Bluetooth: HCI UART protocol Three-wire (H5) registered
    [    3.634658] Bluetooth: HCI UART protocol Intel registered
    [    3.639953] Bluetooth: HCI UART protocol QCA registered
    [    3.645116] usbcore: registered new interface driver bcm203x
    [    3.650689] usbcore: registered new interface driver bpa10x
    [    3.656182] usbcore: registered new interface driver bfusb
    [    3.661585] usbcore: registered new interface driver btusb
    [    3.666965] Bluetooth: Generic Bluetooth SDIO driver ver 0.1
    [    3.672587] usbcore: registered new interface driver ath3k
    [    3.678079] EDAC MC: ECC not enabled
    [    3.681607] EDAC DEVICE0: Giving out device to module edac controller cache_err: DEV edac (POLLED)
    [    3.690490] EDAC DEVICE1: Giving out device to module zynqmp-ocm-edac controller zynqmp_ocm: DEV ff960000.memory-controller (INTERRUPT)
    [    3.702792] sdhci: Secure Digital Host Controller Interface driver
    [    3.708412] sdhci: Copyright(c) Pierre Ossman
    [    3.712700] sdhci-pltfm: SDHCI platform and OF driver helper
    [    3.718561] ledtrig-cpu: registered to indicate activity on CPUs
    [    3.724250] zynqmp_firmware_probe Platform Management API v1.1
    [    3.729951] zynqmp_firmware_probe Trustzone version v1.0
    [    3.757785] zynqmp_clk_mux_get_parent() getparent failed for clock: lpd_wdt, ret = -22
    [    3.760508] alg: No test for xilinx-zynqmp-aes (zynqmp-aes)
    [    3.765541] zynqmp_aes zynqmp_aes: AES Successfully Registered
    [    3.765541] 
    
    [    3.772998] alg: No test for xilinx-keccak-384 (zynqmp-keccak-384)
    [    3.779083] alg: No test for xilinx-zynqmp-rsa (zynqmp-rsa)
    [    3.784619] usbcore: registered new interface driver usbhid
    [    3.789898] usbhid: USB HID core driver
    [    3.795977] fpga_manager fpga0: Xilinx ZynqMP FPGA Manager registered
    [    3.800422] usbcore: registered new interface driver snd-usb-audio
    [    3.807051] pktgen: Packet Generator for packet performance testing. Version: 2.75
    [    3.813964] Initializing XFRM netlink socket
    [    3.817862] NET: Registered protocol family 10
    [    3.822524] Segment Routing with IPv6
    [    3.825848] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    3.831945] NET: Registered protocol family 17
    [    3.835984] NET: Registered protocol family 15
    [    3.840361] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
    [    3.853186] can: controller area network core (rev 20170425 abi 9)
    [    3.859258] NET: Registered protocol family 29
    [    3.863606] can: raw protocol (rev 20170425)
    [    3.867808] can: broadcast manager protocol (rev 20170425 t)
    [    3.873388] can: netlink gateway (rev 20170425) max_hops=1
    [    3.878849] Bluetooth: RFCOMM TTY layer initialized
    [    3.883604] Bluetooth: RFCOMM socket layer initialized
    [    3.888673] Bluetooth: RFCOMM ver 1.11
    [    3.892356] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [    3.897583] Bluetooth: BNEP filters: protocol multicast
    [    3.902735] Bluetooth: BNEP socket layer initialized
    [    3.907623] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [    3.913460] Bluetooth: HIDP socket layer initialized
    [    3.918465] 9pnet: Installing 9P2000 support
    [    3.922571] Key type dns_resolver registered
    [    3.927149] registered taskstats version 1
    [    3.930798] Loading compiled-in X.509 certificates
    [    3.935840] Btrfs loaded, crc32c=crc32c-generic
    [    3.946216] ff000000.serial: ttyPS0 at MMIO 0xff000000 (irq = 45, base_baud = 6249375) is a xuartps
    ��rʪ�������ͽ�������AM��*������5R��rʪ�������ͽ�������AM��*������5R��rʪ²�����э��ͽ���ڍ�����"�ͅ����5R��rʪ²�����э��ͽ���ڍ�����"�ͅ����5R��rʲ�����2�������r��ɥ������AM�
    сj5%=��™�������BJ�Ł���b�͕}��Ց�����ʚ��JJ́
    ��Յ����5R�[    3.979622] of-fpga-region fpga-full: FPGA Region probed
    [    3.985490] nwl-pcie fd0e0000.pcie: Link is UP
    [    3.989958] nwl-pcie fd0e0000.pcie: host bridge /amba/pcie@fd0e0000 ranges:
    [    3.996928] nwl-pcie fd0e0000.pcie:   MEM 0xe0000000..0xefffffff -> 0xe0000000
    [    4.004148] nwl-pcie fd0e0000.pcie:   MEM 0x600000000..0x7ffffffff -> 0x600000000
    [    4.011734] nwl-pcie fd0e0000.pcie: PCI host bridge to bus 0000:00
    [    4.017914] pci_bus 0000:00: root bus resource [bus 00-ff]
    [    4.023400] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
    [    4.030273] pci_bus 0000:00: root bus resource [mem 0x600000000-0x7ffffffff pref]
    [    4.039571] pci 0000:01:00.0: 16.000 Gb/s available PCIe bandwidth, limited by 5 GT/s x4 link at 0000:00:00.0 (capable of 31.504 Gb/s with 8 GT/s x4 link)
    [    4.054789] pci 0000:00:00.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff]
    [    4.061573] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0003fff 64bit]
    [    4.068886] pci 0000:00:00.0: PCI bridge to [bus 01-0c]
    [    4.074104] pci 0000:00:00.0:   bridge window [mem 0xe0000000-0xe00fffff]
    [    4.081134] nvme nvme0: pci function 0000:01:00.0
    [    4.085857] pci 0000:00:00.0: enabling device (0000 -> 0002)
    [    4.085962] xilinx-vdma 80005000.dma: Please ensure that IP supports buffer length > 23 bits
    [    4.091524] nvme 0000:01:00.0: enabling device (0000 -> 0002)
    [    4.100092] xilinx-vdma 80005000.dma: Xilinx AXI DMA Engine Driver Probed!!
    [    4.112814] xilinx-vdma 80009000.dma: Xilinx AXI VDMA Engine Driver Probed!!
    [    4.120100] xilinx-vdma 80000000.dma: Xilinx AXI VDMA Engine Driver Probed!!
    [    4.127392] xilinx-zynqmp-dma fd500000.dma: ZynqMP DMA driver Probe success
    [    4.134495] xilinx-zynqmp-dma fd510000.dma: ZynqMP DMA driver Probe success
    [    4.141591] xilinx-zynqmp-dma fd520000.dma: ZynqMP DMA driver Probe success
    [    4.148694] xilinx-zynqmp-dma fd530000.dma: ZynqMP DMA driver Probe success
    [    4.155799] xilinx-zynqmp-dma fd540000.dma: ZynqMP DMA driver Probe success
    [    4.162897] xilinx-zynqmp-dma fd550000.dma: ZynqMP DMA driver Probe success
    [    4.169998] xilinx-zynqmp-dma fd560000.dma: ZynqMP DMA driver Probe success
    [    4.177099] xilinx-zynqmp-dma fd570000.dma: ZynqMP DMA driver Probe success
    [    4.184274] xilinx-zynqmp-dma ffa80000.dma: ZynqMP DMA driver Probe success
    [    4.191381] xilinx-zynqmp-dma ffa90000.dma: ZynqMP DMA driver Probe success
    [    4.198476] xilinx-zynqmp-dma ffaa0000.dma: ZynqMP DMA driver Probe success
    [    4.205583] xilinx-zynqmp-dma ffab0000.dma: ZynqMP DMA driver Probe success
    [    4.212682] nvme nvme0: missing or invalid SUBNQN field.
    [    4.212700] xilinx-zynqmp-dma ffac0000.dma: ZynqMP DMA driver Probe success
    [    4.218048] nvme nvme0: Shutdown timeout set to 8 seconds
    [    4.225093] xilinx-zynqmp-dma ffad0000.dma: ZynqMP DMA driver Probe success
    [    4.237433] xilinx-zynqmp-dma ffae0000.dma: ZynqMP DMA driver Probe success
    [    4.244546] xilinx-zynqmp-dma ffaf0000.dma: ZynqMP DMA driver Probe success
    [    4.251636] 80001000.serial: ttyUL1 at MMIO 0x80001000 (irq = 54, base_baud = 0) is a uartlite
    [    4.260302] WARNING: CPU: 3 PID: 426 at drivers/pci/msi.c:1259 pci_irq_get_affinity+0x68/0x90
    [    4.260584] 8000a000.serial: ttyUL2 at MMIO 0x8000a000 (irq = 55, base_baud = 0) is a uartlite
    [    4.268815] Modules linked in:
    [    4.268822] CPU: 3 PID: 426 Comm: kworker/u8:4 Not tainted 4.19.0-xilinx-v2019.1 #1
    [    4.268824] Hardware name: xlnx,zynqmp (DT)
    [    4.268831] Workqueue: nvme-reset-wq nvme_reset_work
    [    4.277708] 80004000.serial: ttyUL3 at MMIO 0x80004000 (irq = 56, base_baud = 0) is a uartlite
    [    4.280459] pstate: 60000005 (nZCv daif -PAN -UAO)
    [    4.280463] pc : pci_irq_get_affinity+0x68/0x90
    [    4.280471] lr : blk_mq_pci_map_queues+0x44/0xe0
    [    4.288389] 80008000.serial: ttyUL4 at MMIO 0x80008000 (irq = 57, base_baud = 0) is a uartlite
    [    4.292270] sp : ffffff800b333bb0
    [    4.292272] x29: ffffff800b333bb0 x28: 0000000000000000 
    [    4.292278] x27: 0000000000000000 
    [    4.298475] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0x68
    [    4.305821] x26: 0000000000000001 
    [    4.305824] x25: ffffffc87adfd0c0 x24: ffffffc8793e6000 
    [    4.305828] x23: 0000000000000000 x22: ffffffc87bb9f008 
    [    4.310611] nand: Micron MT29F32G08ABAAA3W
    [    4.315118] x21: ffffff800b1487a4 x20: ffffff800b1487a4 
    [    4.315124] x19: 0000000000000000 
    [    4.319734] nand: 4096 MiB, SLC, erase size: 1024 KiB, page size: 8192, OOB size: 448
    [    4.328322] x18: 0000000000000001 
    [    4.328324] x17: 0000000000000000 x16: 0000000000000000 
    [    4.332830] Bad block table found at page 524160, version 0x01
    [    4.336916] x15: ffffffffffffffff x14: ffffff800b148648 
    [    4.336923] x13: ffffffffffff0000 
    [    4.342360] Bad block table found at page 524032, version 0x01
    [    4.346647] x12: ffffffffffffffff 
    [    4.346650] x11: 000000000000000f x10: 0000000000000009 
    [    4.351899] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0x68
    [    4.355337] x9 : 0000000000000000 x8 : ffffffc87905eb00 
    [    4.355340] x7 : 0000000000000000 x6 : 000000000000003f 
    [    4.360647] nand: Micron MT29F32G08ABAAA3W
    [    4.364721] x5 : 0000000000000040 x4 : 000000000000000f 
    [    4.370021] nand: 4096 MiB, SLC, erase size: 1024 KiB, page size: 8192, OOB size: 448
    [    4.373401] x3 : 0000000000000000 x2 : ffffffc878554c00 
    [    4.373408] x1 : 0000000000000000 
    [    4.382549] Bad block table found at page 524160, version 0x01
    [    4.384600] x0 : 0000000000000000 
    [    4.384602] Call trace:
    [    4.384611]  pci_irq_get_affinity+0x68/0x90
    [    4.392310] Bad block table found at page 524032, version 0x01
    [    4.395726]  nvme_pci_map_queues+0x24/0x30
    [    4.402958] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0x68
    [    4.404404]  blk_mq_update_queue_map+0x64/0x80
    [    4.404408]  blk_mq_alloc_tag_set+0xcc/0x230
    [    4.404414]  nvme_reset_work+0xd14/0x1650
    [    4.410231] nand: Micron MT29F32G08ABAAA3W
    [    4.413615]  process_one_work+0x1e4/0x340
    [    4.413620]  worker_thread+0x248/0x488
    [    4.418921] nand: 4096 MiB, SLC, erase size: 1024 KiB, page size: 8192, OOB size: 448
    [    4.425256]  kthread+0x124/0x128
    [    4.425262]  ret_from_fork+0x10/0x18
    [    4.431889] Bad block table found at page 524160, version 0x01
    [    4.435853] ---[ end trace 6cecd60955bb0519 ]---
    [    4.471048]  nvme0n1: p1
    [    4.473545] zynqmp_pll_disable() clock disable failed for apll_int, ret = -13
    [    4.555276] Bad block table found at page 524032, version 0x01
    [    4.563794] macb ff0b0000.ethernet: Not enabling partial store and forward
    [    4.571214] libphy: MACB_mii_bus: probed
    [    4.578492] Generic PHY ff0b0000.ethernet-ffffffff:0f: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ff0b0000.ethernet-ffffffff:0f, irq=POLL)
    [    4.591709] macb ff0b0000.ethernet eth0: Cadence GEM rev 0x50070106 at 0xff0b0000 irq 30 (00:0a:35:00:22:01)
    [    4.601931] xilinx-axipmon ffa00000.perf-monitor: Probed Xilinx APM
    [    4.608501] xilinx-axipmon fd0b0000.perf-monitor: Probed Xilinx APM
    [    4.614994] xilinx-axipmon fd490000.perf-monitor: Probed Xilinx APM
    [    4.621483] xilinx-axipmon ffa10000.perf-monitor: Probed Xilinx APM
    [    4.628189] cdns-i2c ff020000.i2c: 400 kHz mmio ff020000 irq 32
    [    4.634528] cdns-i2c ff030000.i2c: 400 kHz mmio ff030000 irq 33
    [    4.640846] cdns-wdt fd4d0000.watchdog: Xilinx Watchdog Timer at (____ptrval____) with timeout 60s
    [    4.650036] cdns-wdt ff150000.watchdog: Xilinx Watchdog Timer at (____ptrval____) with timeout 10s
    [    4.659285] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 1199880 KHz
    [    4.666728] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 1199999 KHz
    [    4.677569] rtc_zynqmp ffa60000.rtc: setting system clock to 1970-01-13 03:31:42 UTC (1049502)
    [    4.686178] of_cfs_init
    [    4.688637] of_cfs_init: OK
    [    4.691569] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [    4.835803] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
    [    4.842332] clk: Not disabling unused clocks
    [    4.846598] ALSA device list:
    [    4.849552]   No soundcards found.
    [    4.853010] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
    [    4.855930] Warning: unable to open an initial console.
    [    4.861617] cfg80211: failed to load regulatory.db
    [    4.877214] Freeing unused kernel memory: 33600K
    [    4.895958] Run /init as init process
    [    5.591518] udevd[1796]: starting version 3.2.5
    [    5.596401] random: udevd: uninitialized urandom read (16 bytes read)
    [    5.602895] random: udevd: uninitialized urandom read (16 bytes read)
    [    5.609391] random: udevd: uninitialized urandom read (16 bytes read)
    [    5.619955] udevd[1797]: starting eudev-3.2.5
    [    6.012285] EXT2-fs (nvme0n1p1): warning: mounting unchecked fs, running e2fsck is recommended
    [    6.450591] pps pps0: new PPS source ptp0
    [    6.454633] macb ff0b0000.ethernet: gem-ptp-timer ptp clock registered.
    [    6.461335] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [   15.642919] urandom_read: 5 callbacks suppressed
    [   15.642923] random: dropbearkey: uninitialized urandom read (32 bytes read)
    [   15.657200] random: dropbearkey: uninitialized urandom read (32 bytes read)
    
    
    PetaLinux 2019.1 petalinux-lincs /dev/ttyPS0
    
    
    
    petalinux-lincs login: root
    Password: 
    78root@petalinux-lincs:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:0A:35:00:22:01  
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
              Interrupt:30 
    
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:2 errors:0 dropped:0 overruns:0 frame:0
              TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:140 (140.0 B)  TX bytes:140 (140.0 B)
    
    root@petalinux-lincs:~# ifconfig -a
    eth0      Link encap:Ethernet  HWaddr 00:0A:35:00:22:01  
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
              Interrupt:30 
    
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:2 errors:0 dropped:0 overruns:0 frame:0
              TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:140 (140.0 B)  TX bytes:140 (140.0 B)
    
    sit0      Link encap:IPv6-in-IPv4  
              NOARP  MTU:1480  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
    
    root@petalinux-lincs:~# ethtool -s eth0 speed 1000 duplex full autoneg off
    root@petalinux-lincs:~# ethtool eth0
    Settings for eth0:
    	Supported ports: [ TP MII ]
    	Supported link modes:   Not reported
    	Supported pause frame use: No
    	Supports auto-negotiation: No
    	Supported FEC modes: Not reported
    	Advertised link modes:  Not reported
    	Advertised pause frame use: No
    	Advertised auto-negotiation: No
    	Advertised FEC modes: Not reported
    	Speed: Unknown!
    	Duplex: Unknown! (255)
    	Port: MII
    	PHYAD: 15
    	Transceiver: internal
    	Auto-negotiation: off
    	Link detected: no
    root@petalinux-lincs:~# ethtool eth0[1@-[1@S[1@ 
    NIC statistics:
         tx_octets: 0
         tx_frames: 0
         tx_broadcast_frames: 0
         tx_multicast_frames: 0
         tx_pause_frames: 0
         tx_64_byte_frames: 0
         tx_65_127_byte_frames: 0
         tx_128_255_byte_frames: 0
         tx_256_511_byte_frames: 0
         tx_512_1023_byte_frames: 0
         tx_1024_1518_byte_frames: 0
         tx_greater_than_1518_byte_frames: 0
         tx_underrun: 0
         tx_single_collision_frames: 0
         tx_multiple_collision_frames: 0
         tx_excessive_collisions: 0
         tx_late_collisions: 0
         tx_deferred_frames: 0
         tx_carrier_sense_errors: 0
         rx_octets: 0
         rx_frames: 0
         rx_broadcast_frames: 0
         rx_multicast_frames: 0
         rx_pause_frames: 0
         rx_64_byte_frames: 0
         rx_65_127_byte_frames: 0
         rx_128_255_byte_frames: 0
         rx_256_511_byte_frames: 0
         rx_512_1023_byte_frames: 0
         rx_1024_1518_byte_frames: 0
         rx_greater_than_1518_byte_frames: 0
         rx_undersized_frames: 0
         rx_oversize_frames: 0
         rx_jabbers: 0
         rx_frame_check_sequence_errors: 0
         rx_length_field_frame_errors: 0
         rx_symbol_errors: 0
         rx_alignment_errors: 0
         rx_resource_errors: 0
         rx_overruns: 0
         rx_ip_header_checksum_errors: 0
         rx_tcp_checksum_errors: 0
         rx_udp_checksum_errors: 0
         q0_rx_packets: 0
         q0_rx_bytes: 0
         q0_rx_dropped: 0
         q0_tx_packets: 0
         q0_tx_bytes: 0
         q0_tx_dropped: 0
         q1_rx_packets: 0
         q1_rx_bytes: 0
         q1_rx_dropped: 0
         q1_tx_packets: 0
         q1_tx_bytes: 0
         q1_tx_dropped: 0
    root@petalinux-lincs:~# ifconfig eth0 dowb n
    [   90.796710] macb ff0b0000.ethernet: gem-ptp-timer ptp clock unregistered.
    root@petalinux-lincs:~# ifconfig eth0 down    192.168.[   96.047347] random: fast init done
    1.20 up
    [   98.752447] pps pps0: new PPS source ptp0
    [   98.756477] macb ff0b0000.ethernet: gem-ptp-timer ptp clock registered.
    [   98.763228] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    root@petalinux-lincs:~# 
    root@petalinux-lincs:~# 
    root@petalinux-lincs:~# ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:0A:35:00:22:01  
              inet addr:192.168.1.20  Bcast:192.168.1.255  Mask:255.255.255.0
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
              Interrupt:30 
    
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:65536  Metric:1
              RX packets:2 errors:0 dropped:0 overruns:0 frame:0
              TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:140 (140.0 B)  TX bytes:140 (140.0 B)
    
    root@petalinux-lincs:~# o ping 192.168.1.20
    PING 192.168.1.20 (192.168.1.20): 56 data bytes
    64 bytes from 192.168.1.20: seq=0 ttl=64 time=0.101 ms
    64 bytes from 192.168.1.20: seq=1 ttl=64 time=0.046 ms
    64 bytes from 192.168.1.20: seq=2 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=3 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=4 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=5 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=6 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=7 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=8 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=9 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=10 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=11 ttl=64 time=0.041 ms
    64 bytes from 192.168.1.20: seq=12 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=13 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=14 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=15 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=16 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=17 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=18 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=19 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=20 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=21 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=22 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=23 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=24 ttl=64 time=0.120 ms
    64 bytes from 192.168.1.20: seq=25 ttl=64 time=0.046 ms
    64 bytes from 192.168.1.20: seq=26 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=27 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=28 ttl=64 time=0.043 ms
    64 bytes from 192.168.1.20: seq=29 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=30 ttl=64 time=0.043 ms
    64 bytes from 192.168.1.20: seq=31 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=32 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=33 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=34 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=35 ttl=64 time=0.041 ms
    64 bytes from 192.168.1.20: seq=36 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=37 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=38 ttl=64 time=0.042 ms
    64 bytes from 192.168.1.20: seq=39 ttl=64 time=0.051 ms
    64 bytes from 192.168.1.20: seq=40 ttl=64 time=0.043 ms
    64 bytes from 192.168.1.20: seq=41 ttl=64 time=0.042 ms
    ^C
    --- 192.168.1.20 ping statistics ---
    42 packets transmitted, 42 packets received, 0% packet loss
    round-trip min/avg/max = 0.041/0.045/0.120 ms
    root@petalinux-lincs:~# pinf   g 192.168.1.7
    PING 192.168.1.7 (192.168.1.7): 56 data bytes
    ^C
    --- 192.168.1.7 ping statistics ---
    3 packets transmitted, 0 packets received, 100% packet loss
    root@petalinux-lincs:~# 
    root@petalinux-lincs:~# deme   mesg | grep PHY
    [    4.578492] Generic PHY ff0b0000.ethernet-ffffffff:0f: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ff0b0000.ethernet-ffffffff:0f, irq=POLL)
    root@petalinux-lincs:~# 

    Thanks,

    -Amy

  • Amy,

    I would suggest further investigating the MDC and MDIO connections of the PHY. These connections are crucial to setting and reading the correct values of the PHY to give an accurate depiction of the real-time status of the device. You stated off of the register dump that your system's values for registers 0x2 and 0x3 are 0x174 and 0xC00, respectively. However, these registers are read-only and only have values 0x2000 and 0xA231. I would focus on adjusting your system such that you are successfully able to read these values on these registers as we need an accurate picture of what status the PHY is in before further debugging the SGMII issue.

    Sincerely,

    Gerome

  • hi Gerome,

    Just let you know that we got it works now. It was hardware issue. We changed configuration on TI PHY=0, SGMII Enable=1 (Mode 2), and RX_CTRL=0 (mode 3).

    on the xilinx , we reconfig SGMII phy_addr =9 and drive SGMII mdio_t_in from GEM0 mdio_t_k.

    Now, Ethernet work fine on our board.

    The way setup Xilinx MAC <--> GMII Link<-> GMII/SGMII bridge IP core <--> SGMII link <--> PHY.

    Sincerely,

    -Amy

  • Amy,

    That's great news to hear it is working! I will be closing this thread now. Have a great day!

    Sincerely,

    Gerome