File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
drivers/net/ethernet/mediatek Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -3425,9 +3425,12 @@ static int mtk_hw_init(struct mtk_eth *eth)
3425
3425
mtk_w32 (eth , 0x21021000 , MTK_FE_INT_GRP );
3426
3426
3427
3427
if (MTK_HAS_CAPS (eth -> soc -> caps , MTK_NETSYS_V2 )) {
3428
- /* PSE should not drop port8 and port9 packets */
3428
+ /* PSE should not drop port8 and port9 packets from WDMA Tx */
3429
3429
mtk_w32 (eth , 0x00000300 , PSE_DROP_CFG );
3430
3430
3431
+ /* PSE should drop packets to port 8/9 on WDMA Rx ring full */
3432
+ mtk_w32 (eth , 0x00000300 , PSE_PPE0_DROP );
3433
+
3431
3434
/* PSE Free Queue Flow Control */
3432
3435
mtk_w32 (eth , 0x01fa01f4 , PSE_FQFC_CFG2 );
3433
3436
Original file line number Diff line number Diff line change 127
127
#define PSE_FQFC_CFG1 0x100
128
128
#define PSE_FQFC_CFG2 0x104
129
129
#define PSE_DROP_CFG 0x108
130
+ #define PSE_PPE0_DROP 0x110
130
131
131
132
/* PSE Input Queue Reservation Register*/
132
133
#define PSE_IQ_REV (x ) (0x140 + (((x) - 1) << 2))
You can’t perform that action at this time.
0 commit comments