Re: [PATCH] swiotlb: suppress warning when __GFP_NOWARN is set v4

2018-01-04 Thread Christian König
Am 04.01.2018 um 10:53 schrieb Christoph Hellwig: This seems to collide with my dma direct/swiotlb series posted recently. +++ b/lib/swiotlb.c @@ -490,11 +490,11 @@ static void swiotlb_bounce(phys_addr_t orig_addr, phys_addr_t tlb_addr, } } -phys_addr_t swiotlb_tbl_map_single(stru

Re: [PATCH] swiotlb: suppress warning when __GFP_NOWARN is set v4

2018-01-04 Thread Christoph Hellwig
This seems to collide with my dma direct/swiotlb series posted recently. > +++ b/lib/swiotlb.c > @@ -490,11 +490,11 @@ static void swiotlb_bounce(phys_addr_t orig_addr, > phys_addr_t tlb_addr, > } > } > > -phys_addr_t swiotlb_tbl_map_single(struct device *hwdev, > -

[PATCH] swiotlb: suppress warning when __GFP_NOWARN is set v4

2018-01-04 Thread Christian König
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. v2: suppress warnings from swiotlb_tbl_map_single as well v3: codi