diff options
author | Rob Clark <robdclark@chromium.org> | 2019-04-17 02:13:28 +0300 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2019-04-19 21:50:00 +0300 |
commit | 48dc4241c9cd62bfbe33625e669e21d7081d35fa (patch) | |
tree | e6406acd799be59e50bc0b37af6fe5f18718ab23 /drivers/gpu/drm/msm/msm_gpu.h | |
parent | d674c963af7470b6394b4b7f98cf2716b3a757d7 (diff) | |
download | linux-48dc4241c9cd62bfbe33625e669e21d7081d35fa.tar.xz |
drm/msm: add param to retrieve # of GPU faults (global)
For KHR_robustness, userspace wants to know two things, the count of GPU
faults globally, and the count of faults attributed to a given context.
This patch providees the former, and the next patch provides the latter.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gpu.h')
-rw-r--r-- | drivers/gpu/drm/msm/msm_gpu.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu.h b/drivers/gpu/drm/msm/msm_gpu.h index 6241986bab51..f2739cd97cea 100644 --- a/drivers/gpu/drm/msm/msm_gpu.h +++ b/drivers/gpu/drm/msm/msm_gpu.h @@ -104,6 +104,9 @@ struct msm_gpu { /* does gpu need hw_init? */ bool needs_hw_init; + /* number of GPU hangs (for all contexts) */ + int global_faults; + /* worker for handling active-list retiring: */ struct work_struct retire_work; |