Re: [PATCH] swiotlb: clear io_tlb_start and io_tlb_end in swiotlb_exit

2019-01-16 Thread Konrad Rzeszutek Wilk
On Mon, Jan 14, 2019 at 09:33:23PM +0100, Christoph Hellwig wrote: > On Mon, Jan 14, 2019 at 03:25:13PM -0500, Konrad Rzeszutek Wilk wrote: > > On Mon, Jan 14, 2019 at 09:14:08PM +0100, Christoph Hellwig wrote: > > > Otherwise is_swiotlb_buffer will return false positives when > > > we first

Re: [PATCH] swiotlb: clear io_tlb_start and io_tlb_end in swiotlb_exit

2019-01-14 Thread Konrad Rzeszutek Wilk
On Mon, Jan 14, 2019 at 09:14:08PM +0100, Christoph Hellwig wrote: > Otherwise is_swiotlb_buffer will return false positives when > we first initialize a swiotlb buffer, but then free it because > we have an IOMMU available. > > Fixes: 55897af63091 ("dma-direct: merge swiotlb_dma_ops into the

Re: [PATCH] swiotlb: clear io_tlb_start and io_tlb_end in swiotlb_exit

2019-01-14 Thread Christoph Hellwig
On Mon, Jan 14, 2019 at 03:25:13PM -0500, Konrad Rzeszutek Wilk wrote: > On Mon, Jan 14, 2019 at 09:14:08PM +0100, Christoph Hellwig wrote: > > Otherwise is_swiotlb_buffer will return false positives when > > we first initialize a swiotlb buffer, but then free it because > > we have an IOMMU