linux/drivers/net/ethernet/airoha
Leto Liu (刘涛) 7e170da2ed net: airoha: Add retry mechanism to airoha_qdma_set_trtcm_param()
CPU accesses QDMA via the bus. When multiple modules are using the bus
simultaneously, CPU access to QDMA may encounter bus timeouts and fails,
resulting in QDMA configuration failures and potentially causing packet
transmission issues. In order to mitigate the issue, introduce a retry
mechanism to airoha_qdma_set_trtcm_param routine in order to ensure the
configuration is correctly applied to the hardware.

It's enough to try a second time for the TRTCM config to be actually
applied to make sure we are not in the middle of bucket handling as it does
operate on fixed time slot internally.

Fixes: ef1ca92713 ("net: airoha: Add sched HTB offload support")
Signed-off-by: Leto Liu (刘涛) <Leto.Liu@airoha.com>
[ improve commit description, drop memory block, apply better loop logic]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Link: https://patch.msgid.link/20260930065855.46171-1-ansuelsmth@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-10-05 17:45:01 -07:00
..
airoha_eth.c net: airoha: Add retry mechanism to airoha_qdma_set_trtcm_param() 2026-10-05 17:45:01 -07:00
airoha_eth.h net: airoha: Add retry mechanism to airoha_qdma_set_trtcm_param() 2026-10-05 17:45:01 -07:00
airoha_npu.c net: airoha: npu: cancel wdt_work after releasing the WDT IRQ 2026-09-23 19:16:30 -07:00
airoha_ppe_debugfs.c net: airoha: Fix debugfs new-tuple display for IPv4 ROUTE entries 2026-06-13 15:18:42 -07:00
airoha_ppe.c net: pass net_device_path_ctx to dev_fill_forward_path() 2026-08-10 13:02:06 +02:00
airoha_regs.h net: airoha: defer GDM3/GDM4 WAN mode and GDM2 loopback to QoS offload 2026-07-30 11:36:46 +02:00
Kconfig net: airoha: Fix typos in comments and Kconfig 2026-06-15 15:45:45 -07:00
Makefile net: airoha: Introduce PPE debugfs support 2025-03-04 13:22:10 +01:00