[PATCH v5 0/2] Audit Capability and Extended Capability among IOMMUs

2021-01-30 Thread Kyung Min Park
Modern platforms have more than one IOMMU. Each IOMMU has its own feature set. Some of these features must be consistent among IOMMUs. Otherwise, these differences can lead to improper behavior in the system. On the other hand, for some features, each IOMMU can have different capacity values. So, d

[PATCH v5 1/2] iommu/vt-d: Audit IOMMU Capabilities and add helper functions

2021-01-30 Thread Kyung Min Park
Audit IOMMU Capability/Extended Capability and check if the IOMMUs have the consistent value for features. Report out or scale to the lowest supported when IOMMU features have incompatibility among IOMMUs. Report out features when below features are mismatched: - First Level 5 Level Paging Suppo

[PATCH v5 2/2] iommu/vt-d: Move capability check code to cap_audit files

2021-01-30 Thread Kyung Min Park
Move IOMMU capability check and sanity check code to cap_audit files. Also implement some helper functions for sanity checks. Signed-off-by: Kyung Min Park --- drivers/iommu/intel/cap_audit.c | 20 + drivers/iommu/intel/cap_audit.h | 20 + drivers/iommu/intel/iommu.c | 76 +--

Re: [PATCH v4 1/3] iommu/vt-d: Audit IOMMU Capabilities and add helper functions

2021-01-30 Thread Kyung Min Park
Hi Allen, On Tue, 2021-01-19 at 09:55 +0800, Lu Baolu wrote: > Hi, > > On 1/6/21 9:30 AM, Kyung Min Park wrote: > > Audit IOMMU Capability/Extended Capability and check if the IOMMUs > > have > > the consistent value for features. Report out or scale to the > > lowest > > supported when IOMMU fea

Re: [PATCH 1/1] iommu/vt-d: Fix compile error [-Werror=implicit-function-declaration]

2021-01-30 Thread Randy Dunlap
On 1/30/21 7:19 AM, Lu Baolu wrote: > trace_qi_submit() could be used when interrupt remapping is supported, > but DMA remapping is not. In this case, the following compile error > occurs. > > ../drivers/iommu/intel/dmar.c: In function 'qi_submit_sync': > ../drivers/iommu/intel/dmar.c:1311:3: erro

[PATCH 1/1] iommu/vt-d: Fix compile error [-Werror=implicit-function-declaration]

2021-01-30 Thread Lu Baolu
trace_qi_submit() could be used when interrupt remapping is supported, but DMA remapping is not. In this case, the following compile error occurs. ../drivers/iommu/intel/dmar.c: In function 'qi_submit_sync': ../drivers/iommu/intel/dmar.c:1311:3: error: implicit declaration of function 'trace_qi_s