Commit 4537f6f
iommu/arm-smmu-v3: Add and use static helper function arm_smmu_cmdq_issue_cmd_with_sync()
The obvious key to the performance optimization of commit 587e6c1
("iommu/arm-smmu-v3: Reduce contention during command-queue insertion") is
to allow multiple cores to insert commands in parallel after a brief mutex
contention.
Obviously, inserting as many commands at a time as possible can reduce the
number of times the mutex contention participates, thereby improving the
overall performance. At least it reduces the number of calls to function
arm_smmu_cmdq_issue_cmdlist().
Therefore, function arm_smmu_cmdq_issue_cmd_with_sync() is added to insert
the 'cmd+sync' commands at a time.
Signed-off-by: Zhen Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>1 parent eff1947 commit 4537f6f
1 file changed
+19
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
848 | | - | |
849 | | - | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
850 | 851 | | |
851 | 852 | | |
852 | 853 | | |
| |||
856 | 857 | | |
857 | 858 | | |
858 | 859 | | |
859 | | - | |
| 860 | + | |
860 | 861 | | |
861 | 862 | | |
862 | | - | |
| 863 | + | |
| 864 | + | |
863 | 865 | | |
864 | | - | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
865 | 873 | | |
866 | 874 | | |
867 | 875 | | |
| |||
929 | 937 | | |
930 | 938 | | |
931 | 939 | | |
932 | | - | |
933 | | - | |
| 940 | + | |
934 | 941 | | |
935 | 942 | | |
936 | 943 | | |
| |||
1211 | 1218 | | |
1212 | 1219 | | |
1213 | 1220 | | |
1214 | | - | |
1215 | | - | |
| 1221 | + | |
1216 | 1222 | | |
1217 | 1223 | | |
1218 | 1224 | | |
| |||
1824 | 1830 | | |
1825 | 1831 | | |
1826 | 1832 | | |
1827 | | - | |
1828 | | - | |
| 1833 | + | |
1829 | 1834 | | |
1830 | 1835 | | |
1831 | 1836 | | |
| |||
3339 | 3344 | | |
3340 | 3345 | | |
3341 | 3346 | | |
3342 | | - | |
3343 | | - | |
| 3347 | + | |
3344 | 3348 | | |
3345 | 3349 | | |
3346 | 3350 | | |
3347 | 3351 | | |
3348 | | - | |
| 3352 | + | |
3349 | 3353 | | |
3350 | 3354 | | |
3351 | 3355 | | |
3352 | | - | |
3353 | | - | |
| 3356 | + | |
3354 | 3357 | | |
3355 | 3358 | | |
3356 | 3359 | | |
| |||
0 commit comments