Commit 327e10b
iommu/arm-smmu-v3: Convert to domain_alloc_paging()
Now that the BLOCKED and IDENTITY behaviors are managed with their own
domains change to the domain_alloc_paging() op.
For now SVA remains using the old interface, eventually it will get its
own op that can pass in the device and mm_struct which will let us have a
sane lifetime for the mmu_notifier.
Call arm_smmu_domain_finalise() early if dev is available.
Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Tested-by: Moritz Fischer <moritzf@google.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/16-v6-96275f25c39d+2d4-smmuv3_newapi_p1_jgg@nvidia.com
Signed-off-by: Will Deacon <will@kernel.org>1 parent d8cd200 commit 327e10b
1 file changed
Lines changed: 17 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2197 | 2197 | | |
2198 | 2198 | | |
2199 | 2199 | | |
2200 | | - | |
2201 | 2200 | | |
2202 | 2201 | | |
2203 | 2202 | | |
| 2203 | + | |
| 2204 | + | |
2204 | 2205 | | |
2205 | | - | |
2206 | | - | |
2207 | | - | |
| 2206 | + | |
| 2207 | + | |
| 2208 | + | |
2208 | 2209 | | |
2209 | 2210 | | |
2210 | 2211 | | |
| |||
2213 | 2214 | | |
2214 | 2215 | | |
2215 | 2216 | | |
2216 | | - | |
| 2217 | + | |
2217 | 2218 | | |
2218 | 2219 | | |
2219 | 2220 | | |
2220 | 2221 | | |
2221 | 2222 | | |
2222 | 2223 | | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
| 2233 | + | |
2223 | 2234 | | |
2224 | 2235 | | |
2225 | 2236 | | |
| |||
3083 | 3094 | | |
3084 | 3095 | | |
3085 | 3096 | | |
| 3097 | + | |
3086 | 3098 | | |
3087 | 3099 | | |
3088 | 3100 | | |
| |||
0 commit comments