]> 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)
commit84993bffd896b63f81076a085a7954b7e3286b24
treec3edee628dd5affaa6103339e469054f523e3d87
parentfdf87abb941dab3472b3a88a91b3cb43d75f77d9
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