]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/arm-smmu-qcom: Add stall support
authorRob Clark <robdclark@chromium.org>
Thu, 10 Jun 2021 21:44:12 +0000 (14:44 -0700)
committerRob Clark <robdclark@chromium.org>
Wed, 23 Jun 2021 14:33:55 +0000 (07:33 -0700)
commitba6014a4e480c3c2b169438c47273a113c35ba4e
treead7806f6d84d571e7573dfcdb06eef7434be077c
parent2a574cc05d380665648c067689ce300168169a68
iommu/arm-smmu-qcom: Add stall support

Add, via the adreno-smmu-priv interface, a way for the GPU to request
the SMMU to stall translation on faults, and then later resume the
translation, either retrying or terminating the current translation.

This will be used on the GPU side to "freeze" the GPU while we snapshot
useful state for devcoredump.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Acked-by: Jordan Crouse <jordan@cosmicpenguin.net>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210610214431.539029-5-robdclark@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/iommu/arm/arm-smmu/arm-smmu-qcom.c
include/linux/adreno-smmu-priv.h