diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2021-08-11 19:48:51 +0800 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-08-13 14:19:41 +0100 |
commit | 8639cc83aac5dd1a197ed05b8f717acc35bb0248 (patch) | |
tree | 4b020509578f18803c8d13f864bcd431ab860377 /tools/perf/scripts/python/netdev-times.py | |
parent | 4537f6f1e2d8d22ec6f9c6bd3844fdccb931f46e (diff) |
iommu/arm-smmu-v3: Add and use static helper function arm_smmu_get_cmdq()
One SMMU has only one normal CMDQ. Therefore, this CMDQ is used regardless
of the core on which the command is inserted. It can be referenced
directly through "smmu->cmdq". However, one SMMU has multiple ECMDQs, and
the ECMDQ used by the core on which the command insertion is executed may
be different. So the helper function arm_smmu_get_cmdq() is added, which
returns the CMDQ/ECMDQ that the current core should use. Currently, the
code that supports ECMDQ is not added. just simply returns "&smmu->cmdq".
Many subfunctions of arm_smmu_cmdq_issue_cmdlist() use "&smmu->cmdq" or
"&smmu->cmdq.q" directly. To support ECMDQ, they need to call the newly
added function arm_smmu_get_cmdq() instead.
Note that normal CMDQ is still required until ECMDQ is available.
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210811114852.2429-4-thunder.leizhen@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions