mt76: mt7996: Fix 'sleep while atomic' in mt7996_mac_sta_rc_work()
Subsystems (2)
Lorenzo Bianconi
maintainercover mt76: mt7996: Fix 'sleep while atomic' in mt7996_mac_sta_rc_work()
Fix a 'sleep while atomic' issue in mt7996_mac_sta_rc_work() since mt7996_mcu_add_rate_ctrl() and mt7996_mcu_set_fixed_field() can't run in atomic context.
---
Lorenzo Bianconi (5):
wifi: mt76: Assume __mt76_connac_mcu_alloc_sta_req runs in atomic context
wifi: mt76: Move RCU section in mt7996_mcu_set_fixed_field()
wifi: mt76: Move RCU section in mt7996_mcu_add_rate_ctrl_fixed()
wifi: mt76: Move RCU section in mt7996_mcu_add_rate_ctrl()
wifi: mt76: Remove RCU section in mt7996_mac_sta_rc_work()
.../net/wireless/mediatek/mt76/mt76_connac_mcu.c | 2 +- drivers/net/wireless/mediatek/mt76/mt7996/mac.c | 40 +---- drivers/net/wireless/mediatek/mt76/mt7996/main.c | 5 +- drivers/net/wireless/mediatek/mt76/mt7996/mcu.c | 188 +++++++++++++++------ drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h | 16 +- 5 files changed, 152 insertions(+), 99 deletions(-)
---
base-commit: 1b98f357dadd6ea613a435fbaef1a5dd7b35fd21
change-id: 20250603-mt7996-sleep-while-atomic-db1877f728cd
Best regards,
Signature · 1 line
Lorenzo Bianconi <[email protected]>
Lorenzo Bianconi
maintainerPATCH 1/5 wifi: mt76: Assume __mt76_connac_mcu_alloc_sta_req runs in atomic context
Rely on GFP_ATOMIC flag in __mt76_connac_mcu_alloc_sta_req since it can run in atomic context. This is a preliminary patch to fix a 'sleep while atomic' issue in mt7996_mac_sta_rc_work().
--- drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c +1 -1
@@ -287,7 +287,7 @@ __mt76_connac_mcu_alloc_sta_req(struct mt76_dev *dev, struct mt76_vif_link *mvifmt76_connac_mcu_get_wlan_idx (dev, wcid, &hdr.wlan_idx_lo, &hdr.wlan_idx_hi); - skb =mt76_mcu_msg_alloc (dev,NULL , len); + skb =__mt76_mcu_msg_alloc (dev,NULL , len, len,GFP_ATOMIC );if (!skb)return ERR_PTR (-ENOMEM );
Signature · 1 line
2.49.0
Lorenzo Bianconi
maintainerPATCH 2/5 wifi: mt76: Move RCU section in mt7996_mcu_set_fixed_field()
In reply to Lorenzo BianconiSince mt76_mcu_skb_send_msg() routine can't be executed in atomic context, move RCU section in mt7996_mcu_set_fixed_field() and execute mt76_mcu_skb_send_msg() in non-atomic context. This is a preliminary patch to fix a 'sleep while atomic' issue in mt7996_mac_sta_rc_work().
--- drivers/net/wireless/mediatek/mt76/mt7996/mac.c | 5 +- drivers/net/wireless/mediatek/mt76/mt7996/main.c | 3 +- drivers/net/wireless/mediatek/mt76/mt7996/mcu.c | 68 ++++++++++++++++------ drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h | 10 ++-- 4 files changed, 57 insertions(+), 29 deletions(-)
drivers/net/wireless/mediatek/mt76/mt7996/mac.c +2 -3
@@ -2405,11 +2405,10 @@ void mt7996_mac_sta_rc_work(struct work_struct *work) IEEE80211_RC_BW_CHANGED))mt7996_mcu_add_rate_ctrl (dev ,vif ,link_conf ,link_sta ,link ,msta_link , -true ); +link_id ,true );if (changed &IEEE80211_RC_SMPS_CHANGED ) -mt7996_mcu_set_fixed_field (dev, link_sta, link, - msta_link,NULL , +mt7996_mcu_set_fixed_field (dev, msta,NULL , link_id,RATE_PARAM_MMPS_UPDATE );spin_lock_bh (&dev->mt76.sta_poll_lock);
drivers/net/wireless/mediatek/mt76/mt7996/main.c +2 -1
@@ -1114,7 +1114,8 @@ mt7996_mac_sta_event(struct mt7996_dev *dev, struct ieee80211_vif *vif, err =mt7996_mcu_add_rate_ctrl (dev, vif, link_conf, link_sta, link, - msta_link, false); + msta_link, link_id, + false);if (err)return err;
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c +49 -19
136 lines not on this page · raw message
drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h +4 -6
@@ -625,18 +625,16 @@ int mt7996_mcu_add_rate_ctrl(struct mt7996_dev *dev,struct ieee80211_bss_conf *link_conf, struct ieee80211_link_sta *link_sta, struct mt7996_vif_link *link, - struct mt7996_sta_link *msta_link, bool changed); + struct mt7996_sta_link *msta_link, + u8 link_id, bool changed);int mt7996_set_channel (struct mt76_phy *mphy);int mt7996_mcu_set_chan_info (struct mt7996_phy *phy,u16 tag);int mt7996_mcu_set_tx (struct mt7996_dev *dev,struct ieee80211_vif *vif,struct ieee80211_bss_conf *link_conf);int mt7996_mcu_set_fixed_rate_ctrl (struct mt7996_dev *dev,void *data,u16 version); -int mt7996_mcu_set_fixed_field (struct mt7996_dev *dev, -struct ieee80211_link_sta *link_sta, -struct mt7996_vif_link *link, -struct mt7996_sta_link *msta_link, -void *data,u32 field); +int mt7996_mcu_set_fixed_field (struct mt7996_dev *dev,struct mt7996_sta *msta, +void *data,u8 link_id,u32 field);int mt7996_mcu_set_eeprom (struct mt7996_dev *dev);int mt7996_mcu_get_eeprom (struct mt7996_dev *dev,u32 offset,u8 *buf,u32 buf_len);int mt7996_mcu_get_eeprom_free_block (struct mt7996_dev *dev,u8 *block_num);
Signature · 1 line
2.49.0
Lorenzo Bianconi
maintainerPATCH 3/5 wifi: mt76: Move RCU section in mt7996_mcu_add_rate_ctrl_fixed()
In reply to Lorenzo BianconiSince mt7996_mcu_set_fixed_field() can't be executed in a RCU critical section, move RCU section in mt7996_mcu_add_rate_ctrl_fixed() and run mt7996_mcu_set_fixed_field() in non-atomic context. This is a preliminary patch to fix a 'sleep while atomic' issue in mt7996_mac_sta_rc_work().
--- drivers/net/wireless/mediatek/mt76/mt7996/mcu.c | 86 ++++++++++++++++--------- 1 file changed, 57 insertions(+), 29 deletions(-)
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c +57 -29
@@ -1977,51 +1977,74 @@ int mt7996_mcu_set_fixed_field(struct mt7996_dev *dev, struct mt7996_sta *msta, }static int -mt7996_mcu_add_rate_ctrl_fixed (struct mt7996_dev *dev, -struct ieee80211_link_sta *link_sta, -struct mt7996_vif_link *link, -struct mt7996_sta_link *msta_link, -u8 link_id) +mt7996_mcu_add_rate_ctrl_fixed (struct mt7996_dev *dev,struct mt7996_sta *msta, +struct ieee80211_vif *vif,u8 link_id) { -struct cfg80211_chan_def *chandef = &link->phy->mt76->chandef; -struct cfg80211_bitrate_mask *mask = &link->bitrate_mask; -enum nl80211_band band = chandef->chan->band; -struct mt7996_sta *msta = msta_link->sta; +struct ieee80211_link_sta *link_sta; +struct cfg80211_bitrate_mask mask; +struct mt7996_sta_link *msta_link; +struct mt7996_vif_link *link;struct sta_phy_uni phy = {}; -int ret, nrates =0 ; +struct ieee80211_sta *sta; +int ret, nrates =0 , idx; +enum nl80211_band band; +bool has_he;#define __sta_phy_bitrate_mask_check (_mcs, _gi, _ht, _he) \ do { \ - u8 i, gi = mask->control[band]._gi; \ + u8 i, gi = mask.control[band]._gi; \ gi = (_he) ? gi : gi == NL80211_TXRATE_FORCE_SGI; \ phy.sgi = gi; \ - phy.he_ltf = mask->control[band].he_ltf; \ - for (i = 0; i < ARRAY_SIZE(mask->control[band]._mcs); i++) { \ - if (!mask->control[band]._mcs[i]) \ + phy.he_ltf = mask.control[band].he_ltf; \ + for (i = 0; i < ARRAY_SIZE(mask.control[band]._mcs); i++) { \ + if (!mask.control[band]._mcs[i]) \ continue; \ - nrates += hweight16(mask->control[band]._mcs[i]); \ - phy.mcs = ffs(mask->control[band]._mcs[i]) - 1; \ + nrates += hweight16(mask.control[band]._mcs[i]); \ + phy.mcs = ffs(mask.control[band]._mcs[i]) - 1; \ if (_ht) \ phy.mcs += 8 * i; \ } \ } while (0) -if (link_sta->he_cap.has_he) { +rcu_read_lock (); + + link =mt7996_vif_link (dev, vif, link_id); +if (!link) + goto error_unlock; + + msta_link =rcu_dereference (msta->link[link_id]); +if (!msta_link) + goto error_unlock; + + sta =wcid_to_sta (&msta_link->wcid); + link_sta =rcu_dereference (sta->link[link_id]); +if (!link_sta) + goto error_unlock; + + band = link->phy->mt76->chandef.chan->band; + has_he = link_sta->he_cap.has_he; + mask = link->bitrate_mask; + idx = msta_link->wcid.idx; + +if (has_he) {__sta_phy_bitrate_mask_check (he_mcs, he_gi,0 ,1 ); }else if (link_sta->vht_cap.vht_supported) {__sta_phy_bitrate_mask_check (vht_mcs, gi,0 ,0 ); }else if (link_sta->ht_cap.ht_supported) {__sta_phy_bitrate_mask_check (ht_mcs, gi,1 ,0 ); }else { - nrates =hweight32 (mask->control[band].legacy); - phy.mcs =ffs (mask->control[band].legacy) -1 ; + nrates =hweight32 (mask.control[band].legacy); + phy.mcs =ffs (mask.control[band].legacy) -1 ; } + +rcu_read_unlock (); +#undef __sta_phy_bitrate_mask_check/* fall back to auto rate control */ -if (mask->control[band].gi ==NL80211_TXRATE_DEFAULT_GI && - mask->control[band].he_gi ==GENMASK (7 ,0 ) && - mask->control[band].he_ltf ==GENMASK (7 ,0 ) && +if (mask.control[band].gi ==NL80211_TXRATE_DEFAULT_GI && + mask.control[band].he_gi ==GENMASK (7 ,0 ) && + mask.control[band].he_ltf ==GENMASK (7 ,0 ) && nrates !=1 )return 0 ;
@@ -2034,16 +2057,16 @@ mt7996_mcu_add_rate_ctrl_fixed(struct mt7996_dev *dev, }/* fixed GI */ -if (mask->control[band].gi !=NL80211_TXRATE_DEFAULT_GI || - mask->control[band].he_gi !=GENMASK (7 ,0 )) { +if (mask.control[band].gi !=NL80211_TXRATE_DEFAULT_GI || + mask.control[band].he_gi !=GENMASK (7 ,0 )) {u32 addr;/* firmware updates only TXCMD but doesn't take WTBL into * account, so driver should update here to reflect the * actual txrate hardware sends out. */ - addr =mt7996_mac_wtbl_lmac_addr (dev, msta_link->wcid.idx,7 ); -if (link_sta->he_cap.has_he) + addr =mt7996_mac_wtbl_lmac_addr (dev, idx,7 ); +if (has_he)mt76_rmw_field (dev, addr,GENMASK (31 ,24 ), phy.sgi);else mt76_rmw_field (dev, addr,GENMASK (15 ,12 ), phy.sgi);
@@ -2055,7 +2078,7 @@ mt7996_mcu_add_rate_ctrl_fixed(struct mt7996_dev *dev, }/* fixed HE_LTF */ -if (mask->control[band].he_ltf !=GENMASK (7 ,0 )) { +if (mask.control[band].he_ltf !=GENMASK (7 ,0 )) { ret =mt7996_mcu_set_fixed_field (dev, msta, &phy, link_id,RATE_PARAM_FIXED_HE_LTF );if (ret)
@@ -2063,6 +2086,11 @@ mt7996_mcu_add_rate_ctrl_fixed(struct mt7996_dev *dev, }return 0 ; + +error_unlock: +rcu_read_unlock (); + +return -ENODEV ; } static void
@@ -2181,6 +2209,7 @@ int mt7996_mcu_add_rate_ctrl(struct mt7996_dev *dev,struct mt7996_sta_link *msta_link, u8 link_id, bool changed) { + struct mt7996_sta *msta = msta_link->sta;struct sk_buff *skb;int ret;
@@ -2207,8 +2236,7 @@ int mt7996_mcu_add_rate_ctrl(struct mt7996_dev *dev,if (ret)return ret; -return mt7996_mcu_add_rate_ctrl_fixed (dev, link_sta, link, msta_link, - link_id); +return mt7996_mcu_add_rate_ctrl_fixed (dev, msta, vif, link_id); } static int
Signature · 1 line
2.49.0
Lorenzo Bianconi
maintainerPATCH 4/5 wifi: mt76: Move RCU section in mt7996_mcu_add_rate_ctrl()
In reply to Lorenzo BianconiSince mt76_mcu_skb_send_msg() routine can't be executed in atomic context, move RCU section in mt7996_mcu_add_rate_ctrl() and execute mt76_mcu_skb_send_msg() in non-atomic context. This is a preliminary patch to fix a 'sleep while atomic' issue in mt7996_mac_sta_rc_work().
--- drivers/net/wireless/mediatek/mt76/mt7996/mac.c | 3 +- drivers/net/wireless/mediatek/mt76/mt7996/main.c | 6 +-- drivers/net/wireless/mediatek/mt76/mt7996/mcu.c | 50 +++++++++++++++++----- drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h | 10 ++--- 4 files changed, 45 insertions(+), 24 deletions(-)
drivers/net/wireless/mediatek/mt76/mt7996/mac.c +1 -2
@@ -2403,8 +2403,7 @@ void mt7996_mac_sta_rc_work(struct work_struct *work)if (changed & (IEEE80211_RC_SUPP_RATES_CHANGED |IEEE80211_RC_NSS_CHANGED |IEEE80211_RC_BW_CHANGED )) -mt7996_mcu_add_rate_ctrl (dev, vif, link_conf, - link_sta, link, msta_link, +mt7996_mcu_add_rate_ctrl (dev, msta_link->sta, vif, link_id, true);if (changed &IEEE80211_RC_SMPS_CHANGED )
drivers/net/wireless/mediatek/mt76/mt7996/main.c +2 -4
@@ -1112,10 +1112,8 @@ mt7996_mac_sta_event(struct mt7996_dev *dev, struct ieee80211_vif *vif,if (err)return err; - err =mt7996_mcu_add_rate_ctrl (dev, vif, link_conf, - link_sta, link, - msta_link, link_id, - false); + err =mt7996_mcu_add_rate_ctrl (dev, msta_link->sta, vif, + link_id, false);if (err)return err;
drivers/net/wireless/mediatek/mt76/mt7996/mcu.c +39 -11
74 lines not on this page · raw message
drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h +3 -7
@@ -620,13 +620,9 @@ int mt7996_mcu_beacon_inband_discov(struct mt7996_dev *dev,int mt7996_mcu_add_obss_spr (struct mt7996_phy *phy,struct mt7996_vif_link *link,struct ieee80211_he_obss_pd *he_obss_pd); -int mt7996_mcu_add_rate_ctrl (struct mt7996_dev *dev, -struct ieee80211_vif *vif, -struct ieee80211_bss_conf *link_conf, -struct ieee80211_link_sta *link_sta, -struct mt7996_vif_link *link, -struct mt7996_sta_link *msta_link, -u8 link_id,bool changed); +int mt7996_mcu_add_rate_ctrl (struct mt7996_dev *dev,struct mt7996_sta *msta, +struct ieee80211_vif *vif,u8 link_id, +bool changed);int mt7996_set_channel (struct mt76_phy *mphy);int mt7996_mcu_set_chan_info (struct mt7996_phy *phy,u16 tag); int mt7996_mcu_set_tx(struct mt7996_dev *dev, struct ieee80211_vif *vif,
Signature · 1 line
2.49.0
Lorenzo Bianconi
maintainerPATCH 5/5 wifi: mt76: Remove RCU section in mt7996_mac_sta_rc_work()
In reply to Lorenzo BianconiSince mt7996_mcu_add_rate_ctrl() and mt7996_mcu_set_fixed_field() can't run in atomic context, move RCU critical section in mt7996_mcu_add_rate_ctrl() and mt7996_mcu_set_fixed_field(). This patch fixes a 'sleep while atomic' issue in mt7996_mac_sta_rc_work().
--- drivers/net/wireless/mediatek/mt76/mt7996/mac.c | 38 +++++-------------------- 1 file changed, 7 insertions(+), 31 deletions(-)
drivers/net/wireless/mediatek/mt76/mt7996/mac.c +7 -31
@@ -2353,20 +2353,12 @@ void mt7996_mac_update_stats(struct mt7996_phy *phy)void mt7996_mac_sta_rc_work (struct work_struct *work) { struct mt7996_dev *dev = container_of(work, struct mt7996_dev, rc_work); -struct ieee80211_bss_conf *link_conf; -struct ieee80211_link_sta *link_sta;struct mt7996_sta_link *msta_link; -struct mt7996_vif_link *link; -struct mt76_vif_link *mlink; -struct ieee80211_sta *sta;struct ieee80211_vif *vif; -struct mt7996_sta *msta;struct mt7996_vif *mvif;LIST_HEAD (list);u32 changed; -u8 link_id; -rcu_read_lock ();spin_lock_bh (&dev->mt76.sta_poll_lock);list_splice_init (&dev->sta_rc_list, &list);
@@ -2377,44 +2369,28 @@ void mt7996_mac_sta_rc_work(struct work_struct *work) changed = msta_link->changed; msta_link->changed =0 ; - - sta =wcid_to_sta (&msta_link->wcid); - link_id = msta_link->wcid.link_id; - msta = msta_link->sta; - mvif = msta->vif; - vif = container_of((void *)mvif, struct ieee80211_vif, drv_priv); - - mlink =rcu_dereference (mvif->mt76.link[link_id]); -if (!mlink) -continue ; - - link_sta =rcu_dereference (sta->link[link_id]); -if (!link_sta) -continue ; - - link_conf =rcu_dereference (vif->link_conf[link_id]); -if (!link_conf) -continue ; + mvif = msta_link->sta->vif; + vif = container_of((void *)mvif, struct ieee80211_vif, + drv_priv);spin_unlock_bh (&dev->mt76.sta_poll_lock); - link = (struct mt7996_vif_link *)mlink; -if (changed & (IEEE80211_RC_SUPP_RATES_CHANGED |IEEE80211_RC_NSS_CHANGED |IEEE80211_RC_BW_CHANGED ))mt7996_mcu_add_rate_ctrl (dev, msta_link->sta, vif, - link_id, true); + msta_link->wcid.link_id, + true);if (changed &IEEE80211_RC_SMPS_CHANGED ) -mt7996_mcu_set_fixed_field (dev, msta,NULL , link_id, +mt7996_mcu_set_fixed_field (dev, msta_link->sta,NULL , + msta_link->wcid.link_id,RATE_PARAM_MMPS_UPDATE );spin_lock_bh (&dev->mt76.sta_poll_lock); }spin_unlock_bh (&dev->mt76.sta_poll_lock); -rcu_read_unlock (); }void mt7996_mac_work (struct work_struct *work)
Signature · 1 line
2.49.0
Re: [PATCH mt76 5/5] wifi: mt76: Remove RCU section in mt7996_mac_sta_rc_work()
Quoted 7 lines · Lorenzo Bianconi
Since
mt7996_mcu_add_rate_ctrl()andmt7996_mcu_set_fixed_field()can't run in atomic context, move RCU critical section inmt7996_mcu_add_rate_ctrl()andmt7996_mcu_set_fixed_field(). This patch fixes a 'sleep while atomic' issue inmt7996_mac_sta_rc_work().Fixes 0762bdd30279 ("wifi: mt76: mt7996: rework mt7996_mac_sta_rc_work to support MLO")Signed-off-by Lorenzo Bianconi <[email protected]>
Thanks for the quick fix on this, it appears to solve the problems we saw related to this.
Thanks,
Ben
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com
Lorenzo Bianconi
maintainerRe: [PATCH mt76 5/5] wifi: mt76: Remove RCU section in mt7996_mac_sta_rc_work()
Quoted 11 lines · Lorenzo Bianconi
Quoted 7 lines
Since
mt7996_mcu_add_rate_ctrl()andmt7996_mcu_set_fixed_field()can't run in atomic context, move RCU critical section inmt7996_mcu_add_rate_ctrl()andmt7996_mcu_set_fixed_field(). This patch fixes a 'sleep while atomic' issue inmt7996_mac_sta_rc_work().Fixes 0762bdd30279 ("wifi: mt76: mt7996: rework mt7996_mac_sta_rc_work to support MLO")Signed-off-by Lorenzo Bianconi <[email protected]>Thanks for the quick fix on this, it appears to solve the problems we saw related to this.
ack, thx. Can you please add your 'tested-by' tag in this case?
Regards,
Lorenzo
Quoted 9 lines
Thanks,
BenSignature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com
Ben Greear
Tested-byRe: [PATCH mt76 5/5] wifi: mt76: Remove RCU section in mt7996_mac_sta_rc_work()
Quoted 6 lines · Lorenzo Bianconi
Quoted 6 lines · Lorenzo Bianconi
Quoted 5 lines
Since
mt7996_mcu_add_rate_ctrl()andmt7996_mcu_set_fixed_field()can't run in atomic context, move RCU critical section inmt7996_mcu_add_rate_ctrl()andmt7996_mcu_set_fixed_field(). This patch fixes a 'sleep while atomic' issue inmt7996_mac_sta_rc_work().
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Fixes 0762bdd30279 ("wifi: mt76: mt7996: rework mt7996_mac_sta_rc_work to support MLO")Signed-off-by Lorenzo Bianconi <[email protected]>Thanks for the quick fix on this, it appears to solve the problems we saw related to this.
ack, thx. Can you please add your 'tested-by' tag in this case?
Thanks,
Ben
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com
Lorenzo Bianconi
maintainerRe: [PATCH mt76 5/5] wifi: mt76: Remove RCU section in mt7996_mac_sta_rc_work()
Quoted 10 lines · Ben Greear
Quoted 9 lines · Lorenzo Bianconi
Quoted 9 lines · Lorenzo Bianconi
Quoted 7 lines
Since
mt7996_mcu_add_rate_ctrl()andmt7996_mcu_set_fixed_field()can't run in atomic context, move RCU critical section inmt7996_mcu_add_rate_ctrl()andmt7996_mcu_set_fixed_field(). This patch fixes a 'sleep while atomic' issue inmt7996_mac_sta_rc_work().Fixes 0762bdd30279 ("wifi: mt76: mt7996: rework mt7996_mac_sta_rc_work to support MLO")Signed-off-by Lorenzo Bianconi <[email protected]>
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Thanks for the quick fix on this, it appears to solve the problems we saw related to this.
ack, thx. Can you please add your 'tested-by' tag in this case?
Tested-by Ben Greear <[email protected]>
I am assuming this is for the full series ;)
Regards,
Lorenzo
Quoted 9 lines
Thanks,
BenSignature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com
Re: [PATCH mt76 5/5] wifi: mt76: Remove RCU section in mt7996_mac_sta_rc_work()
Quoted 11 lines · Lorenzo Bianconi
Quoted 10 lines · Ben Greear
Quoted 9 lines · Lorenzo Bianconi
Quoted 9 lines · Lorenzo Bianconi
Quoted 7 lines
Since
mt7996_mcu_add_rate_ctrl()andmt7996_mcu_set_fixed_field()can't run in atomic context, move RCU critical section inmt7996_mcu_add_rate_ctrl()andmt7996_mcu_set_fixed_field(). This patch fixes a 'sleep while atomic' issue inmt7996_mac_sta_rc_work().Fixes 0762bdd30279 ("wifi: mt76: mt7996: rework mt7996_mac_sta_rc_work to support MLO")Signed-off-by Lorenzo Bianconi <[email protected]>
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Thanks for the quick fix on this, it appears to solve the problems we saw related to this.
ack, thx. Can you please add your 'tested-by' tag in this case?
Tested-by Ben Greear <[email protected]>I am assuming this is for the full series ;)
Yes, and to be clear, I had to re-work the patches a bit to get them into my tree, but that was just because I have a lot of mtk upstream patches and my own hacks in this code. I still think the tested-by is valid though.
Thanks,
Ben
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com