File tree Expand file tree Collapse file tree 1 file changed +1
-33
lines changed Expand file tree Collapse file tree 1 file changed +1
-33
lines changed Original file line number Diff line number Diff line change @@ -533,33 +533,6 @@ static void domain_update_iommu_coherency(struct dmar_domain *domain)
533
533
rcu_read_unlock ();
534
534
}
535
535
536
- static bool domain_update_iommu_snooping (struct intel_iommu * skip )
537
- {
538
- struct dmar_drhd_unit * drhd ;
539
- struct intel_iommu * iommu ;
540
- bool ret = true;
541
-
542
- rcu_read_lock ();
543
- for_each_active_iommu (iommu , drhd ) {
544
- if (iommu != skip ) {
545
- /*
546
- * If the hardware is operating in the scalable mode,
547
- * the snooping control is always supported since we
548
- * always set PASID-table-entry.PGSNP bit if the domain
549
- * is managed outside (UNMANAGED).
550
- */
551
- if (!sm_supported (iommu ) &&
552
- !ecap_sc_support (iommu -> ecap )) {
553
- ret = false;
554
- break ;
555
- }
556
- }
557
- }
558
- rcu_read_unlock ();
559
-
560
- return ret ;
561
- }
562
-
563
536
static int domain_update_iommu_superpage (struct dmar_domain * domain ,
564
537
struct intel_iommu * skip )
565
538
{
@@ -3572,12 +3545,7 @@ static int intel_iommu_add(struct dmar_drhd_unit *dmaru)
3572
3545
iommu -> name );
3573
3546
return - ENXIO ;
3574
3547
}
3575
- if (!ecap_sc_support (iommu -> ecap ) &&
3576
- domain_update_iommu_snooping (iommu )) {
3577
- pr_warn ("%s: Doesn't support snooping.\n" ,
3578
- iommu -> name );
3579
- return - ENXIO ;
3580
- }
3548
+
3581
3549
sp = domain_update_iommu_superpage (NULL , iommu ) - 1 ;
3582
3550
if (sp >= 0 && !(cap_super_page_val (iommu -> cap ) & (1 << sp ))) {
3583
3551
pr_warn ("%s: Doesn't support large page.\n" ,
You can’t perform that action at this time.
0 commit comments