]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/msm: Wire up tlb ops
authorRob Clark <robdclark@chromium.org>
Tue, 13 Feb 2024 17:23:40 +0000 (09:23 -0800)
committerRob Clark <robdclark@chromium.org>
Thu, 15 Feb 2024 16:51:31 +0000 (08:51 -0800)
commit8c7bfd8262319fd3f127a5380f593ea76f1b88a2
treea88748a278830cda50464347a6af1d7429971dea
parent917e9b7c2350e3e53162fcf5035e5f2d68e2cbed
drm/msm: Wire up tlb ops

The brute force iommu_flush_iotlb_all() was good enough for unmap, but
in some cases a map operation could require removing a table pte entry
to replace with a block entry.  This also requires tlb invalidation.
Missing this was resulting an obscure iova fault on what should be a
valid buffer address.

Thanks to Robin Murphy for helping me understand the cause of the fault.

Cc: Robin Murphy <robin.murphy@arm.com>
Cc: stable@vger.kernel.org
Fixes: b145c6e65eb0 ("drm/msm: Add support to create a local pagetable")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/578117/
drivers/gpu/drm/msm/msm_iommu.c