File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1329,10 +1329,8 @@ static void free_dmar_iommu(struct intel_iommu *iommu)
1329
1329
/* free context mapping */
1330
1330
free_context_table (iommu );
1331
1331
1332
- if (pasid_supported (iommu )) {
1333
- if (ecap_prs (iommu -> ecap ))
1334
- intel_iommu_finish_prq (iommu );
1335
- }
1332
+ if (ecap_prs (iommu -> ecap ))
1333
+ intel_iommu_finish_prq (iommu );
1336
1334
}
1337
1335
1338
1336
/*
@@ -2192,7 +2190,7 @@ static int __init init_dmars(void)
2192
2190
2193
2191
iommu_flush_write_buffer (iommu );
2194
2192
2195
- if (pasid_supported ( iommu ) && ecap_prs (iommu -> ecap )) {
2193
+ if (ecap_prs (iommu -> ecap )) {
2196
2194
/*
2197
2195
* Call dmar_alloc_hwirq() with dmar_global_lock held,
2198
2196
* could cause possible lock race condition.
@@ -2616,7 +2614,7 @@ static int intel_iommu_add(struct dmar_drhd_unit *dmaru)
2616
2614
intel_iommu_init_qi (iommu );
2617
2615
iommu_flush_write_buffer (iommu );
2618
2616
2619
- if (pasid_supported ( iommu ) && ecap_prs (iommu -> ecap )) {
2617
+ if (ecap_prs (iommu -> ecap )) {
2620
2618
ret = intel_iommu_enable_prq (iommu );
2621
2619
if (ret )
2622
2620
goto disable_iommu ;
You can’t perform that action at this time.
0 commit comments