OSDN Git Service

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)
commitbceddc2cb581dffc94370517f7eedbd9aa16c74b
tree5e773a98de4c646cb29712be5c0653aadd6f0e70
parentb910a0206b59eb90ea8ff76d146f4c3156da61e9
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 f8f934c180f629bb927a04fd90d)

Reported-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reported-by: Yassine Oudjana <y.oudjana@protonmail.com>
Fixes: 2a574cc05d38 ("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