OSDN Git Service

swiotlb: suppress warning when __GFP_NOWARN is set
authorChristian König <ckoenig.leichtzumerken@gmail.com>
Thu, 4 Jan 2018 13:24:19 +0000 (14:24 +0100)
committerChristoph Hellwig <hch@lst.de>
Mon, 15 Jan 2018 08:35:18 +0000 (09:35 +0100)
commitd0bc0c2a31c95002d37c3cc511ffdcab851b3256
treef00d90d41fd94e210b2c19a557cc662a7fc227c3
parent23475ad49e704b9aee14970c4c191768798412c9
swiotlb: suppress warning when __GFP_NOWARN is set

TTM tries to allocate coherent memory in chunks of 2MB first to improve
TLB efficiency and falls back to allocating 4K pages if that fails.

Suppress the warning when the 2MB allocations fails since there is a
valid fall back path.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reported-by: Mike Galbraith <efault@gmx.de>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=104082
CC: stable@vger.kernel.org
Signed-off-by: Christoph Hellwig <hch@lst.de>
lib/swiotlb.c