diff options
author | Rob Clark <robdclark@chromium.org> | 2021-03-24 18:23:53 -0700 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2021-04-07 11:05:43 -0700 |
commit | 3ab1c5cc3939b3322ebd27a44b8ee6a16eccc9f5 (patch) | |
tree | 4313f000ef830dc2c652e49f125e50629b7f44ac /include/uapi/drm/msm_drm.h | |
parent | f5b1a878435061f254bd1cd8c5cba306838d9236 (diff) | |
download | linux-3ab1c5cc3939b3322ebd27a44b8ee6a16eccc9f5.tar.gz linux-3ab1c5cc3939b3322ebd27a44b8ee6a16eccc9f5.tar.bz2 linux-3ab1c5cc3939b3322ebd27a44b8ee6a16eccc9f5.zip |
drm/msm: Add param for userspace to query suspend count
Performance counts, and ALWAYS_ON counters used for capturing GPU
timestamps, lose their state across suspend/resume cycles. Userspace
tooling for performance monitoring needs to be aware of this. For
example, after a suspend userspace needs to recalibrate it's offset
between CPU and GPU time.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Acked-by: Jordan Crouse <jordan@cosmicpenguin.net>
Link: https://lore.kernel.org/r/20210325012358.1759770-3-robdclark@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'include/uapi/drm/msm_drm.h')
-rw-r--r-- | include/uapi/drm/msm_drm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/drm/msm_drm.h b/include/uapi/drm/msm_drm.h index a6c1f3eb2623..5596d7c37f9e 100644 --- a/include/uapi/drm/msm_drm.h +++ b/include/uapi/drm/msm_drm.h @@ -76,6 +76,7 @@ struct drm_msm_timespec { #define MSM_PARAM_NR_RINGS 0x07 #define MSM_PARAM_PP_PGTABLE 0x08 /* => 1 for per-process pagetables, else 0 */ #define MSM_PARAM_FAULTS 0x09 +#define MSM_PARAM_SUSPENDS 0x0a struct drm_msm_param { __u32 pipe; /* in, MSM_PIPE_x */ |