Re: [RFCv2 PATCH 26/36] iommu/arm-smmu-v3: Add support for Hardware Translation Table Update

2017-12-05 Thread Yisheng Xie
Hi Jean, On 2017/10/6 21:31, Jean-Philippe Brucker wrote: > If the SMMU supports it and the kernel was built with HTTU support, enable > + if (IS_ENABLED(CONFIG_ARM64_HW_AFDBM) && (reg & (IDR0_HA | IDR0_HD))) { > + smmu->features |= ARM_SMMU_FEAT_HA; > + if (reg & IDR0_

[PATCH v3 6/6] iommu/vt-d: Add debugfs support for Intel IOMMU Interrupt remapping

2017-12-05 Thread Sohil Mehta
Debugfs extension for Intel IOMMU to dump Interrupt remapping table entries for Interrupt remapping and Interrupt posting. The file /sys/kernel/debug/intel_iommu/ir_translation_struct provides detailed information, such as Index, Source Id, Destination Id, Vector and the raw values for entries wit

[PATCH v3 4/6] iommu/vt-d: Add debugfs extension to show register contents

2017-12-05 Thread Sohil Mehta
From: Gayatri Kammela Debugfs extension to dump all the register contents for each IOMMU device to the user space via debugfs. example: root@OTC-KBLH-01:~# cat /sys/kernel/debug/intel_iommu/iommu_regset DMAR: dmar1: reg_base_addr fed9 Name Offset Contents VER 0x00

[PATCH v3 2/6] iommu/vt-d: Add Intel IOMMU debugfs to show context internals

2017-12-05 Thread Sohil Mehta
From: Gayatri Kammela IOMMU internals states such as root and context can be exported to the userspace. Example of such dump in Kabylake: root@OTC-KBLH-01:~# cat /sys/kernel/debug/intel_iommu/dmar_translation_struct IOMMU dmar2:Root Table Addr:4558a3000 Root tbl entries: Bus 0 L: 4558aa00

[PATCH v3 5/6] iommu/vt-d: Add debugfs extension to show Pasid table contents

2017-12-05 Thread Sohil Mehta
From: Gayatri Kammela Debugfs extension to dump the internals such as pasid table entries for each IOMMU to the userspace. Example of such dump in Kabylake: root@OTC-KBLH-01:~# cat /sys/kernel/debug/intel_iommu/dmar_translation_struct IOMMU dmar0: Extended Root Table Addr:4310c4800 Extended Ro

[PATCH v3 0/6] Intel IOMMU debugfs support

2017-12-05 Thread Sohil Mehta
Hi all, This series aims to add debugfs support for Intel IOMMU. It exposes IOMMU registers, internal context and dumps individual table entries to help debug Intel IOMMUs. The first patch does the ground work for the following patches by creating a new Kconfig option - INTEL_IOMMU_DEBUG. It also

[PATCH v3 3/6] iommu/vt-d: Add Intel IOMMU debugfs to show extended context internals

2017-12-05 Thread Sohil Mehta
From: Gayatri Kammela Debugfs extension to dump internals such as extended context table entries for each IOMMU to the userspace. root@OTC-KBLH-01:~# cat /sys/kernel/debug/intel_iommu/dmar_translation_struct IOMMU dmar1: Extended Root Table Addr:4558a1800 Extended Root tbl entries: Bus 0 L: 455

[PATCH v3 1/6] iommu/vt-d: Add debugfs support for Intel IOMMU internals

2017-12-05 Thread Sohil Mehta
From: Gayatri Kammela Enable Intel IOMMU debug to export Intel IOMMU internals in debugfs Cc: Sohil Mehta Cc: Fenghua Yu Cc: Ashok Raj Signed-off-by: Jacob Pan Signed-off-by: Gayatri Kammela --- v3: No change v2: No change drivers/iommu/Kconfig | 10 ++ drivers/iommu/intel

RE: [PATCH v4 00/12] Intel IPU3 ImgU patchset

2017-12-05 Thread Mani, Rajmohan
Hi Tomasz, Hans, > Subject: Re: [PATCH v4 00/12] Intel IPU3 ImgU patchset > > On 12/05/2017 04:22 AM, Tomasz Figa wrote: > > Hi Raj, > > > > On Tue, Dec 5, 2017 at 9:13 AM, Mani, Rajmohan > wrote: > >> Hi Hans, > >> > >> Thanks for your patience and sharing your thoughts on this. > >> > >>> Subj

Re: [PATCH v3 15/16] iommu: introduce page response function

2017-12-05 Thread Jean-Philippe Brucker
Hi Jacob, On 04/12/17 21:37, Jacob Pan wrote: > On Fri, 24 Nov 2017 12:03:50 + > Jean-Philippe Brucker wrote: > >> On 17/11/17 18:55, Jacob Pan wrote: >>> When nested translation is turned on and guest owns the >>> first level page tables, device page request can be forwared >>> to the guest