]> git.baikalelectronics.ru Git - kernel.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)
commit1932c742f1a3368e6c7e822f52102ea1fe0694db
treec3edee628dd5affaa6103339e469054f523e3d87
parent4fd483438cbc11362e6cecc3fcf4a535a73600dd
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