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 <[email protected]>
Tested-by: Shameer Kolothum <[email protected]>
Reviewed-by: Michael Shavit <[email protected]>
Reviewed-by: Nicolin Chen <[email protected]>
Reviewed-by: Moritz Fischer <[email protected]>
Reviewed-by: Mostafa Saleh <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>1 parent e9d1e4f commit af8f0b8
File tree
3 files changed
+18
-11
lines changed- drivers/iommu/arm/arm-smmu-v3
3 files changed
+18
-11
lines changed| 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