drm/msm: Update global fault counter when faulty process has already ended
authorMaíra Canal <mcanal@igalia.com>
Sun, 20 Jul 2025 21:42:31 +0000 (18:42 -0300)
committerRob Clark <robin.clark@oss.qualcomm.com>
Fri, 1 Aug 2025 17:51:57 +0000 (10:51 -0700)
commit25654a1756a4ace072404e89882d7ba8391900bd
tree3ff8d6745f0cbf7119caa7da0436890ff1309043
parentf4ca529de235791aeeddc32ee6741a6b6872f564
drm/msm: Update global fault counter when faulty process has already ended

The global fault counter is no longer used since commit 12578c075f89
("drm/msm/gpu: Skip retired submits in recover worker"). However, it's
still needed, as we need to handle cases where a GPU fault occurs after
the faulting process has already ended.

Hence, increment the global fault counter when the submitting process
had already ended. This way, the number of faults returned by
MSM_PARAM_FAULTS will stay consistent.

While here, s/unusuable/unusable.

Fixes: 12578c075f89 ("drm/msm/gpu: Skip retired submits in recover worker")
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Patchwork: https://patchwork.freedesktop.org/patch/664853/
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
drivers/gpu/drm/msm/msm_gpu.c