Re: [PATCH V10 02/11] iommu/uapi: Define a mask for bind data

2020-03-21 Thread Lu Baolu
On 2020/3/21 7:27, Jacob Pan wrote: Memory type related flags can be grouped together for one simple check. --- v9 renamed from EMT to MTS since these are memory type support flags. --- Signed-off-by: Jacob Pan --- include/uapi/linux/iommu.h | 5 - 1 file changed, 4 insertions(+), 1

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

2020-03-21 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