iommu/arm-smmu-v3: disable stall for quiet_cd
authorWenkai Lin <linwenkai6@hisilicon.com>
Wed, 6 Dec 2023 00:57:27 +0000 (08:57 +0800)
committerWill Deacon <will@kernel.org>
Tue, 12 Dec 2023 12:38:52 +0000 (12:38 +0000)
commitb41932f544586e606a7493cbc6dfb3c97c6b44d7
tree69077c004052ace96d7abd15b72d600f03ef0ce0
parent268dd4edb748a1e2f298b04854681453df6e77a2
iommu/arm-smmu-v3: disable stall for quiet_cd

In the stall model, invalid transactions were expected to be
stalled and aborted by the IOPF handler.

However, when killing a test case with a huge amount of data, the
accelerator streamline can not stop until all data is consumed
even if the page fault handler reports errors. As a result, the
kill may take a long time, about 10 seconds with numerous iopf
interrupts.

So disable stall for quiet_cd in the non-force stall model, since
force stall model (STALL_MODEL==0b10) requires CD.S must be 1.

Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Wenkai Lin <linwenkai6@hisilicon.com>
Suggested-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Link: https://lore.kernel.org/r/20231206005727.46150-1-zhangfei.gao@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c