Altera_Forum
Honored Contributor
7 years agodevice tree source ehternet and skew timing => performance issue ?
hello,
i ve some problem with the network performance and the cyclone 5 on linux. i try different kernel versions, after some error research i found the solution, it was/is the ethernet skew. with the socfpga default device tree source @github (socfpga_cyclone5_sockit.dts), i get only ~10-40 Mbits/s with iperf. i change the skew at the dts and the speed is now ~600Mbits/s. That was the original stuff:&gmac1 {
status = "okay";
phy-mode = "rgmii";
rxd0-skew-ps = <0>;
rxd1-skew-ps = <0>;
rxd2-skew-ps = <0>;
rxd3-skew-ps = <0>;
txen-skew-ps = <0>;
txc-skew-ps = <2600>;
rxdv-skew-ps = <0>;
rxc-skew-ps = <2000>;
}; i change it to: &gmac1 {
status = "okay";
phy-mode = "rgmii";
txd0-skew-ps = <0>; /* -420ps */
txd1-skew-ps = <0>; /* -420ps */
txd2-skew-ps = <0>; /* -420ps */
txd3-skew-ps = <0>; /* -420ps */
rxd0-skew-ps = <420>; /* 0ps */
rxd1-skew-ps = <420>; /* 0ps */
rxd2-skew-ps = <420>; /* 0ps */
rxd3-skew-ps = <420>; /* 0ps */
txen-skew-ps = <0>; /* -420ps */
txc-skew-ps = <1860>; /* 960ps */
rxdv-skew-ps = <420>; /* 0ps */
rxc-skew-ps = <1680>; /* 780ps */
max-frame-size = <3800>;
status = "okay";
}; Where can i get the skew settings? i dont want to roll the dice. we use an custom design board with cylcone 5 and an micrel ksz9031 phy. thanks for the support