Intel IOMMU updates for v6.15
Subsystems (2)
Lu Baolu
maintainerHi Joerg,
The following changes have been queued for v6.15-rc1. They are about new features and code refactoring, including:
- Checking for SVA support in domain allocation and attach paths
- Move PCI ATS and PRI configuration into probe paths
- Fix a pentential hang on reboot -f
- Miscellaneous cleanups
These patches are based on v6.14-rc6. Please consider them for the iommu/vt-d branch.
Best regards,
baolu
Jason Gunthorpe (2):
iommu/vt-d: Use virt_to_phys()
iommu/vt-d: Check if SVA is supported when attaching the SVA domain
Lu Baolu (3):
iommu/vt-d: Move scalable mode ATS enablement to probe path iommu/vt-d: Move PRI enablement in probe path iommu/vt-d: Cleanup intel_context_flush_present()
Yunhui Cui (1):
iommu/vt-d: Fix system hang on reboot -f
drivers/iommu/intel/iommu.c | 237 +++++++++++++----------------------- drivers/iommu/intel/iommu.h | 28 +---- drivers/iommu/intel/pasid.c | 43 ++----- drivers/iommu/intel/prq.c | 2 +- drivers/iommu/intel/svm.c | 43 +++++++ 5 files changed, 143 insertions(+), 210 deletions(-)
Signature · 1 line
2.43.0
Lu Baolu
maintainerPATCH 1/6 iommu/vt-d: Fix system hang on reboot -f
From: Yunhui Cui <[email protected]>
We found that executing the command ./a.out &;reboot -f (where a.out is a program that only executes a while(1) infinite loop) can probabilistically cause the system to hang in the intel_iommu_shutdown() function, rendering it unresponsive. Through analysis, we identified that the factors contributing to this issue are as follows:
1. The reboot -f command does not prompt the kernel to notify the application layer to perform cleanup actions, allowing the application to continue running.
2. When the kernel reaches the intel_iommu_shutdown() function, only the BSP (Bootstrap Processor) CPU is operational in the system.
3. During the execution of intel_iommu_shutdown(), the function down_write (&dmar_global_lock) causes the process to sleep and be scheduled out.
4. At this point, though the processor's interrupt flag is not cleared, allowing interrupts to be accepted. However, only legacy devices and NMI
(Non-Maskable Interrupt) interrupts could come in, as other interrupts routing have already been disabled. If no legacy or NMI interrupts occur at this stage, the scheduler will not be able to run.
5. If the application got scheduled at this time is executing a while(1)- type loop, it will be unable to be preempted, leading to an infinite loop and causing the system to become unresponsive.
To resolve this issue, the intel_iommu_shutdown() function should not execute down_write(), which can potentially cause the process to be scheduled out. Furthermore, since only the BSP is running during the later stages of the reboot, there is no need for protection against parallel access to the DMAR (DMA Remapping) unit. Therefore, the following lines could be removed:
down_write(&dmar_global_lock);up_write(&dmar_global_lock);
After testing, the issue has been resolved.
--- drivers/iommu/intel/iommu.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-)
drivers/iommu/intel/iommu.c +10 -7
@@ -2871,16 +2871,19 @@ void intel_iommu_shutdown(void)if (no_iommu || dmar_disabled)return ; -down_write (&dmar_global_lock); +/* +* All other CPUs were brought down, hotplug interrupts were disabled, +* no lock and RCU checking needed anymore +*/ +list_for_each_entry (drhd, &dmar_drhd_units, list) { + iommu = drhd->iommu; -/* Disable PMRs explicitly here. */ -for_each_iommu (iommu, drhd) +/* Disable PMRs explicitly here. */ iommu_disable_protect_mem_regions (iommu); -/* Make sure the IOMMUs are switched off */ -intel_disable_iommus (); - -up_write (&dmar_global_lock); +/* Make sure the IOMMUs are switched off */ +iommu_disable_translation (iommu); + } }static struct intel_iommu *dev_to_intel_iommu (struct device *dev)
Signature · 1 line
2.43.0
Lu Baolu
maintainerPATCH 2/6 iommu/vt-d: Use virt_to_phys()
In reply to Lu BaoluFrom: Jason Gunthorpe <[email protected]>
If all the inlines are unwound virt_to_dma_pfn() is simply:
return page_to_pfn(virt_to_page(p)) << (PAGE_SHIFT - VTD_PAGE_SHIFT);
Which can be re-arranged to:
(page_to_pfn(virt_to_page(p)) << PAGE_SHIFT) >> VTD_PAGE_SHIFT
The only caller is:
((uint64_t)virt_to_dma_pfn(tmp_page) << VTD_PAGE_SHIFT)
re-arranged to:
((page_to_pfn(virt_to_page(tmp_page)) << PAGE_SHIFT) >> VTD_PAGE_SHIFT)
<< VTD_PAGE_SHIFT
Which simplifies to:
page_to_pfn(virt_to_page(tmp_page)) << PAGE_SHIFT
That is the same as virt_to_phys(tmp_page), so just remove all of this.
--- drivers/iommu/intel/iommu.c | 3 ++- drivers/iommu/intel/iommu.h | 19 ------------------- 2 files changed, 2 insertions(+), 20 deletions(-)
drivers/iommu/intel/iommu.c +2 -1
@@ -737,7 +737,8 @@ static struct dma_pte *pfn_to_dma_pte(struct dmar_domain *domain,return NULL ;domain_flush_cache (domain, tmp_page,VTD_PAGE_SIZE ); - pteval = ((uint64_t )virt_to_dma_pfn (tmp_page) <<VTD_PAGE_SHIFT ) |DMA_PTE_READ |DMA_PTE_WRITE ; + pteval =virt_to_phys (tmp_page) |DMA_PTE_READ | +DMA_PTE_WRITE ;if (domain->use_first_level) pteval |=DMA_FL_PTE_US |DMA_FL_PTE_ACCESS ;
drivers/iommu/intel/iommu.h +0 -19
@@ -953,25 +953,6 @@ static inline unsigned long lvl_to_nr_pages(unsigned int lvl)return 1UL <<min_t (int, (lvl -1 ) *LEVEL_STRIDE ,MAX_AGAW_PFN_WIDTH ); } -/* VT-d pages must always be _smaller_ than MM pages. Otherwise things -are never going to work. */ -static inline unsigned long mm_to_dma_pfn_start (unsigned long mm_pfn) -{ -return mm_pfn << (PAGE_SHIFT -VTD_PAGE_SHIFT ); -} -static inline unsigned long mm_to_dma_pfn_end (unsigned long mm_pfn) -{ -return ((mm_pfn +1 ) << (PAGE_SHIFT -VTD_PAGE_SHIFT )) -1 ; -} -static inline unsigned long page_to_dma_pfn (struct page *pg) -{ -return mm_to_dma_pfn_start (page_to_pfn (pg)); -} -static inline unsigned long virt_to_dma_pfn (void *p) -{ -return page_to_dma_pfn (virt_to_page (p)); -} -static inline void context_set_present (struct context_entry *context) { context->lo |=1 ;
Signature · 1 line
2.43.0
Lu Baolu
maintainerPATCH 3/6 iommu/vt-d: Check if SVA is supported when attaching the SVA domain
In reply to Lu BaoluFrom: Jason Gunthorpe <[email protected]>
Attach of a SVA domain should fail if SVA is not supported, move the check for SVA support out of IOMMU_DEV_FEAT_SVA and into attach.
Also check when allocating a SVA domain to match other drivers.
--- drivers/iommu/intel/iommu.c | 37 +------------------------------ drivers/iommu/intel/svm.c | 43 +++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 36 deletions(-)
drivers/iommu/intel/iommu.c +1 -36
@@ -3862,41 +3862,6 @@ static struct iommu_group *intel_iommu_device_group(struct device *dev)return generic_device_group (dev); } -static int intel_iommu_enable_sva (struct device *dev) -{ -struct device_domain_info *info =dev_iommu_priv_get (dev); -struct intel_iommu *iommu; - -if (!info || dmar_disabled) -return -EINVAL ; - - iommu = info->iommu; -if (!iommu) -return -EINVAL ; - -if (!(iommu->flags &VTD_FLAG_SVM_CAPABLE )) -return -ENODEV ; - -if (!info->pasid_enabled || !info->ats_enabled) -return -EINVAL ; - -/* -* Devices having device-specific I/O fault handling should not -* support PCI/PRI. The IOMMU side has no means to check the -* capability of device-specific IOPF. Therefore, IOMMU can only -* default that if the device driver enables SVA on a non-PRI -* device, it will handle IOPF in its own way. -*/ -if (!info->pri_supported) -return 0 ; - -/* Devices supporting PRI should have it enabled. */ -if (!info->pri_enabled) -return -EINVAL ; - -return 0 ; -} -static int context_flip_pri (struct device_domain_info *info,bool enable) {struct intel_iommu *iommu = info->iommu;
@@ -4017,7 +3982,7 @@ intel_iommu_dev_enable_feat(struct device *dev, enum iommu_dev_features feat)return intel_iommu_enable_iopf (dev);case IOMMU_DEV_FEAT_SVA : -return intel_iommu_enable_sva (dev); +return 0 ;default :return -ENODEV ;
drivers/iommu/intel/svm.c +43 -0
61 lines not on this page · raw message
Signature · 1 line
2.43.0
Lu Baolu
maintainerPATCH 4/6 iommu/vt-d: Move scalable mode ATS enablement to probe path
In reply to Lu BaoluDevice ATS is currently enabled when a domain is attached to the device and disabled when the domain is detached. This creates a limitation:
when the IOMMU is operating in scalable mode and IOPF is enabled, the device's domain cannot be changed.
The previous code enables ATS when a domain is set to a device's RID and disables it during RID domain switch. So, if a PASID is set with a domain requiring PRI, ATS should remain enabled until the domain is removed. During the PASID domain's lifecycle, if the RID's domain changes, PRI will be disrupted because it depends on ATS, which is disabled when the blocking domain is set for the device's RID.
Remove this limitation by moving ATS enablement to the device probe path.
--- drivers/iommu/intel/iommu.c | 51 ++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 24 deletions(-)
drivers/iommu/intel/iommu.c +27 -24
@@ -1173,32 +1173,28 @@ static bool dev_needs_extra_dtlb_flush(struct pci_dev *pdev)return true; } -static void iommu_enable_pci_caps (struct device_domain_info *info) +static void iommu_enable_pci_ats (struct device_domain_info *info) {struct pci_dev *pdev; -if (!dev_is_pci (info->dev)) +if (!info->ats_supported)return ; pdev =to_pci_dev (info->dev); -if (info->ats_supported &&pci_ats_page_aligned (pdev) && - !pci_enable_ats (pdev,VTD_PAGE_SHIFT )) +if (!pci_ats_page_aligned (pdev)) +return ; + +if (!pci_enable_ats (pdev,VTD_PAGE_SHIFT )) info->ats_enabled =1 ; } -static void iommu_disable_pci_caps (struct device_domain_info *info) +static void iommu_disable_pci_ats (struct device_domain_info *info) { -struct pci_dev *pdev; - -if (!dev_is_pci (info->dev)) +if (!info->ats_enabled)return ; - pdev =to_pci_dev (info->dev); - -if (info->ats_enabled) { -pci_disable_ats (pdev); - info->ats_enabled =0 ; - } +pci_disable_ats (to_pci_dev (info->dev)); + info->ats_enabled =0 ; }static void intel_flush_iotlb_all (struct iommu_domain *domain)
@@ -1557,12 +1553,19 @@ domain_context_mapping(struct dmar_domain *domain, struct device *dev)struct device_domain_info *info =dev_iommu_priv_get (dev);struct intel_iommu *iommu = info->iommu;u8 bus = info->bus, devfn = info->devfn; +int ret;if (!dev_is_pci (dev))return domain_context_mapping_one (domain, iommu, bus, devfn); -return pci_for_each_dma_alias (to_pci_dev (dev), - domain_context_mapping_cb, domain); + ret =pci_for_each_dma_alias (to_pci_dev (dev), + domain_context_mapping_cb, domain); +if (ret) +return ret; + +iommu_enable_pci_ats (info); + +return 0 ; }/* Return largest possible superpage level for a given mapping */
@@ -1844,8 +1847,6 @@ static int dmar_domain_attach_device(struct dmar_domain *domain,if (ret) goto out_block_translation; -iommu_enable_pci_caps (info); - ret =cache_tag_assign_domain (domain, dev,IOMMU_NO_PASID );if (ret) goto out_block_translation;
@@ -3209,6 +3210,7 @@ static void domain_context_clear(struct device_domain_info *info)pci_for_each_dma_alias (to_pci_dev (info->dev), &domain_context_clear_one_cb, info); +iommu_disable_pci_ats (info); }/*
@@ -3225,7 +3227,6 @@ void device_block_translation(struct device *dev)if (info->domain)cache_tag_unassign_domain (info->domain, dev,IOMMU_NO_PASID ); -iommu_disable_pci_caps (info);if (!dev_is_real_dma_subdevice (dev)) {if (sm_supported (iommu)) intel_pasid_tear_down_entry(iommu, dev,
@@ -3760,6 +3761,9 @@ static struct iommu_device *intel_iommu_probe_device(struct device *dev) !pci_enable_pasid(pdev, info->pasid_supported & ~1)) info->pasid_enabled = 1; +if (sm_supported (iommu)) +iommu_enable_pci_ats (info); +return &iommu->iommu; free_table:intel_pasid_free_table (dev);
@@ -3776,6 +3780,8 @@ static void intel_iommu_release_device(struct device *dev)struct device_domain_info *info =dev_iommu_priv_get (dev);struct intel_iommu *iommu = info->iommu; +iommu_disable_pci_ats (info); +if (info->pasid_enabled) {pci_disable_pasid (to_pci_dev (dev)); info->pasid_enabled =0 ;
@@ -4379,13 +4385,10 @@ static int identity_domain_attach_dev(struct iommu_domain *domain, struct deviceif (dev_is_real_dma_subdevice (dev))return 0 ; -if (sm_supported (iommu)) { +if (sm_supported (iommu)) ret =intel_pasid_setup_pass_through (iommu, dev,IOMMU_NO_PASID ); -if (!ret) -iommu_enable_pci_caps (info); - }else { +else ret =device_setup_pass_through (dev); - }return ret; }
Signature · 1 line
2.43.0
Lu Baolu
maintainerPATCH 5/6 iommu/vt-d: Move PRI enablement in probe path
In reply to Lu BaoluUpdate PRI enablement to use the new method, similar to the amd iommu driver. Enable PRI in the device probe path and disable it when the device is released. PRI is enabled throughout the device's iommu lifecycle. The infrastructure for the iommu subsystem to handle iopf requests is created during iopf enablement and released during iopf disablement. All invalid page requests from the device are automatically handled by the iommu subsystem if iopf is not enabled. Add iopf_refcount to track the iopf enablement.
Convert the return type of intel_iommu_disable_iopf() to void, as there is no way to handle a failure when disabling this feature. Make intel_iommu_enable/disable_iopf() helpers global, as they will be used beyond the current file in the subsequent patch.
The iopf_refcount is not protected by any lock. This is acceptable, as there is no concurrent access to it in the current code. The following patch will address this by moving it to the domain attach/detach paths, which are protected by the iommu group mutex.
--- drivers/iommu/intel/iommu.c | 137 +++++++++++++----------------------- drivers/iommu/intel/iommu.h | 4 ++ drivers/iommu/intel/pasid.c | 2 + drivers/iommu/intel/prq.c | 2 +- 4 files changed, 55 insertions(+), 90 deletions(-)
drivers/iommu/intel/iommu.c +48 -89
@@ -1197,6 +1197,37 @@ static void iommu_disable_pci_ats(struct device_domain_info *info) info->ats_enabled =0 ; } +static void iommu_enable_pci_pri (struct device_domain_info *info) +{ +struct pci_dev *pdev; + +if (!info->ats_enabled || !info->pri_supported) +return ; + + pdev =to_pci_dev (info->dev); +/* PASID is required in PRG Response Message. */ +if (info->pasid_enabled && !pci_prg_resp_pasid_required (pdev)) +return ; + +if (pci_reset_pri (pdev)) +return ; + +if (!pci_enable_pri (pdev,PRQ_DEPTH )) + info->pri_enabled =1 ; +} + +static void iommu_disable_pci_pri (struct device_domain_info *info) +{ +if (!info->pri_enabled) +return ; + +if (WARN_ON (info->iopf_refcount)) +iopf_queue_remove_device (info->iommu->iopf_queue, info->dev); + +pci_disable_pri (to_pci_dev (info->dev)); + info->pri_enabled =0 ; +} +static void intel_flush_iotlb_all (struct iommu_domain *domain) {cache_tag_flush_all (to_dmar_domain (domain));
@@ -3763,6 +3794,7 @@ static struct iommu_device *intel_iommu_probe_device(struct device *dev)if (sm_supported (iommu))iommu_enable_pci_ats (info); +iommu_enable_pci_pri (info);return &iommu->iommu; free_table:
@@ -3780,6 +3812,7 @@ static void intel_iommu_release_device(struct device *dev)struct device_domain_info *info =dev_iommu_priv_get (dev);struct intel_iommu *iommu = info->iommu; +iommu_disable_pci_pri (info);iommu_disable_pci_ats (info);if (info->pasid_enabled) {
@@ -3868,116 +3901,41 @@ static struct iommu_group *intel_iommu_device_group(struct device *dev)return generic_device_group (dev); } -static int context_flip_pri (struct device_domain_info *info,bool enable) +int intel_iommu_enable_iopf (struct device *dev) { -struct intel_iommu *iommu = info->iommu; -u8 bus = info->bus, devfn = info->devfn; -struct context_entry *context; -u16 did; - -spin_lock (&iommu->lock); -if (context_copied (iommu, bus, devfn)) { -spin_unlock (&iommu->lock); -return -EINVAL ; - } - - context =iommu_context_addr (iommu, bus, devfn, false); -if (!context || !context_present (context)) { -spin_unlock (&iommu->lock); -return -ENODEV ; - } - did =context_domain_id (context); - -if (enable) -context_set_sm_pre (context); -else -context_clear_sm_pre (context); - -if (!ecap_coherent (iommu->ecap)) -clflush_cache_range (context,sizeof (*context)); -intel_context_flush_present (info, context, did, true); -spin_unlock (&iommu->lock); - -return 0 ; -} - -static int intel_iommu_enable_iopf (struct device *dev) -{ -struct pci_dev *pdev =dev_is_pci (dev) ?to_pci_dev (dev) :NULL ;struct device_domain_info *info =dev_iommu_priv_get (dev); -struct intel_iommu *iommu; +struct intel_iommu *iommu = info->iommu;int ret; -if (!pdev || !info || !info->ats_enabled || !info->pri_supported) +if (!info->pri_enabled)return -ENODEV ; -if (info->pri_enabled) -return -EBUSY ; - - iommu = info->iommu; -if (!iommu) -return -EINVAL ; - -/* PASID is required in PRG Response Message. */ -if (info->pasid_enabled && !pci_prg_resp_pasid_required (pdev)) -return -EINVAL ; - - ret =pci_reset_pri (pdev); -if (ret) -return ret; +if (info->iopf_refcount) { + info->iopf_refcount++; +return 0 ; + } ret =iopf_queue_add_device (iommu->iopf_queue, dev);if (ret)return ret; - ret =context_flip_pri (info, true); -if (ret) - goto err_remove_device; - - ret =pci_enable_pri (pdev,PRQ_DEPTH ); -if (ret) - goto err_clear_pri; - - info->pri_enabled =1 ; + info->iopf_refcount =1 ;return 0 ; -err_clear_pri: -context_flip_pri (info, false); -err_remove_device: -iopf_queue_remove_device (iommu->iopf_queue, dev); - -return ret; } -static int intel_iommu_disable_iopf (struct device *dev) +void intel_iommu_disable_iopf (struct device *dev) {struct device_domain_info *info =dev_iommu_priv_get (dev);struct intel_iommu *iommu = info->iommu; -if (!info->pri_enabled) -return -EINVAL ; +if (WARN_ON (!info->pri_enabled || !info->iopf_refcount)) +return ; -/* Disable new PRI reception: */ -context_flip_pri (info, false); +if (--info->iopf_refcount) +return ; -/* -* Remove device from fault queue and acknowledge all outstanding -* PRQs to the device: -*/ iopf_queue_remove_device (iommu->iopf_queue, dev); - -/* -* PCIe spec states that by clearing PRI enable bit, the Page -* Request Interface will not issue new page requests, but has -* outstanding page requests that have been transmitted or are -* queued for transmission. This is supposed to be called after -* the device driver has stopped DMA, all PASIDs have been -* unbound and the outstanding PRQs have been drained. -*/ -pci_disable_pri (to_pci_dev (dev)); - info->pri_enabled =0 ; - -return 0 ; } static int
@@ -4000,7 +3958,8 @@ intel_iommu_dev_disable_feat(struct device *dev, enum iommu_dev_features feat) {switch (feat) {case IOMMU_DEV_FEAT_IOPF : -return intel_iommu_disable_iopf (dev); +intel_iommu_disable_iopf (dev); +return 0 ;case IOMMU_DEV_FEAT_SVA :return 0 ;
drivers/iommu/intel/iommu.h +4 -0
@@ -774,6 +774,7 @@ struct device_domain_info { u8 ats_enabled:1; u8 dtlb_extra_inval:1; /* Quirk for devices need extra flush */u8 ats_qdep; +unsigned int iopf_refcount;struct device *dev;/* it's NULL for PCIe-to-PCI bridge */ struct intel_iommu *iommu;/* IOMMU used by this device */ struct dmar_domain *domain;/* pointer to domain */
@@ -1295,6 +1296,9 @@ void intel_iommu_page_response(struct device *dev, struct iopf_fault *evt, struct iommu_page_response *msg);void intel_iommu_drain_pasid_prq (struct device *dev,u32 pasid); +int intel_iommu_enable_iopf (struct device *dev); +void intel_iommu_disable_iopf (struct device *dev); +#ifdef CONFIG_INTEL_IOMMU_SVM void intel_svm_check (struct intel_iommu *iommu); struct iommu_domain *intel_svm_domain_alloc(struct device *dev,
drivers/iommu/intel/pasid.c +2 -0
@@ -992,6 +992,8 @@ static int context_entry_set_pasid_table(struct context_entry *context,context_set_sm_dte (context);if (info->pasid_supported)context_set_pasid (context); +if (info->pri_supported) +context_set_sm_pre (context);context_set_fault_enable (context);context_set_present (context);
drivers/iommu/intel/prq.c +1 -1
@@ -67,7 +67,7 @@ void intel_iommu_drain_pasid_prq(struct device *dev, u32 pasid)u16 sid, did; info =dev_iommu_priv_get (dev); -if (!info->pri_enabled) +if (!info->iopf_refcount)return ; iommu = info->iommu;
Signature · 1 line
2.43.0
Lu Baolu
maintainerPATCH 6/6 iommu/vt-d: Cleanup intel_context_flush_present()
In reply to Lu BaoluThe intel_context_flush_present() is called in places where either the scalable mode is disabled, or scalable mode is enabled but all PASID entries are known to be non-present. In these cases, the flush_domains path within intel_context_flush_present() will never execute. This dead code is therefore removed.
--- drivers/iommu/intel/iommu.c | 2 +- drivers/iommu/intel/iommu.h | 5 ++--- drivers/iommu/intel/pasid.c | 41 +++++++------------------------------ 3 files changed, 10 insertions(+), 38 deletions(-)
drivers/iommu/intel/iommu.c +1 -1
@@ -1783,7 +1783,7 @@ static void domain_context_clear_one(struct device_domain_info *info, u8 bus, u8context_clear_entry (context);__iommu_flush_cache (iommu, context,sizeof (*context));spin_unlock (&iommu->lock); -intel_context_flush_present (info, context, did, true); +intel_context_flush_no_pasid (info, context, did); } int __domain_setup_first_level(struct intel_iommu *iommu,
drivers/iommu/intel/iommu.h +2 -3
@@ -1286,9 +1286,8 @@ void cache_tag_flush_all(struct dmar_domain *domain);void cache_tag_flush_range_np (struct dmar_domain *domain,unsigned long start,unsigned long end); -void intel_context_flush_present (struct device_domain_info *info, -struct context_entry *context, -u16 did,bool affect_domains); +void intel_context_flush_no_pasid (struct device_domain_info *info, +struct context_entry *context,u16 did);int intel_iommu_enable_prq (struct intel_iommu *iommu);int intel_iommu_finish_prq (struct intel_iommu *iommu);
drivers/iommu/intel/pasid.c +7 -34
61 lines not on this page · raw message
Signature · 1 line
2.43.0
Quoted 28 lines · Lu Baolu
Hi Joerg,
The following changes have been queued for v6.15-rc1. They are about new features and code refactoring, including:
- Checking for SVA support in domain allocation and attach paths
- Move PCI ATS and PRI configuration into probe paths
- Fix a pentential hang on reboot -f
- Miscellaneous cleanupsThese patches are based on v6.14-rc6. Please consider them for the iommu/vt-d branch.
Best regards,
baoluJason Gunthorpe (2):
iommu/vt-d: Usevirt_to_phys()
iommu/vt-d: Check if SVA is supported when attaching the SVA domainLu Baolu (3):
iommu/vt-d: Move scalable mode ATS enablement to probe path iommu/vt-d: Move PRI enablement in probe path iommu/vt-d: Cleanupintel_context_flush_present()Yunhui Cui (1):
iommu/vt-d: Fix system hang on reboot -f
Quoted 6 lines
drivers/iommu/intel/iommu.c | 237 +++++++++++++----------------------- drivers/iommu/intel/iommu.h | 28 +---- drivers/iommu/intel/pasid.c | 43 ++----- drivers/iommu/intel/prq.c | 2 +- drivers/iommu/intel/svm.c | 43 +++++++ 5 files changed, 143 insertions(+), 210 deletions(-)
Applied, thanks Baolu.