Commit 1ed2d21
iommu/amd: Remove the amd_iommu_domain_set_pt_root() and related
Looks like many refactorings here have left this confused. There is only
one storage of the root/mode, it is in the iop struct.
increase_address_space() calls amd_iommu_domain_set_pgtable() with values
that it already stored in iop a few lines above.
amd_iommu_domain_clr_pt_root() is zero'ing memory we are about to free. It
used to protect against a double free of root, but that is gone now.
Remove amd_iommu_domain_set_pgtable(), amd_iommu_domain_set_pt_root(),
amd_iommu_domain_clr_pt_root() as they are all pointless.
Reviewed-by: Vasant Hegde <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>1 parent 322d889 commit 1ed2d21
2 files changed
+0
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | 137 | | |
151 | 138 | | |
152 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | 135 | | |
148 | 136 | | |
149 | 137 | | |
| |||
176 | 164 | | |
177 | 165 | | |
178 | 166 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | 167 | | |
186 | 168 | | |
187 | 169 | | |
| |||
560 | 542 | | |
561 | 543 | | |
562 | 544 | | |
563 | | - | |
564 | 545 | | |
565 | 546 | | |
566 | 547 | | |
567 | 548 | | |
568 | 549 | | |
569 | | - | |
570 | | - | |
571 | 550 | | |
572 | 551 | | |
573 | 552 | | |
574 | 553 | | |
575 | 554 | | |
576 | 555 | | |
577 | | - | |
578 | | - | |
579 | | - | |
580 | 556 | | |
581 | 557 | | |
582 | 558 | | |
| |||
0 commit comments