Re: [LEDE-DEV] Transmit timeouts with mtk_eth_soc and MT7621

2017-08-25 Thread Mingyu Li
Hi. i check the code again. found xmit_more can cause tx timeout. you can reference this. https://www.mail-archive.com/netdev@vger.kernel.org/msg123334.html so the patch should be like this. edit mtk_eth_soc.c tx_num = fe_cal_txd_req(skb); if (unlikely(fe_empty_txd(ring) <=

Re: [LEDE-DEV] Transmit timeouts with mtk_eth_soc and MT7621

2017-07-24 Thread Mingyu Li
i guess more other interrupts maybe cause the problem. because the ethernet receive flow is interrupt by other hardware. so use sd card, wifi or usb can generate interrupts. 2017-07-24 17:19 GMT+08:00 Kristian Evensen <kristian.even...@gmail.com>: > Hi, > > On Mon, Jul 24, 2017 at

Re: [LEDE-DEV] Transmit timeouts with mtk_eth_soc and MT7621

2017-07-23 Thread Mingyu Li
Hi. i guest the problem is there are some tx data not free. but tx interrupt is clean. cause tx timeout. the old code will free data first then clean interrupt. but there maybe new data arrive after free data before clean interrupt. so change it to clean interrupt first then clean all tx data(

Re: [LEDE-DEV] MT7621 support Jumbo frames

2017-04-27 Thread Mingyu Li
Hi Gaetano Catalli i change your mtk_eth_soc.c driver part. because mt7621 don't need to set FE_GDMA1_FWD_CFG register to enable jumbo frame. and keep MAX_RX_LENGTH because other chips need it. i also made a patch on github