imx8mp平台rtl8211f千兆网丢包

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

imx8mp平台rtl8211f千兆网丢包

跳至解决方案
1,006 次查看
xjy198903
Contributor III

我自制了一块imx8mp-ddr4-evk主板,两个网口完全按照官方开发板做的,软件使用的是real-time-edge-2.5,phy芯片也跟官方一样:rtl8211f,现在的问题是两个网口百兆网都是通的,千兆网会出现丢包现象,网卡的设备树配置信息如下:

&eqos {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_eqos>;
phy-mode = "rgmii-id";
phy-handle = <&ethphy0>;
snps,force_thresh_dma_mode;
snps,mtl-tx-config = <&mtl_tx_setup>;
snps,mtl-rx-config = <&mtl_rx_setup>;
status = "okay";
 
mdio {
compatible = "snps,dwmac-mdio";
#address-cells = <1>;
#size-cells = <0>;
 
ethphy0: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
eee-broken-1000t;
realtek,clkout-disable;
};
};
 
mtl_tx_setup: tx-queues-config {
snps,tx-queues-to-use = <5>;
snps,tx-sched-sp;
queue0 {
snps,dcb-algorithm;
snps,priority = <0x1>;
};
queue1 {
snps,dcb-algorithm;
snps,priority = <0x2>;
};
queue2 {
snps,dcb-algorithm;
snps,priority = <0x4>;
};
queue3 {
snps,dcb-algorithm;
snps,priority = <0x8>;
};
queue4 {
snps,dcb-algorithm;
snps,priority = <0xf0>;
};
};
mtl_rx_setup: rx-queues-config {
snps,rx-queues-to-use = <5>;
snps,rx-sched-sp;
queue0 {
snps,dcb-algorithm;
snps,priority = <0x1>;
snps,map-to-dma-channel = <0>;
};
queue1 {
snps,dcb-algorithm;
snps,priority = <0x2>;
snps,map-to-dma-channel = <1>;
};
queue2 {
snps,dcb-algorithm;
snps,priority = <0x4>;
snps,map-to-dma-channel = <2>;
};
queue3 {
snps,dcb-algorithm;
snps,priority = <0x8>;
snps,map-to-dma-channel = <3>;
};
queue4 {
snps,dcb-algorithm;
snps,priority = <0xf0>;
snps,map-to-dma-channel = <4>;
};
};
};
 
&fec {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_fec>;
phy-mode = "rgmii-id";
phy-handle = <&ethphy1>;
fsl,magic-packet;
status = "okay";
 
mdio {
#address-cells = <1>;
#size-cells = <0>;
 
ethphy1: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
eee-broken-1000t;
reset-gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;
reset-assert-us = <10000>;
reset-deassert-us = <80000>;
realtek,aldps-enable;
realtek,clkout-disable;
};
};
};
使用ifconfig工具,发现大量的rx错误:
xjy198903_0-1689933592476.png

 

0 项奖励
1 解答
998 次查看
xjy198903
Contributor III

接口使用的是上面的是fec接口

在原帖中查看解决方案

0 项奖励
1 回复
999 次查看
xjy198903
Contributor III

接口使用的是上面的是fec接口

0 项奖励