RMII 中 imx93 和 eqos 出现 DMA 错误 我正在尝试让以太网与连接到 eqos 的 LAN8742A PHY 配合使用,采用 RMII 模式。 我以 imx93-11x11-frdm.dts 为基础,并进行了以下更改: &iomuxc {
pinctrl_eqos: eqosgrp {
fsl,pins = <
MX93_PAD_ENET1_MDC__ENET_QOS_MDC 0x57e /* OK */
MX93_PAD_ENET1_MDIO__ENET_QOS_MDIO 0x57e /* OK */
MX93_PAD_ENET1_RD0__ENET_QOS_RGMII_RD0 0x57e /* OK */
MX93_PAD_ENET1_RD1__ENET_QOS_RGMII_RD1 0x57e /* OK */
/* MX93_PAD_ENET1_RD2__ENET_QOS_RGMII_RD2 0x57e
MX93_PAD_ENET1_RD3__ENET_QOS_RGMII_RD3 0x57e */
MX93_PAD_ENET1_RXC__ENET_QOS_RX_ER 0x51e /* OK */
/* MX93_PAD_ENET1_RXC__CCM_ENET_QOS_CLOCK_GENERATE_RX_CLK 0x51e */
MX93_PAD_ENET1_RX_CTL__ENET_QOS_RGMII_RX_CTL 0x57e /* OK */
MX93_PAD_ENET1_TD0__ENET_QOS_RGMII_TD0 0x57e /* OK */
MX93_PAD_ENET1_TD1__ENET_QOS_RGMII_TD1 0x57e /* OK */
/* refclock for Eth phy */
MX93_PAD_ENET1_TD2__CCM_ENET_QOS_CLOCK_GENERATE_REF_CLK 0x57e /* OK */
/* MX93_PAD_ENET1_TD2__ENET_QOS_RGMII_TD2 0x57e
MX93_PAD_ENET1_TD3__ENET_QOS_RGMII_TD3 0x57e */
/* MX93_PAD_ENET1_TXC__CCM_ENET_QOS_CLOCK_GENERATE_TX_CLK 0x5fe */
MX93_PAD_ENET1_TX_CTL__ENET_QOS_RGMII_TX_CTL 0x0000051e /* OK */
/* MX93_PAD_ENET1_TX_CTL__ENET_QOS_RGMII_TX_CTL 0x57e */
>;
}; &eqos {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_eqos>;
phy-mode = "rmii";
phy-handle = <ðphy1>;
status = "okay";
/delete-property/ assigned-clocks;
/delete-property/ assigned-clock-rates;
assigned-clocks = <&clk IMX93_CLK_ENET_TIMER2>,
<&clk IMX93_CLK_ENET>;
assigned-clock-rates = <100000000>, <50000000>;
mdio {
compatible = "snps,dwmac-mdio";
#address-cells = <1>;
#size-cells = <0>;
clock-frequency = <5000000>;
ethphy1: ethernet-phy@0 {
reg = <0>;
eee-broken-1000tx;
post-power-on-delay-ms = <100>;
reset-gpios = <&pcal6524 19 GPIO_ACTIVE_LOW>;
reset-assert-us = <15000>;
reset-deassert-us = <100000>;
};
};
}; U-Boot 中的结果是: u-boot=> bootp
EQOS_DMA_MODE_SWR stuckFAILED: -110
u-boot=>
Linux 系统中的结果为: [ 11.484536] imx-dwmac 428a0000.ethernet: Failed to reset the dma
[ 11.490536] imx-dwmac 428a0000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed
[ 11.499228] imx-dwmac 428a0000.ethernet eth0: __stmmac_open: Hw setup failed 我不明白我哪里做错了,哪里配置错误了,或者为什么DMA无法正确初始化。很明显我漏掉了一些东西(DMA 错误看起来像是芯片内部的错误,所以即使引脚复用出现错误,我认为也不会出现这种情况,而且我已经仔细检查过引脚复用了)。 我检查过的项目: 时钟信号已正确发送至PHY。 与mdio上的PHY通信正常 任何提示都将不胜感激。 顺祝商祺! 朱利安 Re: DMA Error with imx93 and eqos in RMII uboot 中的 RESET 设置正确。我可以看到 PHY 芯片工作正常(LED 灯亮着),并且可以与它通信,但我仍然会收到 DMA 错误。 我尝试通过 u-boot 中的复位引脚手动禁用和重新启用 PHY,但这并没有任何改变。 以下是 dmesg 的完整日志: [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[ 0.000000] Linux version 6.6.36 (
[email protected]@UC155-BE2) (aarch64-sprinte450sp-linux-gnu-gcc.br_real (Buildroot 2026.05-2-gf0cfb0f3cf-dirty) 14.3.0, GNU ld (GNU Binutils) 2.45.1) #4 SMP PREEMPT Thu Jul 23 17:04:50 CEST 2026
[ 0.000000] KASLR disabled due to lack of seed
[ 0.000000] Machine model: Sprinte 450SP board
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created CMA memory pool at 0x00000000b0000000, size 256 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: 0x00000000b0000000..0x00000000bfffffff (262144 KiB) map reusable linux,cma
[ 0.000000] earlycon: lpuart32 at MMIO32 0x0000000044380000 (options '')
[ 0.000000] printk: bootconsole [lpuart32] enabled
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x00000000bfffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0xafdcf6c0-0xafdd1fff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000080000000-0x00000000bfffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080000000-0x00000000bfffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000bfffffff]
[ 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.4
[ 0.000000] percpu: Embedded 22 pages/cpu s50600 r8192 d31320 u90112
[ 0.000000] pcpu-alloc: s50600 r8192 d31320 u90112 alloc=22*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] CPU features: detected: Virtualization Host Extensions
[ 0.000000] CPU features: detected: Qualcomm erratum 1009, or ARM erratum 1286807, 2441009
[ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[ 0.000000] alternatives: applying boot alternatives
[ 0.000000] Kernel command line: console=ttyLP0,115200 earlycon root=/dev/mmcblk1p2 rootwait rw
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] Fallback order for Node 0: 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 258048
[ 0.000000] Policy zone: DMA
[ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[ 0.000000] software IO TLB: area num 2.
[ 0.000000] software IO TLB: mapped [mem 0x00000000aac00000-0x00000000aec00000] (64MB)
[ 0.000000] Memory: 666980K/1048576K available (20608K kernel code, 1638K rwdata, 7744K rodata, 1984K init, 643K bss, 119452K reserved, 262144K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: 960 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GICv3: GICv3 features: 16 PPIs
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000048040000
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000000] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.008305] Console: colour dummy device 80x25
[ 0.012529] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[ 0.022711] pid_max: default: 32768 minimum: 301
[ 0.027347] LSM: initializing lsm=capability,integrity
[ 0.032485] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.039785] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.048237] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.054656] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[ 0.061512] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
[ 0.069127] rcu: Hierarchical SRCU implementation.
[ 0.073752] rcu: Max phase no-delay instances is 1000.
[ 0.079653] EFI services will not be available.
[ 0.084098] smp: Bringing up secondary CPUs ...
[ 0.088812] Detected VIPT I-cache on CPU1
[ 0.088870] GICv3: CPU1: found redistributor 100 region 0:0x0000000048060000
[ 0.088904] CPU1: Booted secondary processor 0x0000000100 [0x412fd050]
[ 0.089007] smp: Brought up 1 node, 2 CPUs
[ 0.110357] SMP: Total of 2 processors activated.
[ 0.115028] CPU features: detected: 32-bit EL0 Support
[ 0.120154] CPU features: detected: 32-bit EL1 Support
[ 0.125257] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[ 0.133840] CPU features: detected: Common not Private translations
[ 0.140073] CPU features: detected: CRC32 instructions
[ 0.145196] CPU features: detected: RCpc load-acquire (LDAPR)
[ 0.150906] CPU features: detected: LSE atomic instructions
[ 0.156453] CPU features: detected: Privileged Access Never
[ 0.161998] CPU features: detected: RAS Extension Support
[ 0.167374] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[ 0.174355] CPU: All CPU(s) started at EL2
[ 0.178380] alternatives: applying system-wide alternatives
[ 0.187922] devtmpfs: initialized
[ 0.194925] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.204430] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.216607] pinctrl core: initialized pinctrl subsystem
[ 0.223019] DMI not present or invalid.
[ 0.227066] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.233367] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[ 0.240250] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.247941] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.255804] audit: initializing netlink subsys (disabled)
[ 0.261291] audit: type=2000 audit(0.172:1): state=initialized audit_enabled=0 res=1
[ 0.261671] thermal_sys: Registered thermal governor 'step_wise'
[ 0.268851] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.274855] cpuidle: using governor menu
[ 0.285411] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.292025] ASID allocator initialised with 65536 entries
[ 0.297950] Serial: AMBA PL011 UART driver
[ 0.301832] imx mu driver is registered.
[ 0.305685] imx rpmsg driver is registered.
[ 0.314130] imx93-pinctrl 443c0000.pinctrl: initialized IMX pinctrl driver
[ 0.326962] Modules: 24576 pages in range for non-PLT usage
[ 0.326973] Modules: 516096 pages in range for PLT usage
[ 0.333009] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.344824] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[ 0.351063] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.357821] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[ 0.364062] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.370821] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[ 0.377062] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.383821] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[ 0.391518] ACPI: Interpreter disabled.
[ 0.395792] iommu: Default domain type: Translated
[ 0.400360] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.406743] SCSI subsystem initialized
[ 0.410355] libata version 3.00 loaded.
[ 0.410523] usbcore: registered new interface driver usbfs
[ 0.415761] usbcore: registered new interface driver hub
[ 0.421054] usbcore: registered new device driver usb
[ 0.426646] mc: Linux media interface: v0.10
[ 0.430689] videodev: Linux video capture interface: v2.00
[ 0.436154] pps_core: LinuxPPS API ver. 1 registered
[ 0.441049] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
[ 0.450155] PTP clock support registered
[ 0.454144] EDAC MC: Ver: 3.0.0
[ 0.457601] scmi_core: SCMI protocol bus registered
[ 0.462617] FPGA manager framework
[ 0.465811] Advanced Linux Sound Architecture Driver Initialized.
[ 0.472369] Bluetooth: Core ver 2.22
[ 0.475701] NET: Registered PF_BLUETOOTH protocol family
[ 0.480981] Bluetooth: HCI device and connection manager initialized
[ 0.487298] Bluetooth: HCI socket layer initialized
[ 0.492148] Bluetooth: L2CAP socket layer initialized
[ 0.497182] Bluetooth: SCO socket layer initialized
[ 0.502337] vgaarb: loaded
[ 0.505250] clocksource: Switched to clocksource arch_sys_counter
[ 0.511308] VFS: Disk quotas dquot_6.6.0
[ 0.515015] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.521961] pnp: PnP ACPI: disabled
[ 0.530265] NET: Registered PF_INET protocol family
[ 0.535027] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.542962] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[ 0.551110] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.558774] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.566509] TCP bind hash table entries: 8192 (order: 6, 262144 bytes, linear)
[ 0.573930] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.580120] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.586625] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.593729] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.599609] RPC: Registered named UNIX socket transport module.
[ 0.605277] RPC: Registered udp transport module.
[ 0.609945] RPC: Registered tcp transport module.
[ 0.614624] RPC: Registered tcp-with-tls transport module.
[ 0.620084] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.627260] PCI: CLS 0 bytes, default 64
[ 0.631165] kvm [1]: IPA Size Limit: 40 bits
[ 0.635194] kvm [1]: GICv3: no GICV resource entry
[ 0.639942] kvm [1]: disabling GICv2 emulation
[ 0.644371] kvm [1]: GIC system register CPU interface enabled
[ 0.650191] kvm [1]: vgic interrupt IRQ9
[ 0.654088] kvm [1]: VHE mode initialized successfully
[ 0.660051] Initialise system trusted keyrings
[ 0.664421] workingset: timestamp_bits=42 max_order=18 bucket_order=0
[ 0.670898] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.676710] NFS: Registering the id_resolver key type
[ 0.681531] Key type id_resolver registered
[ 0.685658] Key type id_legacy registered
[ 0.689659] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.696326] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.703831] 9p: Installing v9fs 9p2000 file system support
[ 0.734526] Key type asymmetric registered
[ 0.738370] Asymmetric key parser 'x509' registered
[ 0.743258] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[ 0.750590] io scheduler mq-deadline registered
[ 0.755095] io scheduler kyber registered
[ 0.759113] io scheduler bfq registered
[ 0.766447] EINJ: ACPI disabled.
[ 0.773498] Bus freq driver module loaded
[ 0.782271] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.790543] 44380000.serial: ttyLP0 at MMIO 0x44380010 (irq = 17, base_baud = 1500000) is a FSL_LPUART
[ 0.799853] printk: console [ttyLP0] enabled
[ 0.808289] printk: bootconsole [lpuart32] disabled
[ 0.827377] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[ 0.835386] imx93-ldb ldb-display-controller: No data-mapping in DT, will use negotiated bus format.
[ 0.844862] imx93-ldb ldb-display-controller: Failed to create device link (0x180) with 4ae30000.lcd-controller
[ 0.858799] loop: module loaded
[ 0.863014] megasas: 07.725.01.00-rc1
[ 0.870948] tun: Universal TUN/TAP device driver, 1.6
[ 0.876567] thunder_xcv, ver 1.0
[ 0.879836] thunder_bgx, ver 1.0
[ 0.883080] nicpf, ver 1.0
[ 0.886825] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[ 0.894055] hns3: Copyright (c) 2017 Huawei Corporation.
[ 0.899390] hclge is initializing
[ 0.902728] e1000: Intel(R) PRO/1000 Network Driver
[ 0.907598] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 0.913354] e1000e: Intel(R) PRO/1000 Network Driver
[ 0.918310] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.924238] igb: Intel(R) Gigabit Ethernet Network Driver
[ 0.929635] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 0.935216] igbvf: Intel(R) Gigabit Virtual Function Network Driver
[ 0.941476] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 0.947488] sky2: driver version 1.30
[ 0.951466] usbcore: registered new device driver r8152-cfgselector
[ 0.957746] usbcore: registered new interface driver r8152
[ 0.963616] VFIO - User Level meta-driver version: 0.3
[ 0.970278] usbcore: registered new interface driver uas
[ 0.975636] usbcore: registered new interface driver usb-storage
[ 0.981731] usbcore: registered new interface driver usbserial_generic
[ 0.988270] usbserial: USB Serial support registered for generic
[ 0.994286] usbcore: registered new interface driver ftdi_sio
[ 1.000031] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 1.007339] usbcore: registered new interface driver usb_serial_simple
[ 1.013862] usbserial: USB Serial support registered for carelink
[ 1.019959] usbserial: USB Serial support registered for flashloader
[ 1.026317] usbserial: USB Serial support registered for funsoft
[ 1.032327] usbserial: USB Serial support registered for google
[ 1.038251] usbserial: USB Serial support registered for hp4x
[ 1.043996] usbserial: USB Serial support registered for kaufmann
[ 1.050089] usbserial: USB Serial support registered for libtransistor
[ 1.056614] usbserial: USB Serial support registered for moto_modem
[ 1.062880] usbserial: USB Serial support registered for motorola_tetra
[ 1.069494] usbserial: USB Serial support registered for nokia
[ 1.075326] usbserial: USB Serial support registered for novatel_gps
[ 1.081686] usbserial: USB Serial support registered for siemens_mpi
[ 1.088040] usbserial: USB Serial support registered for suunto
[ 1.093963] usbserial: USB Serial support registered for vivopay
[ 1.099966] usbserial: USB Serial support registered for zio
[ 1.105629] usbcore: registered new interface driver usb_ehset_test
[ 1.114691] input: 44440000.bbnsm:pwrkey as /devices/platform/soc@0/44000000.bus/44440000.bbnsm/44440000.bbnsm:pwrkey/input/input0
[ 1.126836] i2c_dev: i2c /dev entries driver
[ 1.133908] imx7ulp-wdt 42490000.watchdog: imx93 wdt probe
[ 1.165969] Bluetooth: HCI UART driver ver 2.3
[ 1.170432] Bluetooth: HCI UART protocol H4 registered
[ 1.175564] Bluetooth: HCI UART protocol BCSP registered
[ 1.180885] Bluetooth: HCI UART protocol LL registered
[ 1.186018] Bluetooth: HCI UART protocol ATH3K registered
[ 1.191417] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 1.197782] Bluetooth: HCI UART protocol Broadcom registered
[ 1.203454] Bluetooth: HCI UART protocol QCA registered
[ 1.209726] sdhci: Secure Digital Host Controller Interface driver
[ 1.215922] sdhci: Copyright(c) Pierre Ossman
[ 1.220572] Synopsys Designware Multimedia Card Interface Driver
[ 1.226885] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.233614] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.240850] fsl-se-fw se-fw2: failed to init reserved memory region -19
[ 1.247608] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[ 1.254330] usbcore: registered new interface driver usbhid
[ 1.259901] usbhid: USB HID core driver
[ 1.270337] mmc0: SDHCI controller on 42850000.mmc [42850000.mmc] using ADMA
[ 1.302222] hw perfevents: enabled with armv8_cortex_a55 PMU driver, 7 counters available
[ 1.312041] cs_system_cfg: CoreSight Configuration manager initialised
[ 1.319751] optee: probing for conduit method.
[ 1.324215] optee: api uid mismatch
[ 1.325699] mmc0: new HS400 Enhanced strobe MMC card at address 0001
[ 1.327700] optee: probe of firmware:optee failed with error -22
[ 1.334598] mmcblk0: mmc0:0001 eMMC 58.2 GiB
[ 1.342512] NET: Registered PF_LLC protocol family
[ 1.345923] mmcblk0: p1
[ 1.349519] u32 classifier
[ 1.352252] mmcblk0boot0: mmc0:0001 eMMC 4.00 MiB
[ 1.354567] input device check on
[ 1.360666] mmcblk0boot1: mmc0:0001 eMMC 4.00 MiB
[ 1.363094] Actions configured
[ 1.363485] NET: Registered PF_INET6 protocol family
[ 1.368956] mmcblk0rpmb: mmc0:0001 eMMC 4.00 MiB, chardev (234:0)
[ 1.372113] Segment Routing with IPv6
[ 1.386309] In-situ OAM (IOAM) with IPv6
[ 1.390278] NET: Registered PF_PACKET protocol family
[ 1.395349] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 1.408425] Bluetooth: RFCOMM TTY layer initialized
[ 1.413310] Bluetooth: RFCOMM socket layer initialized
[ 1.418455] Bluetooth: RFCOMM ver 1.11
[ 1.422203] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 1.427502] Bluetooth: BNEP filters: protocol multicast
[ 1.432721] Bluetooth: BNEP socket layer initialized
[ 1.437676] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.443589] Bluetooth: HIDP socket layer initialized
[ 1.448783] 8021q: 802.1Q VLAN Support v1.8
[ 1.452998] lib80211: common routines for IEEE802.11 drivers
[ 1.458652] lib80211_crypt: registered algorithm 'NULL'
[ 1.458656] lib80211_crypt: registered algorithm 'WEP'
[ 1.458659] lib80211_crypt: registered algorithm 'CCMP'
[ 1.458663] lib80211_crypt: registered algorithm 'TKIP'
[ 1.458693] 9pnet: Installing 9P2000 support
[ 1.463084] Key type dns_resolver registered
[ 1.467497] NET: Registered PF_VSOCK protocol family
[ 1.486367] registered taskstats version 1
[ 1.490717] Loading compiled-in X.509 certificates
[ 1.512663] usb_phy_generic usbphynop1: dummy supplies not allowed for exclusive requests
[ 1.521013] usb_phy_generic usbphynop2: dummy supplies not allowed for exclusive requests
[ 1.539006] imx93-ldb ldb-display-controller: Failed to create device link (0x180) with ldb-phy
[ 1.550623] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[ 1.558672] imx93-ldb ldb-display-controller: No data-mapping in DT, will use negotiated bus format.
[ 1.569462] imx-dwmac 428a0000.ethernet: IRQ eth_lpi not found
[ 1.575451] imx-dwmac 428a0000.ethernet: tx clock enable start
[ 1.581464] imx-dwmac 428a0000.ethernet: User ID: 0x10, Synopsys ID: 0x52
[ 1.588255] imx-dwmac 428a0000.ethernet: DWMAC4/5
[ 1.593038] imx-dwmac 428a0000.ethernet: DMA HW capability register supported
[ 1.600159] imx-dwmac 428a0000.ethernet: RX Checksum Offload Engine supported
[ 1.607283] imx-dwmac 428a0000.ethernet: TX Checksum insertion supported
[ 1.613973] imx-dwmac 428a0000.ethernet: Wake-Up On Lan supported
[ 1.620110] imx-dwmac 428a0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 1.627757] imx-dwmac 428a0000.ethernet: Enabled L3L4 Flow TC (entries=8)
[ 1.634536] imx-dwmac 428a0000.ethernet: Enabled RFS Flow TC (entries=10)
[ 1.641316] imx-dwmac 428a0000.ethernet: Enabling HW TC (entries=256, max_off=256)
[ 1.648876] imx-dwmac 428a0000.ethernet: Using 32/32 bits DMA host/device width
[ 1.657380] imx-dwmac 428a0000.ethernet: tx clock disable start
[ 1.663414] imx-dwmac 428a0000.ethernet: err_drv_probe
[ 1.668557] imx-dwmac 428a0000.ethernet: err_dwmac_init
[ 1.677361] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 1.682306] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[ 1.709253] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 1.715211] hub 1-0:1.0: USB hub found
[ 1.718981] hub 1-0:1.0: 1 port detected
[ 1.726882] ci_hdrc ci_hdrc.1: EHCI Host Controller
[ 1.731789] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
[ 1.753257] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[ 1.759191] hub 2-0:1.0: USB hub found
[ 1.762965] hub 2-0:1.0: 1 port detected
[ 1.770674] rtc rtc0: Power loss detected, invalid time
[ 1.776048] rtc-pcf85063 0-0051: registered as rtc0
[ 1.781185] rtc rtc0: Power loss detected, invalid time
[ 1.786407] rtc-pcf85063 0-0051: hctosys: unable to read the hardware clock
[ 1.793553] pca953x 0-0020: supply vcc not found, using dummy regulator
[ 1.800254] pca953x 0-0020: using no AI
[ 1.804716] i2c i2c-0: LPI2C adapter registered
[ 1.810507] pca953x 1-0022: supply vcc not found, using dummy regulator
[ 1.817269] pca953x 1-0022: using AI
[ 1.822077] at24 1-0050: supply vcc not found, using dummy regulator
[ 1.828917] at24 1-0050: 1024 byte 24c08 EEPROM, writable, 16 bytes/write
[ 1.835795] i2c i2c-1: LPI2C adapter registered
[ 1.841329] i2c i2c-2: LPI2C adapter registered
[ 1.846907] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[ 1.854932] imx93-ldb ldb-display-controller: No data-mapping in DT, will use negotiated bus format.
[ 1.865632] imx-dwmac 428a0000.ethernet: IRQ eth_lpi not found
[ 1.871579] imx-dwmac 428a0000.ethernet: tx clock enable start
[ 1.877611] imx-dwmac 428a0000.ethernet: User ID: 0x10, Synopsys ID: 0x52
[ 1.884419] imx-dwmac 428a0000.ethernet: DWMAC4/5
[ 1.889206] imx-dwmac 428a0000.ethernet: DMA HW capability register supported
[ 1.896327] imx-dwmac 428a0000.ethernet: RX Checksum Offload Engine supported
[ 1.903449] imx-dwmac 428a0000.ethernet: TX Checksum insertion supported
[ 1.910153] imx-dwmac 428a0000.ethernet: Wake-Up On Lan supported
[ 1.916235] imx-dwmac 428a0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 1.923878] imx-dwmac 428a0000.ethernet: Enabled L3L4 Flow TC (entries=8)
[ 1.930655] imx-dwmac 428a0000.ethernet: Enabled RFS Flow TC (entries=10)
[ 1.937446] imx-dwmac 428a0000.ethernet: Enabling HW TC (entries=256, max_off=256)
[ 1.945009] imx-dwmac 428a0000.ethernet: Using 32/32 bits DMA host/device width
[ 2.091986] imx-dwmac 428a0000.ethernet: tx clock disable start
[ 2.092418] sdhci-esdhc-imx 42860000.mmc: Got CD GPIO
[ 2.099328] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[ 2.111052] imx93-ldb ldb-display-controller: No data-mapping in DT, will use negotiated bus format.
[ 2.122102] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[ 2.130156] imx93-ldb ldb-display-controller: No data-mapping in DT, will use negotiated bus format.
[ 2.134093] mmc1: SDHCI controller on 42860000.mmc [42860000.mmc] using ADMA
[ 2.139573] nxp-pca9450 1-0025: pca9451a probed.
[ 2.152583] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[ 2.160637] imx93-ldb ldb-display-controller: No data-mapping in DT, will use negotiated bus format.
[ 2.171559] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 2.180575] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 2.186741] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
[ 2.194068] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 2.197312] clk: Disabling unused clocks
[ 2.202716] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[ 2.214819] ALSA device list:
[ 2.217793] No soundcards found.
[ 2.221596] Waiting for root device /dev/mmcblk1p2...
[ 2.287788] mmc1: host does not support reading read-only switch, assuming write-enable
[ 2.298005] mmc1: new high speed SD card at address 0001
[ 2.303890] mmcblk1: mmc1:0001 00000 1.81 GiB
[ 2.311020] mmcblk1: p1 p2
[ 2.315100] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[ 2.323111] imx93-ldb ldb-display-controller: No data-mapping in DT, will use negotiated bus format.
[ 2.339143] exFAT-fs (mmcblk1p2): invalid boot record signature
[ 2.345082] exFAT-fs (mmcblk1p2): failed to read boot sector
[ 2.350777] exFAT-fs (mmcblk1p2): failed to recognize exfat type
[ 2.358002] erofs: (device mmcblk1p2): mounted with root inode @ nid 36.
[ 2.364768] VFS: Mounted root (erofs filesystem) readonly on device 179:98.
[ 2.371789] devtmpfs: mounted
[ 2.375967] Freeing unused kernel memory: 1984K
[ 2.380690] Run /sbin/init as init process
[ 2.384782] with arguments:
[ 2.384785] /sbin/init
[ 2.384787] with environment:
[ 2.384790] HOME=/
[ 2.384792] TERM=linux
[ 4.633259] random: crng init done
[ 12.406378] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[ 12.414399] imx93-ldb ldb-display-controller: No data-mapping in DT, will use negotiated bus format.
[ 12.424617] platform imx-lcdifv3-crtc.0: deferred probe pending 当 ip link 设置 eth0 时(我向驱动程序添加了一些非标准跟踪,以尝试调试此 DMA 问题): # ip link set eth0 up
[ 236.851517] imx-dwmac 428a0000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[ 236.859339] imx-dwmac 428a0000.ethernet: tx clock enable start
[ 236.974901] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops lcdifv3_crtc_ops)
[ 236.982933] imx93-ldb ldb-display-controller: No data-mapping in DT, will use negotiated bus format.
[ 237.081392] imx-dwmac 428a0000.ethernet eth0: PHY [stmmac-1:00] driver [Generic PHY] (irq=POLL)
[ 237.090112] Checking DMA clocks before reset...
[ 237.094643] DMA_HW_CAPABILITY = 0x0
[ 237.098124] RESET START: DMA_BUS_MODE = 0x1
[ 237.102301] AFTER WRITE: DMA_BUS_MODE = 0x1
[ 238.107432] POLL RESULT: ret=-110, DMA_BUS_MODE = 0x1
[ 238.112492] imx-dwmac 428a0000.ethernet: Failed to reset the dma
[ 238.118519] imx-dwmac 428a0000.ethernet eth0: stmmac_hw_setup: DMA engine initialization failed
[ 238.127210] imx-dwmac 428a0000.ethernet eth0: __stmmac_open: Hw setup failed
[ 238.194819] imx-dwmac 428a0000.ethernet: tx clock disable start
ip: SIOCSIFFLAGS: Connection timed out 感谢您的帮助! 顺祝商祺! 朱利安 Re: DMA Error with imx93 and eqos in RMII 你好,
请确认PHY中的复位信号是否正确生效。
当 PHY 在短时间内没有获得时钟信号,并且时钟信号恢复后,必须对 PHY 进行 RESET,以锁存所有配置带,恢复到正常工作模式。
请分享您的完整 dmesg 日志。
顺祝商祺!