mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
mtd: rawnand: gpmi: don't use GFP_DMA when calling dma_alloc_coherent()
dma_alloc_coherent() allocates the DMA buffer with the device's addressing limitation in mind; the DMA core picks the zone from the device's coherent DMA mask and ignores GFP_DMA passed by the caller. Use GFP_KERNEL instead so the allocation may reclaim as usual for probe-time allocations. Link: https://lore.kernel.org/20260903111836.1777265-13-hebaoquan@kylinos.cn Signed-off-by: Baoquan He <hebaoquan@kylinos.cn> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Christoph Hellwig <hch@lst.de> Cc: Harry Yoo <harry@kernel.org>
This commit is contained in:
parent
c9f0451353
commit
4d7507b166
|
|
@ -1387,7 +1387,7 @@ static int gpmi_alloc_dma_buffer(struct gpmi_nand_data *this)
|
|||
goto error_alloc;
|
||||
|
||||
this->auxiliary_virt = dma_alloc_coherent(dev, geo->auxiliary_size,
|
||||
&this->auxiliary_phys, GFP_DMA);
|
||||
&this->auxiliary_phys, GFP_KERNEL);
|
||||
if (!this->auxiliary_virt)
|
||||
goto error_alloc;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user