Re: [PATCH] dma: Fix max PFN arithmetic overflow on 32 bit systems

2020-03-19 Thread Alexander Dahl
Hello Robin, On Thu, Mar 19, 2020 at 01:50:56PM +, Robin Murphy wrote: > On 2020-03-02 6:16 pm, Alexander Dahl wrote: > > --- > > arch/x86/include/asm/dma.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/arch/x86/include/asm/dma.h

Re: [PATCH] dma: Fix max PFN arithmetic overflow on 32 bit systems

2020-03-19 Thread Robin Murphy
On 2020-03-02 6:16 pm, Alexander Dahl wrote: For ARCH=x86 (32 bit) when you set CONFIG_IOMMU_INTEL since c5a5dc4cbbf4 ("iommu/vt-d: Don't switch off swiotlb if bounce page is used") there's a dependency on CONFIG_SWIOTLB, which was not necessarily active before. The init code for swiotlb in

Re: [PATCH] dma: Fix max PFN arithmetic overflow on 32 bit systems

2020-03-18 Thread Alexander Dahl
Hei hei, gentle ping on this patch from two weeks ago. Did anyone have time to look into it? Did I miss someone in Cc or sent it to the wrong lists maybe? On Mon, Mar 02, 2020 at 07:16:12PM +0100, Alexander Dahl wrote: > For ARCH=x86 (32 bit) when you set CONFIG_IOMMU_INTEL since c5a5dc4cbbf4 >

[PATCH] dma: Fix max PFN arithmetic overflow on 32 bit systems

2020-03-02 Thread Alexander Dahl
For ARCH=x86 (32 bit) when you set CONFIG_IOMMU_INTEL since c5a5dc4cbbf4 ("iommu/vt-d: Don't switch off swiotlb if bounce page is used") there's a dependency on CONFIG_SWIOTLB, which was not necessarily active before. The init code for swiotlb in 'pci_swiotlb_detect_4gb()' compares something