diff options
author | Rob Clark <robdclark@chromium.org> | 2019-10-31 22:31:02 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2019-11-01 17:28:39 +0100 |
commit | ee9bdfedd3dc1b3303390663189defa4d6b9e458 (patch) | |
tree | d48cda4b64c38e39a5e4fab236a6f2fead10918f /drivers/firmware | |
parent | iommu/arm-smmu: Axe a useless test in 'arm_smmu_master_alloc_smes()' (diff) | |
download | linux-ee9bdfedd3dc1b3303390663189defa4d6b9e458.tar.xz linux-ee9bdfedd3dc1b3303390663189defa4d6b9e458.zip |
iommu/arm-smmu: Avoid pathological RPM behaviour for unmaps
When games, browser, or anything using a lot of GPU buffers exits, there
can be many hundreds or thousands of buffers to unmap and free. If the
GPU is otherwise suspended, this can cause arm-smmu to resume/suspend
for each buffer, resulting 5-10 seconds worth of reprogramming the
context bank (arm_smmu_write_context_bank()/arm_smmu_write_s2cr()/etc).
To the user it would appear that the system just locked up.
A simple solution is to use pm_runtime_put_autosuspend() instead, so we
don't immediately suspend the SMMU device.
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/firmware')
0 files changed, 0 insertions, 0 deletions