cancel
Showing results for 
Search instead for 
Did you mean: 

stm32mp25: "EQOS_DMA_MODE_SWR stuck FAILED: -110" ethernet error in u-boot

zakariazh
Associate II

Hello,
I am using the STM32MP257x-EV1 board with version 2022.10 of u-boot-stm32mp (with patch 0001-v2022.10-stm32mp25-beta.patch from commit dc5d7824 made on April 12, 2024).

When compiling u-boot + stm32mp257f-ev1.dts, only the eth2 interface is functional, the other interface displays the following error:

 

EQOS_DMA_MODE_SWR: mode: 00000000482c1000 - wait: 50
EQOS_DMA_MODE_SWR stuck FAILED: -110

 

 

After compiling u-boot-stm32mp, I used the dtc tool with u-boot.dtb to get my full dts file used and here is the configuration of eth1 and eth2.

 

 

			eth2@482d0000 {
				compatible = "st,stm32mp25-dwmac\0snps,dwmac-5.10a";
				reg = <0x482d0000 0x4000>;
				reg-names = "stmmaceth";
				interrupts-extended = <0x06 0x00 0x85 0x04 0x22 0x46 0x04>;
				interrupt-names = "macirq\0eth_wake_irq";
				clock-names = "stmmaceth\0mac-clk-tx\0mac-clk-rx\0ptp_ref\0ethstp\0eth-ck";
				clocks = <0x13 0x14c 0x13 0x14b 0x13 0x14a 0x13 0x13f 0x13 0x14e 0x13 0x13d>;
				st,syscon = <0x12 0x3400 0xffffffff>;
				snps,mixed-burst;
				snps,pbl = <0x02>;
				snps,txqos = <0x07>;
				snps,rxqos = <0x07>;
				snps,axi-config = <0x74>;
				snps,tso;
				feature-domains = <0x18 0x3d>;
				power-domains = <0x0c>;
				wakeup-source;
				status = "okay";
				snps,mtl-rx-config = <0x75>;
				snps,mtl-tx-config = <0x76>;
				pinctrl-0 = <0x77>;
				pinctrl-1 = <0x78>;
				pinctrl-names = "default\0sleep";
				phy-mode = "rgmii-id";
				max-speed = <0x3e8>;
				phy-handle = <0x79>;
				st,eth-ptp-from-rcc;
				phandle = <0x128>;

				stmmac-axi-config {
					snps,wr_osr_lmt = <0x07>;
					snps,rd_osr_lmt = <0x07>;
					snps,blen = <0x00 0x00 0x00 0x00 0x10 0x08 0x04>;
					phandle = <0x74>;
				};

				rx-queues-config {
					snps,rx-queues-to-use = <0x02>;
					phandle = <0x75>;

					queue0 {
					};

					queue1 {
					};
				};

				tx-queues-config {
					snps,tx-queues-to-use = <0x04>;
					phandle = <0x76>;

					queue0 {
					};

					queue1 {
					};

					queue2 {
					};

					queue3 {
					};
				};

				mdio1 {
					#address-cells = <0x01>;
					#size-cells = <0x00>;
					compatible = "snps,dwmac-mdio";

					ethernet-phy@1 {
						compatible = "ethernet-phy-id001c.c916";
						reset-gpios = <0x32 0x06 0x01>;
						reset-assert-us = <0x2710>;
						reset-deassert-us = <0x13880>;
						realtek,eee-disable;
						reg = <0x01>;
						phandle = <0x79>;
					};
				};
			};

 

 

 

			eth1@482c0000 {
				compatible = "st,stm32mp25-dwmac\0snps,dwmac-5.10a";
				reg = <0x482c0000 0x4000>;
				reg-names = "stmmaceth";
				interrupts-extended = <0x06 0x00 0x82 0x04 0x22 0x44 0x04>;
				interrupt-names = "macirq\0eth_wake_irq";
				clock-names = "stmmaceth\0mac-clk-tx\0mac-clk-rx\0ptp_ref\0ethstp\0eth-ck";
				clocks = <0x13 0x149 0x13 0x148 0x13 0x147 0x13 0x13e 0x13 0x14d 0x13 0x13c>;
				st,syscon = <0x12 0x3000 0xffffffff>;
				snps,mixed-burst;
				snps,pbl = <0x02>;
				snps,txqos = <0x07>;
				snps,rxqos = <0x07>;
				snps,axi-config = <0x5e>;
				snps,tso;
				feature-domains = <0x18 0x3c>;
				power-domains = <0x0c>;
				wakeup-source;
				status = "okay";
				snps,mtl-rx-config = <0x5f>;
				snps,mtl-tx-config = <0x60>;
				pinctrl-0 = <0x61 0x62>;
				pinctrl-1 = <0x63 0x64>;
				pinctrl-names = "default\0sleep";
				phy-mode = "rgmii-id";
				max-speed = <0x3e8>;
				phy-handle = <0x65>;
				st,eth-clk-sel;
				snps,ext-systime;
				phandle = <0x11f>;

				stmmac-axi-config {
					snps,wr_osr_lmt = <0x07>;
					snps,rd_osr_lmt = <0x07>;
					snps,blen = <0x00 0x00 0x00 0x00 0x10 0x08 0x04>;
					phandle = <0x5e>;
				};

				rx-queues-config {
					snps,rx-queues-to-use = <0x02>;
					phandle = <0x5f>;

					queue0 {
					};

					queue1 {
					};
				};

				tx-queues-config {
					snps,tx-queues-to-use = <0x04>;
					phandle = <0x60>;

					queue0 {
					};

					queue1 {
					};

					queue2 {
					};

					queue3 {
					};
				};

				mdio1 {
					#address-cells = <0x01>;
					#size-cells = <0x00>;
					compatible = "snps,dwmac-mdio";

					ethernet-phy@4 {
						compatible = "ethernet-phy-id001c.c916";
						reset-gpios = <0x66 0x09 0x01>;
						reset-assert-us = <0x2710>;
						reset-deassert-us = <0x13880>;
						realtek,eee-disable;
						reg = <0x04>;
						phandle = <0x65>;
					};
				};
			};

 

 

Can anyone help me to solve this error ?

Thank you

2 REPLIES 2
Olivier GALLIEN
ST Employee

Hi @zakariazh ,

 

Seems you are using old SW version (Alpha program).

I recommend first to take the official 5.1 version STM32 MPU ecosystem release note - stm32mpu 

Olivier 

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi @Olivier GALLIEN,

Thank you for your reply.

I am using Yocto and recompiled U-Boot 2022-10 from the mickledore branch (the latest version) and I still have this problem. Note also that I don't have this problem in linux when disabling the ethernet switch as described here https://wiki.st.com/stm32mpu/wiki/Ethernet_switch_device_tree_configuration#DT_configuration_example_to_transform_ethernet_switch_to_ethernet_standalone_at_board_level. (note that the mickledore version of u-boot disable it also)

Do you have any other ideas?

Thanks