Re: [PATCH] fix swiotlb panic on Xen

2020-10-27 Thread Stefano Stabellini
On Tue, 27 Oct 2020, Konrad Rzeszutek Wilk wrote: > > As the person who first found this and then confirmed this fixes a bug: > > > > Tested-by: Elliott Mitchell > > Thank you!! > > I changed the title and added the various tags and will put it in > linux-next later this week. Looks fine, than

Re: [PATCH] fix swiotlb panic on Xen

2020-10-27 Thread Konrad Rzeszutek Wilk
> As the person who first found this and then confirmed this fixes a bug: > > Tested-by: Elliott Mitchell Thank you!! I changed the title and added the various tags and will put it in linux-next later this week. >From a1eb2768bf5954d25aa0f0136b38f0aa5d92d984 Mon Sep 17 00:00:00 2001 From: Stef

Re: [PATCH] fix swiotlb panic on Xen

2020-10-27 Thread Elliott Mitchell
On Mon, Oct 26, 2020 at 05:02:14PM -0700, Stefano Stabellini wrote: > From: Stefano Stabellini > > kernel/dma/swiotlb.c:swiotlb_init gets called first and tries to > allocate a buffer for the swiotlb. It does so by calling > > memblock_alloc_low(PAGE_ALIGN(bytes), PAGE_SIZE); > > If the alloc

Re: [PATCH] fix swiotlb panic on Xen

2020-10-27 Thread Stefano Stabellini
On Tue, 27 Oct 2020, Konrad Rzeszutek Wilk wrote: > On Mon, Oct 26, 2020 at 05:02:14PM -0700, Stefano Stabellini wrote: > > From: Stefano Stabellini > > > > kernel/dma/swiotlb.c:swiotlb_init gets called first and tries to > > allocate a buffer for the swiotlb. It does so by calling > > > > mem

Re: [PATCH] fix swiotlb panic on Xen

2020-10-27 Thread Konrad Rzeszutek Wilk
On Mon, Oct 26, 2020 at 05:02:14PM -0700, Stefano Stabellini wrote: > From: Stefano Stabellini > > kernel/dma/swiotlb.c:swiotlb_init gets called first and tries to > allocate a buffer for the swiotlb. It does so by calling > > memblock_alloc_low(PAGE_ALIGN(bytes), PAGE_SIZE); > > If the alloc

Re: [PATCH] fix swiotlb panic on Xen

2020-10-27 Thread Christoph Hellwig
Looks good for now: Reviewed-by: Christoph Hellwig But we really need to clean up the mess with all these magic variables eventually.

[PATCH] fix swiotlb panic on Xen

2020-10-26 Thread Stefano Stabellini
From: Stefano Stabellini kernel/dma/swiotlb.c:swiotlb_init gets called first and tries to allocate a buffer for the swiotlb. It does so by calling memblock_alloc_low(PAGE_ALIGN(bytes), PAGE_SIZE); If the allocation must fail, no_iotlb_memory is set. Later during initialization swiotlb-xen c