UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
786 Views
Registered: ‎08-04-2016

10G ethernet continuously prints error messages

Jump to solution

Hello,

 

I am using the 10G design generated from XAPP1305 with no modifications. My device tree was generated using hsi, again no modifications. When I boot the system, it starts printing the following error messages continuously -

[    8.261010] net eth1: DMA Rx error 0x15019
[    8.265071] net eth1: Current BD is at: 0x6bfff000
[    8.269886] net eth1: DMA Rx error 0x14109
[    8.273925] net eth1: Current BD is at: 0x6bfff000
[    8.278764] net eth1: DMA Rx error 0x14109
[    8.282780] net eth1: Current BD is at: 0x6bfff000
[    8.287605] net eth1: DMA Rx error 0x14109
[    8.291635] net eth1: Current BD is at: 0x6bfff000
[    8.296458] net eth1: DMA Rx error 0x14109
...

This printing starts even before the login prompt appears. Why is this happening? What's the solution?

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
699 Views
Registered: ‎12-04-2016

Re: 10G ethernet continuously prints error messages

Jump to solution

Hi @rajatrao

 

Try creating petalinux project with the BSP provided along the xapp1305 reference design for 10G and here are the steps followed to build the images and upon boot, I haven't see any DMA issues
https://www.xilinx.com/support/documentation/application_notes/xapp1305-ps-pl-based-ethernet-solution.pdf


1. petalinux-create -t project -s  /xapp1305-ps-pl-based-ethernet-solution/software/bsps/pl_eth_10G/pl_eth_10g.bsp
2. cd pl_eth_10G/
3. mkdir -p project-spec/meta-user/recipes-bsp/fsbl/files
4. cp xapp1305-ps-pl-based-ethernet-solution/software/patches/0001-fsbl-si570-clk-config-on-A53.patch project-spec/meta-user/recipes-bsp/fsbl/files/
5. Copy attached fsbl_%.bbappend to project-spec/meta-user/recipes-bsp/fsbl/
6. petalinux-build


Best Regards
Shabbir

0 Kudos
6 Replies
Moderator
Moderator
745 Views
Registered: ‎07-31-2012

Re: 10G ethernet continuously prints error messages

Jump to solution

Hi @rajatrao,

 

Please refer to patch required for 10G which is provided in XAPP1305 package and required dtsi changes as mentioned in system-user.dtsi file copy of 10G.

Refer https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841830/PS+and+PL+based+Ethernet+in+Zynq+MPSoC for more details.

 

Regards

Praveen


-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Adventurer
Adventurer
734 Views
Registered: ‎08-04-2016

Re: 10G ethernet continuously prints error messages

Jump to solution

As per the link, my linux config has the <>Xilinx AXI DMAS engine disabled.

 

In my device tree, I have the mac address entry, my device tree entry looks like -

