diff options
author | Rob Clark | 2019-04-17 01:13:28 +0200 |
---|---|---|
committer | Rob Clark | 2019-04-19 20:50:00 +0200 |
commit | 48dc4241c9cd62bfbe33625e669e21d7081d35fa (patch) | |
tree | e6406acd799be59e50bc0b37af6fe5f18718ab23 /drivers/gpu/drm/msm/msm_gpu.c | |
parent | drm/msm/gpu: add per-process pagetables param (diff) | |
download | kernel-qcow2-linux-48dc4241c9cd62bfbe33625e669e21d7081d35fa.tar.gz kernel-qcow2-linux-48dc4241c9cd62bfbe33625e669e21d7081d35fa.tar.xz kernel-qcow2-linux-48dc4241c9cd62bfbe33625e669e21d7081d35fa.zip |
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.c')
-rw-r--r-- | drivers/gpu/drm/msm/msm_gpu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c index 10babd18e286..194847a220b6 100644 --- a/drivers/gpu/drm/msm/msm_gpu.c +++ b/drivers/gpu/drm/msm/msm_gpu.c @@ -443,6 +443,9 @@ static void recover_worker(struct work_struct *work) if (submit) { struct task_struct *task; + /* Increment the fault count */ + gpu->global_faults++; + task = get_pid_task(submit->pid, PIDTYPE_PID); if (task) { comm = kstrdup(task->comm, GFP_KERNEL); |