[PATCH] swiotlb: clear io_tlb_start and io_tlb_end in swiotlb_exit

Konrad Rzeszutek Wilk konrad at kernel.org
Wed Jan 16 14:57:47 UTC 2019


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 initialize a swiotlb buffer, but then free it because
> > > we have an IOMMU available.
> > > 
> > > Fixes: 55897af63091 ("dma-direct: merge swiotlb_dma_ops into the dma_direct code")
> > > Reported-by: Sibren Vasse <sibren at sibrenvasse.nl>
> > > Signed-off-by: Christoph Hellwig <hch at lst.de>
> > > Tested-by: Sibren Vasse <sibren at sibrenvasse.nl>
> > 
> > Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk at oracle.com>
> 
> Do you want to send this to Linus, or do you want me to pick it up
> through the dma-mapping tree?

I will do it. Thanks!


More information about the iommu mailing list