File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -2176,9 +2176,6 @@ static void protection_domain_free(struct protection_domain *domain)
2176
2176
if (domain -> iop .pgtbl_cfg .tlb )
2177
2177
free_io_pgtable_ops (& domain -> iop .iop .ops );
2178
2178
2179
- if (domain -> flags & PD_IOMMUV2_MASK )
2180
- free_gcr3_table (domain );
2181
-
2182
2179
if (domain -> iop .root )
2183
2180
free_page ((unsigned long )domain -> iop .root );
2184
2181
@@ -2206,15 +2203,10 @@ static int protection_domain_init_v1(struct protection_domain *domain, int mode)
2206
2203
return 0 ;
2207
2204
}
2208
2205
2209
- static int protection_domain_init_v2 (struct protection_domain * domain )
2206
+ static int protection_domain_init_v2 (struct protection_domain * pdom )
2210
2207
{
2211
- domain -> flags |= PD_GIOV_MASK ;
2212
- domain -> pd_mode = PD_MODE_V2 ;
2213
-
2214
- domain -> domain .pgsize_bitmap = AMD_IOMMU_PGSIZES_V2 ;
2215
-
2216
- if (setup_gcr3_table (domain , 1 ))
2217
- return - ENOMEM ;
2208
+ pdom -> pd_mode = PD_MODE_V2 ;
2209
+ pdom -> domain .pgsize_bitmap = AMD_IOMMU_PGSIZES_V2 ;
2218
2210
2219
2211
return 0 ;
2220
2212
}
You can’t perform that action at this time.
0 commit comments