]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Fix display fault handling
authorRob Clark <robdclark@chromium.org>
Wed, 7 Jul 2021 18:01:13 +0000 (11:01 -0700)
committerRob Clark <robdclark@chromium.org>
Tue, 27 Jul 2021 15:14:55 +0000 (08:14 -0700)
commit1e3be80b2c1b16b84640ab7e959a06b7f7858a60
tree5e773a98de4c646cb29712be5c0653aadd6f0e70
parenta0752aad68f4c88ead25e5c6663aa6f8a705d2ed
drm/msm: Fix display fault handling

It turns out that when the display is enabled by the bootloader, we can
get some transient iommu faults from the display.  Which doesn't go over
too well when we install a fault handler that is gpu specific.  To avoid
this, defer installing the fault handler until we get around to setting
up per-process pgtables (which is adreno_smmu specific).  The arm-smmu
fallback error reporting is sufficient for reporting display related
faults (and in fact was all we had prior to 1927b01a1b743ee292ae1eeeb8f)

Reported-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reported-by: Yassine Oudjana <y.oudjana@protonmail.com>
Fixes: e038c76fdc53 ("drm/msm: Improve the a6xx page fault handler")
Signed-off-by: Rob Clark <robdclark@chromium.org>
Tested-by: John Stultz <john.stultz@linaro.org>
Tested-by: Yassine Oudjana <y.oudjana@protonmail.com>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210707180113.840741-1-robdclark@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_iommu.c