15 Nov
2022
15 Nov
'22
8:39 p.m.
On Sun, Nov 13, 2022 at 05:35:30PM +0100, Christoph Hellwig wrote:
dma_alloc_coherent is an opaque allocator that only uses the GFP_ flags for allocation context control. Don't pass GFP_USER which doesn't make sense for a kernel DMA allocation or __GFP_COMP which makes no sense for an allocation that can't in any way be converted to a page pointer.
Signed-off-by: Christoph Hellwig hch@lst.de
drivers/infiniband/hw/hfi1/init.c | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-)
I have no idea what qib was trying to do here, but I'm fine if you take this through another tree
Acked-by: Jason Gunthorpe jgg@nvidia.com
Jason