/ {
	aliases {
		ethernet1 = &xxv_ethernet_0;
	};

	amba_pl: amba_pl@0 {
		#address-cells = <2>;
		#size-cells = <2>;
		compatible = "simple-bus";
		ranges ;
		axi_dma_0: dma@80000000 {
			#dma-cells = <1>;
			clock-names = "s_axi_lite_aclk", "m_axi_sg_aclk";
			clocks = <&clk 71>, <&clk 71>;
			compatible = "xlnx,eth-dma";
			interrupt-names = "mm2s_introut", "s2mm_introut";
			interrupt-parent = <&gic>;
			interrupts = <0 89 4 0 90 4>;
			reg = <0x0 0x80000000 0x0 0x10000>;
			xlnx,include-dre ;
		};
		xxv_ethernet_0: ethernet@80010000 {
			local-mac-address = [00 0a 35 00 22 01];
			axistream-connected = <&axi_dma_0>;
			axistream-control-connected = <&axi_dma_0>;
			clock-frequency = <100000000>;
			compatible = "xlnx,xxv-ethernet-1.0";
			device_type = "network";
			phy-mode = "base-r";
			reg = <0x0 0x80010000 0x0 0x10000>;
			xlnx = <0x0>;
			xlnx,add-gt-cntrl-sts-ports = <0x0>;
			xlnx,anlt-clk-in-mhz = <0x64>;
			xlnx,axis-tdata-width = <0x40>;
			xlnx,axis-tkeep-width = <0x7>;
			xlnx,base-r-kr = "BASE-R";
			xlnx,clocking = "Asynchronous";
			xlnx,core = "Ethernet MAC+PCS/PMA 64-bit";
			xlnx,data-path-interface = "AXI Stream";
			xlnx,enable-datapath-parity = <0x0>;
			xlnx,enable-pipeline-reg = <0x0>;
			xlnx,enable-preemption = <0x0>;
			xlnx,enable-preemption-fifo = <0x0>;
			xlnx,enable-rx-flow-control-logic = <0x0>;
			xlnx,enable-time-stamping = <0x0>;
			xlnx,enable-tx-flow-control-logic = <0x0>;
			xlnx,enable-vlane-adjust-mode = <0x0>;
			xlnx,family-chk = "zynquplus";
			xlnx,fast-sim-mode = <0x0>;
			xlnx,gt-diffctrl-width = <0x4>;
			xlnx,gt-drp-clk = "100.00";
			xlnx,gt-group-select = "Quad X0Y0";
			xlnx,gt-location = <0x1>;
			xlnx,gt-ref-clk-freq = "156.25";
			xlnx,gt-type = "GTH";
			xlnx,include-auto-neg-lt-logic = "None";
			xlnx,include-axi4-interface = <0x1>;
			xlnx,include-dre ;
			xlnx,include-fec-logic = <0x0>;
			xlnx,include-rsfec-logic = <0x0>;
			xlnx,include-shared-logic = <0x1>;
			xlnx,include-user-fifo = <0x1>;
			xlnx,lane1-gt-loc = "X0Y4";
			xlnx,lane2-gt-loc = "NA";
			xlnx,lane3-gt-loc = "NA";
			xlnx,lane4-gt-loc = "NA";
			xlnx,line-rate = <0xa>;
			xlnx,mii-ctrl-width = <0x4>;
			xlnx,mii-data-width = <0x20>;
			xlnx,num-of-cores = <0x1>;
			xlnx,ptp-clocking-mode = <0x0>;
			xlnx,ptp-operation-mode = <0x2>;
			xlnx,runtime-switch = <0x0>;
			xlnx,rxmem = <0x40000>;
			xlnx,switch-1-10-25g = <0x0>;
			xlnx,tx-latency-adjust = <0x0>;
			xlnx,tx-total-bytes-width = <0x4>;
			xlnx,xgmii-interface = <0x1>;
			xxv_ethernet_0_mdio: mdio {
				#address-cells = <1>;
				#size-cells = <0>;
			};
		};
	};
};

I still get the same DMA Rx error messages.

 

If I comment out the following two lines,

//axistream-connected = <&axi_dma_0>;
//axistream-control-connected = <&axi_dma_0>;

then I get the error -

[    2.194236] xilinx_axienet: probe of 80010000.ethernet failed with error -22 

What is the problem?

 

Could you please answer the following questions -

  1. What does error -22 indicate?
  2. Why is the DMA Rx message being printed? Which module is responsible for this?
  3. Should the axistream related properties be deleted or not?
  4. Why should AXI DMAS engine support be disabled? In the device tree, we are using a dummy compatible=eth-dma so no driver will get loaded anyway, right?
0 Kudos
Moderator
Moderator
700 Views
Registered: ‎12-04-2016

Re: 10G ethernet continuously prints error messages

Jump to solution

Hi @rajatrao

 

Try creating petalinux project with the BSP provided along the xapp1305 reference design for 10G and here are the steps followed to build the images and upon boot, I haven't see any DMA issues
https://www.xilinx.com/support/documentation/application_notes/xapp1305-ps-pl-based-ethernet-solution.pdf


1. petalinux-create -t project -s  /xapp1305-ps-pl-based-ethernet-solution/software/bsps/pl_eth_10G/pl_eth_10g.bsp
2. cd pl_eth_10G/
3. mkdir -p project-spec/meta-user/recipes-bsp/fsbl/files
4. cp xapp1305-ps-pl-based-ethernet-solution/software/patches/0001-fsbl-si570-clk-config-on-A53.patch project-spec/meta-user/recipes-bsp/fsbl/files/
5. Copy attached fsbl_%.bbappend to project-spec/meta-user/recipes-bsp/fsbl/
6. petalinux-build


Best Regards
Shabbir

0 Kudos
238 Views
Registered: ‎12-16-2015

Re: 10G ethernet continuously prints error messages

Jump to solution

Today I ran into the same problem.  I am not using ZCU102 board so I guess I can't use the attached FSBL file and the patches.

What is the issue here? which driver print out this error?

0 Kudos
Adventurer
Adventurer
236 Views
Registered: ‎08-04-2016

Re: 10G ethernet continuously prints error messages

Jump to solution

Actually, it was a device tree issue. FSBL, etc. are not what solved the problem.

Use HSI.

0 Kudos
234 Views
Registered: ‎12-16-2015

Re: 10G ethernet continuously prints error messages

Jump to solution

Thanks for the quick response.  I never use HSI before.  Any sample document?  Thanks

0 Kudos