diff options
| author | Zhen Lei <[email protected]> | 2021-08-11 11:48:51 +0000 |
|---|---|---|
| committer | Will Deacon <[email protected]> | 2021-08-13 13:19:41 +0000 |
| commit | 8639cc83aac5dd1a197ed05b8f717acc35bb0248 (patch) | |
| tree | 4b020509578f18803c8d13f864bcd431ab860377 /lib/netdev-notifier-error-inject.c | |
| parent | iommu/arm-smmu-v3: Add and use static helper function arm_smmu_cmdq_issue_cmd... (diff) | |
| download | kernel-8639cc83aac5dd1a197ed05b8f717acc35bb0248.tar.gz kernel-8639cc83aac5dd1a197ed05b8f717acc35bb0248.zip | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
