mirror of
				https://git.openwrt.org/openwrt/openwrt.git
				synced 2025-10-31 18:15:48 +00:00 
			
		
		
		
	Refresh patches 6.12 for airoha and econet Fixes:122135b964("airoha: an7581: add support for kernel 6.12") Fixes:73d0f92460("kernel: Add new platform EcoNet MIPS") Signed-off-by: Leo Barsky <leobrsky@proton.me> Link: https://github.com/openwrt/openwrt/pull/20073 Signed-off-by: Robert Marko <robimarko@gmail.com>
		
			
				
	
	
		
			28 lines
		
	
	
		
			1020 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			1020 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| From 5f795590380476f1c9b7ed0ac945c9b0269dc23a Mon Sep 17 00:00:00 2001
 | |
| From: Lorenzo Bianconi <lorenzo@kernel.org>
 | |
| Date: Fri, 3 Jan 2025 13:17:02 +0100
 | |
| Subject: [PATCH 1/4] net: airoha: Enable Tx drop capability for each Tx DMA
 | |
|  ring
 | |
| 
 | |
| This is a preliminary patch in order to enable hw Qdisc offloading.
 | |
| 
 | |
| Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
 | |
| Signed-off-by: Paolo Abeni <pabeni@redhat.com>
 | |
| ---
 | |
|  drivers/net/ethernet/mediatek/airoha_eth.c | 4 ++++
 | |
|  1 file changed, 4 insertions(+)
 | |
| 
 | |
| --- a/drivers/net/ethernet/mediatek/airoha_eth.c
 | |
| +++ b/drivers/net/ethernet/mediatek/airoha_eth.c
 | |
| @@ -1789,6 +1789,10 @@ static int airoha_qdma_init_tx_queue(str
 | |
|  		WRITE_ONCE(q->desc[i].ctrl, cpu_to_le32(val));
 | |
|  	}
 | |
|  
 | |
| +	/* xmit ring drop default setting */
 | |
| +	airoha_qdma_set(qdma, REG_TX_RING_BLOCKING(qid),
 | |
| +			TX_RING_IRQ_BLOCKING_TX_DROP_EN_MASK);
 | |
| +
 | |
|  	airoha_qdma_wr(qdma, REG_TX_RING_BASE(qid), dma_addr);
 | |
|  	airoha_qdma_rmw(qdma, REG_TX_CPU_IDX(qid), TX_RING_CPU_IDX_MASK,
 | |
|  			FIELD_PREP(TX_RING_CPU_IDX_MASK, q->head));
 |