]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm/gpu: Track global faults per address-space
authorRob Clark <robdclark@chromium.org>
Tue, 1 Feb 2022 16:16:12 +0000 (08:16 -0800)
committerRob Clark <robdclark@chromium.org>
Sun, 20 Feb 2022 17:44:52 +0000 (09:44 -0800)
commit7c39e15cb5fb1b9f46573df78072bc210b8d1e09
tree8133227a378c16995316b7e4132a9928322e0662
parentf8437497076a70123067855d4f1bdb0a51e8b7ee
drm/msm/gpu: Track global faults per address-space

Other processes don't need to know about faults that they are isolated
from by virtue of address space isolation.  They are only interested in
whether some of their state might have been corrupted.

But to be safe, also track unattributed faults.  This case should really
never happen unless there is a kernel bug (and that would never happen,
right?)

v2: Instead of adding a new param, just change the behavior of the
    existing param to match what userspace actually wants [anholt]

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5934
Signed-off-by: Rob Clark <robdclark@chromium.org>
Link: https://lore.kernel.org/r/20220201161618.778455-3-robdclark@gmail.com
Reviewed-by: Emma Anholt <emma@anholt.net>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/adreno_gpu.c
drivers/gpu/drm/msm/msm_gem.h
drivers/gpu/drm/msm/msm_gpu.c
drivers/gpu/drm/msm/msm_gpu.h