]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/msm/gpu: Add submit queue queries
authorJordan Crouse <jcrouse@codeaurora.org>
Fri, 22 Mar 2019 20:21:22 +0000 (14:21 -0600)
committerRob Clark <robdclark@chromium.org>
Fri, 19 Apr 2019 18:50:06 +0000 (11:50 -0700)
commitb0fb66043a0d471a5acfe743adf90a0c447aca6b
treec3edee628dd5affaa6103339e469054f523e3d87
parent48dc4241c9cd62bfbe33625e669e21d7081d35fa
drm/msm/gpu: Add submit queue queries

Add the capability to query information from a submit queue.
The first available parameter is for querying the number of GPU faults
(hangs) that can be attributed to the queue.

This is useful for implementing context robustness. A user context can
regularly query the number of faults to see if it is responsible for any
and if so it can invalidate itself.

This is also helpful for testing by confirming to the user  driver if a
particular command stream caused a fault (or not as the case may be).

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_drv.c
drivers/gpu/drm/msm/msm_drv.h
drivers/gpu/drm/msm/msm_gpu.c
drivers/gpu/drm/msm/msm_submitqueue.c
include/uapi/drm/msm_drm.h