Commit af8f0b8
iommu/arm-smmu-v3: Consolidate clearing a CD table entry
A cleared entry is all 0's. Make arm_smmu_clear_cd() do this sequence.
If we are clearing an entry and for some reason it is not already
allocated in the CD table then something has gone wrong.
Remove case (5) from arm_smmu_write_ctx_desc().
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Reviewed-by: Michael Shavit <mshavit@google.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Moritz Fischer <moritzf@google.com>
Reviewed-by: Mostafa Saleh <smostafa@google.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/4-v9-5040dc602008+177d7-smmuv3_newapi_p2_jgg@nvidia.com
Signed-off-by: Will Deacon <will@kernel.org>1 parent e9d1e4f commit af8f0b8
3 files changed
Lines changed: 18 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
572 | | - | |
| 572 | + | |
573 | 573 | | |
574 | 574 | | |
575 | 575 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1310 | 1310 | | |
1311 | 1311 | | |
1312 | 1312 | | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
1313 | 1326 | | |
1314 | 1327 | | |
1315 | 1328 | | |
| |||
1320 | 1333 | | |
1321 | 1334 | | |
1322 | 1335 | | |
1323 | | - | |
1324 | 1336 | | |
1325 | 1337 | | |
1326 | 1338 | | |
| |||
1339 | 1351 | | |
1340 | 1352 | | |
1341 | 1353 | | |
1342 | | - | |
1343 | | - | |
1344 | | - | |
1345 | | - | |
| 1354 | + | |
1346 | 1355 | | |
1347 | 1356 | | |
1348 | 1357 | | |
| |||
2674 | 2683 | | |
2675 | 2684 | | |
2676 | 2685 | | |
2677 | | - | |
2678 | | - | |
2679 | | - | |
| 2686 | + | |
2680 | 2687 | | |
2681 | 2688 | | |
2682 | 2689 | | |
| |||
2724 | 2731 | | |
2725 | 2732 | | |
2726 | 2733 | | |
2727 | | - | |
2728 | | - | |
| 2734 | + | |
2729 | 2735 | | |
2730 | 2736 | | |
2731 | 2737 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
| 754 | + | |
754 | 755 | | |
755 | 756 | | |
756 | 757 | | |
| |||
0 commit comments