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

2016-07-04 Thread Wan Zongshun
On 2016年07月05日 09:56, sunnydrake wrote: On 04.07.16 16:51, Wan Zongshun wrote: 在 7/4/2016 4:48 AM, sunnydrake 写道: Thanks for reply. On 03.07.16 17:26, Wan Zongshun wrote: 在 7/3/2016 8:59 AM, sunnydrake 写道: [description] working in kernel 3.9 Oops in current 4.4.0-28,4.7.0-040700rc5 ker

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

2016-07-04 Thread sunnydrake
On 04.07.16 16:51, Wan Zongshun wrote: 在 7/4/2016 4:48 AM, sunnydrake 写道: Thanks for reply. On 03.07.16 17:26, Wan Zongshun wrote: 在 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_ioa

Re: [PATCH] iommu: simplify and fix ida handling

2016-07-04 Thread Heiner Kallweit
Am 04.07.2016 um 13:46 schrieb Joerg Roedel: > On Wed, Jun 29, 2016 at 09:13:59PM +0200, Heiner Kallweit wrote: >> Ida handling can be much simplified by using the ida_simple_.. functions. >> >> This change also fixes the bug that previously checking for errors >> returned by ida_get_new() was inco

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

2016-07-04 Thread Wan Zongshun
在 7/4/2016 4:48 AM, sunnydrake 写道: Thanks for reply. On 03.07.16 17:26, Wan Zongshun wrote: 在 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 ta

Re: [PATCH] iommu: simplify and fix ida handling

2016-07-04 Thread Joerg Roedel
On Wed, Jun 29, 2016 at 09:13:59PM +0200, Heiner Kallweit wrote: > Ida handling can be much simplified by using the ida_simple_.. functions. > > This change also fixes the bug that previously checking for errors > returned by ida_get_new() was incomplete. > ida_get_new() can return errors other th

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

2016-07-04 Thread Joerg Roedel
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. Since the value 65536 > will not fix in a u16, the

[PATCH] iommu: arm-smmu: use devm_request_irq and devm_free_irq

2016-07-04 Thread Peng Fan
Use devm_request_irq to simplify error handling path, when probe smmu device. Also devm_{request|free}_irq when init or destroy domain context. Signed-off-by: Peng Fan Cc: Will Deacon Cc: Robin Murphy --- drivers/iommu/arm-smmu.c | 24 ++-- 1 file changed, 10 insertions(+)

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

2016-07-04 Thread sunnydrake
Thanks for reply. On 03.07.16 17:26, Wan Zongshun wrote: 在 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

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

2016-07-04 Thread Matthias Brugger
On 04/07/16 03:32, Honghui Zhang wrote: 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. Signed-off-by: