Skip to contentSkip to conversation

ath11k: use GFP_ATOMIC under spin lock

PATCH In review Wei Yongjun 2 participants 5 messages Apr 27, 2020 – Apr 28, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath11k: use GFP_ATOMIC under spin lock

A spin lock is taken here so we should use GFP_ATOMIC.

Fixes d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
---
 drivers/net/wireless/ath/ath11k/dp_rx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/dp_rx.c +1 -1
index f74a0e74bf3e..34b1e8e6a7fb 100644
@@ -892,7 +892,7 @@ int ath11k_peer_rx_tid_setup(struct ath11k *ar, const u8 *peer_mac, int vdev_id,
 	else
 		hw_desc_sz = ath11k_hal_reo_qdesc_size(DP_BA_WIN_SZ_MAX, tid);
 
-	vaddr = kzalloc(hw_desc_sz + HAL_LINK_DESC_ALIGN - 1, GFP_KERNEL);
+	vaddr = kzalloc(hw_desc_sz + HAL_LINK_DESC_ALIGN - 1, GFP_ATOMIC);
 	if (!vaddr) {
 		spin_unlock_bh(&ab->base_lock);
 		return -ENOMEM;
#1 lore raw
Quoted 4 lines · Wei Yongjun

A spin lock is taken here so we should use GFP_ATOMIC.

Fixes d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")

Do note that ath11k patches go to my ath.git tree, not net-next. But no need to resend because of this.

Signature · 1 line
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
#2 lore raw
In reply to Wei Yongjun
Quoted 5 lines · Wei Yongjun

A spin lock is taken here so we should use GFP_ATOMIC.

Fixes d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")

Patch applied to ath-next branch of ath.git, thanks.

69c93f9674c9 ath11k: use GFP_ATOMIC under spin lock

Signature · 3 lines
https://patchwork.kernel.org/patch/11511711/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
#3 lore raw
In reply to Wei Yongjun
Quoted 5 lines · Wei Yongjun

A spin lock is taken here so we should use GFP_ATOMIC.

Fixes d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")

Patch applied to ath-next branch of ath.git, thanks.

69c93f9674c9 ath11k: use GFP_ATOMIC under spin lock

Signature · 8 lines
https://patchwork.kernel.org/patch/11511711/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k
#4 lore raw
In reply to Wei Yongjun
Quoted 5 lines · Wei Yongjun

A spin lock is taken here so we should use GFP_ATOMIC.

Fixes d5c65159f289 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")

Patch applied to ath-next branch of ath.git, thanks.

69c93f9674c9 ath11k: use GFP_ATOMIC under spin lock

Signature · 7 lines
https://patchwork.kernel.org/patch/11511711/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel