File tree Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -4064,35 +4064,6 @@ static struct notifier_block intel_iommu_memory_nb = {
4064
4064
.priority = 0
4065
4065
};
4066
4066
4067
- static void free_all_cpu_cached_iovas (unsigned int cpu )
4068
- {
4069
- int i ;
4070
-
4071
- for (i = 0 ; i < g_num_of_iommus ; i ++ ) {
4072
- struct intel_iommu * iommu = g_iommus [i ];
4073
- struct dmar_domain * domain ;
4074
- int did ;
4075
-
4076
- if (!iommu )
4077
- continue ;
4078
-
4079
- for (did = 0 ; did < cap_ndoms (iommu -> cap ); did ++ ) {
4080
- domain = get_iommu_domain (iommu , (u16 )did );
4081
-
4082
- if (!domain || domain -> domain .type != IOMMU_DOMAIN_DMA )
4083
- continue ;
4084
-
4085
- iommu_dma_free_cpu_cached_iovas (cpu , & domain -> domain );
4086
- }
4087
- }
4088
- }
4089
-
4090
- static int intel_iommu_cpu_dead (unsigned int cpu )
4091
- {
4092
- free_all_cpu_cached_iovas (cpu );
4093
- return 0 ;
4094
- }
4095
-
4096
4067
static void intel_disable_iommus (void )
4097
4068
{
4098
4069
struct intel_iommu * iommu = NULL ;
@@ -4387,8 +4358,6 @@ int __init intel_iommu_init(void)
4387
4358
bus_set_iommu (& pci_bus_type , & intel_iommu_ops );
4388
4359
if (si_domain && !hw_pass_through )
4389
4360
register_memory_notifier (& intel_iommu_memory_nb );
4390
- cpuhp_setup_state (CPUHP_IOMMU_INTEL_DEAD , "iommu/intel:dead" , NULL ,
4391
- intel_iommu_cpu_dead );
4392
4361
4393
4362
down_read (& dmar_global_lock );
4394
4363
if (probe_acpi_namespace_devices ())
Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ enum cpuhp_state {
57
57
CPUHP_PAGE_ALLOC_DEAD ,
58
58
CPUHP_NET_DEV_DEAD ,
59
59
CPUHP_PCI_XGENE_DEAD ,
60
- CPUHP_IOMMU_INTEL_DEAD ,
61
60
CPUHP_IOMMU_IOVA_DEAD ,
62
61
CPUHP_LUSTRE_CFS_DEAD ,
63
62
CPUHP_AP_ARM_CACHE_B15_RAC_DEAD ,
You can’t perform that action at this time.
0 commit comments