Re: [PATCH v4 5/5] ARM: dts: mt2701: add iommu/smi dtsi node for mt2701

2016-07-03 Thread Honghui Zhang
On Sun, 2016-07-03 at 21:12 +0200, Matthias Brugger wrote: > > On 07/03/2016 08:24 AM, Matthias Brugger wrote: > > > > > > On 06/08/2016 11:51 AM, honghui.zh...@mediatek.com wrote: > >> From: Honghui Zhang > >> > >> Add the dtsi node of iommu and smi for mt2701. > >>

Re: [PATCH v4 5/5] ARM: dts: mt2701: add iommu/smi dtsi node for mt2701

2016-07-03 Thread Matthias Brugger
On 07/03/2016 08:24 AM, Matthias Brugger wrote: On 06/08/2016 11:51 AM, honghui.zh...@mediatek.com wrote: From: Honghui Zhang Add the dtsi node of iommu and smi for mt2701. Signed-off-by: Honghui Zhang ---

Re: [Regression] Amd-Vi + ivrs_ioapic cause kernel oops (4.4, 4.7 fail 3.9 works)

2016-07-03 Thread Wan Zongshun
在 7/3/2016 8:59 AM, sunnydrake 写道: [description] working in kernel 3.9 Oops in current 4.4.0-28,4.7.0-040700rc5 kernel options ivrs_ioapic[7]=00:14.0 ivrs_ioapic[8]=00:00.1 workaround to fix ivrs table cause kernel Oops on boot Do you mean "ivrs_ioapic[7]=00:14.0 ivrs_ioapic[8]=00:00.1" are

Re: [PATCH 3/3] iommu: remove unneeded check

2016-07-03 Thread Alexey Kardashevskiy
On 29/06/16 08:07, Alex Williamson wrote: > On Tue, 28 Jun 2016 23:37:06 +0200 > Heiner Kallweit wrote: > >> Am 28.06.2016 um 22:09 schrieb Alex Williamson: >>> On Tue, 28 Jun 2016 20:40:37 +0200 >>> Heiner Kallweit wrote: >>> The init

[PATCH] iommu/vt-d: Fix infinite loop in free_all_cpu_cached_iovas

2016-07-03 Thread Aaron Campbell
Per VT-d spec Section 10.4.2 ("Capability Register"), the maximum number of possible domains is 64K; indeed this is the maximum value that the cap_ndoms() macro will expand to. Since the value 65536 will not fix in a u16, the 'did' variable must be promoted to an int, otherwise the test for <

Re: [PATCH] iommu/vt-d: Fix infinite loop in free_all_cpu_cached_iovas

2016-07-03 Thread Jan Niehusmann
On Sat, Jul 02, 2016 at 09:23:24PM -0300, Aaron Campbell wrote: > Per VT-d spec Section 10.4.2 ("Capability Register"), the maximum > number of possible domains is 64K; indeed this is the maximum value > that the cap_ndoms() macro will expand to. Good catch. Before 3bd4f9112f87, the loop ended at

Re: [PATCH v4 5/5] ARM: dts: mt2701: add iommu/smi dtsi node for mt2701

2016-07-03 Thread Matthias Brugger
On 06/08/2016 11:51 AM, honghui.zh...@mediatek.com wrote: From: Honghui Zhang Add the dtsi node of iommu and smi for mt2701. Signed-off-by: Honghui Zhang --- arch/arm/boot/dts/mt2701.dtsi | 51