]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/arm-smmu-v3: Extract reusable function __arm_smmu_cmdq_skip_err()
authorZhen Lei <thunder.leizhen@huawei.com>
Wed, 11 Aug 2021 11:48:52 +0000 (19:48 +0800)
committerWill Deacon <will@kernel.org>
Fri, 13 Aug 2021 13:19:44 +0000 (14:19 +0100)
commitcd07ec2e0b1c70129b5d876fb81fd1dcc3b0c7cc
tree8838499901c94fc185303bb703aae7a4ab3d57b6
parent05756a57aeaae468792d0769cea858a5dee9ebb1
iommu/arm-smmu-v3: Extract reusable function __arm_smmu_cmdq_skip_err()

When SMMU_GERROR.CMDQP_ERR is different to SMMU_GERRORN.CMDQP_ERR, it
indicates that one or more errors have been encountered on a command queue
control page interface. We need to traverse all ECMDQs in that control
page to find all errors. For each ECMDQ error handling, it is much the
same as the CMDQ error handling. This common processing part is extracted
as a new function __arm_smmu_cmdq_skip_err().

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210811114852.2429-5-thunder.leizhen@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c