]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/msm/dpu: rate limit snapshot capture for mmu faults
authorAbhinav Kumar <quic_abhinavk@quicinc.com>
Wed, 19 Feb 2025 19:49:21 +0000 (11:49 -0800)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 26 Feb 2025 10:15:49 +0000 (12:15 +0200)
commit89839e69f6154feecd79bd01171375225b0296e9
tree2c493bbada86939e4b064e9b9647123c1920f0e4
parent85bdbd8306d8330bf039cc22d9ecf20a4ee73402
drm/msm/dpu: rate limit snapshot capture for mmu faults

There is no recovery mechanism in place yet to recover from mmu
faults for DPU. We can only prevent the faults by making sure there
is no misconfiguration.

Rate-limit the snapshot capture for mmu faults to once per
msm_atomic_commit_tail() as that should be sufficient to capture
the snapshot for debugging otherwise there will be a lot of DPU
snapshots getting captured for the same fault which is redundant
and also might affect capturing even one snapshot accurately.

Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Signed-off-by: Jessica Zhang <quic_jesszhan@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/638362/
Link: https://lore.kernel.org/r/20250219-abhinavk-smmu-fault-handler-v3-5-aa3f0bf4434a@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/msm_atomic.c
drivers/gpu/drm/msm/msm_kms.c
drivers/gpu/drm/msm/msm_kms.h