net: ethernet: mediatek: some bug fixes for PDAM and HW LRO
Subsystems (4)
cover net: ethernet: mediatek: some bug fixes for PDAM and HW LRO
1) Add to stop PDMA while stopping the frame engine
2) Modify the register settings for LRO relinquishments
3) Jump out from the waiting loop while LRO relinquishments are done
Nelson Chang (2):
net: ethernet: mediatek: add to stop PDMA while stopping the frame
engine
net: ethernet: mediatek: bug fix to disable HW LRO
drivers/net/ethernet/mediatek/mtk_eth_soc.c | 2 ++ drivers/net/ethernet/mediatek/mtk_eth_soc.h | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 drivers/net/ethernet/mediatek/mtk_eth_soc.c mode change 100644 => 100755 drivers/net/ethernet/mediatek/mtk_eth_soc.h
Signature · 1 line
1.9.1
PATCH 1/2 net: ethernet: mediatek: add to stop PDMA while stopping the frame engine
Stop PDMA while the frame engine is going to stop.
--- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/mediatek/mtk_eth_soc.c +1 -0
@@ -1784,6 +1784,7 @@ static int mtk_stop(struct net_device *dev)napi_disable (ð->rx_napi);mtk_stop_dma (eth,MTK_QDMA_GLO_CFG ); +mtk_stop_dma (eth,MTK_PDMA_GLO_CFG );mtk_dma_free (eth);
Signature · 1 line
1.9.1
A message that is not in the archive (sent off-list or not yet received): 1474871630-4134-1-git-send-email-nelson.chang-NuS5LvNUpcJWk0Htik3J/[email protected]
PATCH 2/2 net: ethernet: mediatek: bug fix to disable HW LRO
(1) Modify the register settings for LRO relinquishments
(2) Jump out from the waiting loop while LRO relinquishments are done
--- drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 + drivers/net/ethernet/mediatek/mtk_eth_soc.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)
drivers/net/ethernet/mediatek/mtk_eth_soc.c +1 -0
@@ -1374,6 +1374,7 @@ static void mtk_hwlro_rx_uninit(struct mtk_eth *eth)msleep (20 );continue ; } +break ; }/* invalidate lro rings */
drivers/net/ethernet/mediatek/mtk_eth_soc.h +2 -2
@@ -102,8 +102,8 @@#define MTK_LRO_EN BIT(0)#define MTK_L3_CKS_UPD_EN BIT(7)#define MTK_LRO_ALT_PKT_CNT_MODE BIT(21) -#define MTK_LRO_RING_RELINQUISH_REQ (0x3 << 26) -#define MTK_LRO_RING_RELINQUISH_DONE (0x3 << 29) +#define MTK_LRO_RING_RELINQUISH_REQ (0x7 << 26) +#define MTK_LRO_RING_RELINQUISH_DONE (0x7 << 29)#define MTK_PDMA_LRO_CTRL_DW1 0x984#define MTK_PDMA_LRO_CTRL_DW2 0x988
Signature · 1 line
1.9.1
Re: [PATCH net-next 2/2] net: ethernet: mediatek: bug fix to disable HW LRO
Hello.
Quoted 2 lines · Nelson Chang
(1) Modify the register settings for LRO relinquishments
(2) Jump out from the waiting loop while LRO relinquishments are done
Why this is done in a single patch?
Quoted 1 line
Signed-off-by Nelson Chang <[email protected]>
[...]
MBR, Sergei
David Miller
maintainerFrom: Nelson Chang <[email protected]>
Date: Mon, 26 Sep 2016 14:33:48 +0800
Quoted 3 lines
1) Add to stop PDMA while stopping the frame engine
2) Modify the register settings for LRO relinquishments
3) Jump out from the waiting loop while LRO relinquishments are done
Series applied, but like Sergei I think you should have split patch #2 into two separate patches.
You even list the changes individually here in your header posting.