wifi: mt76: use GFP_DMA32 for page_pool buffer allocation

Set GFP_DMA32 flag for page_pool buffers allocation since the hw relies
on 32-bit DMA addresses for WED offloading.

Tested-by: Daniel Pawlik <[email protected]>
Tested-by: Matteo Croce <[email protected]>
Signed-off-by: Peter Chiu <[email protected]>
Co-developed-by: Lorenzo Bianconi <[email protected]>
Signed-off-by: Lorenzo Bianconi <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Peter Chiu
2025-10-13 12:51:05 +02:00
committed by Felix Fietkau
parent 1e91eadc9d
commit 2fe5bdbe7e
+2 -1
View File
@@ -1881,7 +1881,8 @@ mt76_get_page_pool_buf(struct mt76_queue *q, u32 *offset, u32 size)
{ {
struct page *page; struct page *page;
page = page_pool_dev_alloc_frag(q->page_pool, offset, size); page = page_pool_alloc_frag(q->page_pool, offset, size,
GFP_ATOMIC | __GFP_NOWARN | GFP_DMA32);
if (!page) if (!page)
return NULL; return NULL;