mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-28 07:54:36 -05:00
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 <pawlik.dan@gmail.com> Tested-by: Matteo Croce <teknoraver@meta.com> Signed-off-by: Peter Chiu <chui-hao.chiu@mediatek.com> Co-developed-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Link: https://patch.msgid.link/20251008-wed-fixes-v1-2-8f7678583385@kernel.org Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
committed by
Felix Fietkau
parent
385aab8fcc
commit
a9730354ca
@@ -1877,7 +1877,8 @@ mt76_get_page_pool_buf(struct mt76_queue *q, u32 *offset, u32 size)
|
||||
{
|
||||
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)
|
||||
return NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user