mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
nvethernet: fix spin lock recursion
Issue: 1) dev_queue_xmit acquired the per queue tx lock and called driver transmit routine. 2) During the transmit - common interrupt asserted which tries to acquire the same tx lock which resulted in lock recursion. Fix: Move the lock acquire to tasklet context under common isr. Bug 3773016 Change-Id: I7cfd49beb1238286d3bccd9e4b9ccc054c4f6d30 Signed-off-by: Bhadram Varka <vbhadram@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2770227 Reviewed-by: Narayan Reddy <narayanr@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
Revanth Kumar Uppala
parent
1ffcf6d286
commit
f667be2c63
@@ -2929,6 +2929,8 @@ static int ether_close(struct net_device *ndev)
|
||||
/* stop tx ts pending SKB workqueue and remove skb nodes */
|
||||
ether_flush_tx_ts_skb_list(pdata);
|
||||
|
||||
tasklet_kill(&pdata->lane_restart_task);
|
||||
|
||||
ether_stop_ivc(pdata);
|
||||
|
||||
if (pdata->xpcs_rst) {
|
||||
@@ -6508,6 +6510,8 @@ static int ether_probe(struct platform_device *pdev)
|
||||
pdata->rx_pcs_m_enabled = false;
|
||||
atomic_set(&pdata->tx_ts_ref_cnt, -1);
|
||||
atomic_set(&pdata->set_speed_ref_cnt, OSI_DISABLE);
|
||||
tasklet_setup(&pdata->lane_restart_task,
|
||||
ether_restart_lane_bringup_task);
|
||||
#ifdef ETHER_NVGRO
|
||||
__skb_queue_head_init(&pdata->mq);
|
||||
__skb_queue_head_init(&pdata->fq);
|
||||
@@ -6770,6 +6774,8 @@ static int ether_suspend_noirq(struct device *dev)
|
||||
}
|
||||
#endif /* MACSEC_SUPPORT */
|
||||
|
||||
tasklet_kill(&pdata->lane_restart_task);
|
||||
|
||||
/* stop workqueue */
|
||||
cancel_delayed_work_sync(&pdata->tx_ts_work);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user