]> git.itanic.dy.fi Git - linux-stable/commit
dma-direct: warn when coherent allocations aren't supported
authorChristoph Hellwig <hch@lst.de>
Fri, 6 Oct 2023 13:17:54 +0000 (15:17 +0200)
committerChristoph Hellwig <hch@lst.de>
Sun, 22 Oct 2023 14:38:54 +0000 (16:38 +0200)
commit63f067e33c996a6e4d9a34d138116a43105182f1
treec5a81810d07deafc6e022e29365534fe55360a1d
parentb1da46d70e5427a9ba5eae28bcca29a20e68a442
dma-direct: warn when coherent allocations aren't supported

Log a warning once when dma_alloc_coherent fails because the platform
does not support coherent allocations at all.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Greg Ungerer <gerg@linux-m68k.org>
Tested-by: Greg Ungerer <gerg@linux-m68k.org>
kernel/dma/direct.c