QCA6390 power saving issue
I remember there was a bug preventing CPU entering to deep powersaving states so only PC3 was reached.
The but itself is fixed - but I have just noticed a small remaining issue. When I start my PC and there is no WIFI that I can connect so ath11 is enabled but not connected to any network - it prevents entering into deep PC states again. When I connect to the WiFi network - deep PC states become reachable again. And when I disconnect after first connection and keep my ath11k disconnected (exactly same situation as immediately after boot)- there is no issue.
So seems that this powersaving feature is not activated on boot but only activates when the card connects to access point. I am not good enough in driver development and design a fix myself. So just writing here
Signature · 3 lines
ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
Quoted 12 lines · Mark Herbert
I remember there was a bug preventing CPU entering to deep powersaving states so only PC3 was reached.
The but itself is fixed - but I have just noticed a small remaining issue. When I start my PC and there is no WIFI that I can connect so ath11 is enabled but not connected to any network - it prevents entering into deep PC states again. When I connect to the WiFi network -
deep PC states become reachable again. And when I disconnect after first connection and keep my ath11k disconnected (exactly same situation as immediately after boot)- there is no issue.
Quoted 4 lines
So seems that this powersaving feature is not activated on boot but only activates when the card connects to access point. I am not good enough in driver development and design a fix myself. So just writing here
Seems very plausible to me. Can you file this to bugzilla, please? Easier to track that way:
https://wireless.wiki.kernel.org/en/users/drivers/ath11k/bugreport
Signature · 8 lines
https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches -- ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
A message that is not in the archive (sent off-list or not yet received): [email protected]
+ ath11k list
Quoted 1 line · Mark Herbert
Thanks!
Quoted 11 lines
Checked the previous bug - the powersave activation is done only on change of something - so when the driver is loaded but never connected so this IF did not become true at least one time - the powersave is not yet enabled and card remains in the initial setting keeping PC3 as a lowest state. Seems that when we initialize the driver we need to call this
ath11k_mac_config_ps(ar)one time - then on each change of the connection the current code will handle that.(quoted diff) +0
-0@@ -2942,6 +3019,16 @@ static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw, ath11k_mac_txpower_recalc(ar);
Review static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw · line 3030
Quoted 10 lines
(quoted diff) +9
-0} + if (changed & BSS_CHANGED_PS && + ar->ab->hw_params.supports_sta_ps) { + arvif->ps = vif->bss_conf.ps; + + ret = ath11k_mac_config_ps(ar); + if (ret) + ath11k_warn(ar->ab, "failed to setup ps on vdev %i: %d\n", + arvif->vdev_id, ret); + }
Didn't check the code, but makes sense. Can you or someone else send a patch, please?
Signature · 8 lines
https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches -- ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
I have tried modification proposed by Wi - but still same situation.
Also I've tried to go same direction and injected the call to the psmode enabling fuction in multiple places of the mac.c file. Enable debug mask for mac events - and I see that the code is called many times now. But still no effect - until the first connection to network happens no PC states more than PC3 are reached.
When first connect happens - all good till reboot or hibernate.
Quoted 31 lines · Kalle Valo
+ ath11k list
Quoted 1 line · Mark Herbert
Thanks!
Quoted 11 lines
Checked the previous bug - the powersave activation is done only on change of something - so when the driver is loaded but never connected so this IF did not become true at least one time - the powersave is not yet enabled and card remains in the initial setting keeping PC3 as a lowest state. Seems that when we initialize the driver we need to call this
ath11k_mac_config_ps(ar)one time - then on each change of the connection the current code will handle that.(quoted diff) +0
-0@@ -2942,6 +3019,16 @@ static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw *hw, ath11k_mac_txpower_recalc(ar);Review static void ath11k_mac_op_bss_info_changed(struct ieee80211_hw · line 3030
Quoted 10 lines
(quoted diff) +9
-0} + if (changed & BSS_CHANGED_PS && + ar->ab->hw_params.supports_sta_ps) { + arvif->ps = vif->bss_conf.ps; + + ret = ath11k_mac_config_ps(ar); + if (ret) + ath11k_warn(ar->ab, "failed to setup ps on vdev %i: %d\n", + arvif->vdev_id, ret); + }Didn't check the code, but makes sense. Can you or someone else send a patch, please?
Signature · 3 lines
ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k