summaryrefslogtreecommitdiff
path: root/include/drm/drm_debugfs_crc.h
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-04-18 15:51:21 +0300
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2018-07-06 15:57:03 +0300
commita012024571d98e2e4bf29a9168fb7ddc44b7ab86 (patch)
tree8473ad687dcb82b1cc422ccfdff10ba30bbe96d6 /include/drm/drm_debugfs_crc.h
parent8adbbb2e7871e76d53ea91e6159864ee534fdac8 (diff)
downloadlinux-a012024571d98e2e4bf29a9168fb7ddc44b7ab86.tar.xz
drm/crc: Only report a single overflow when a CRC fd is opened
This reduces the amount of spam when you debug a CRC reading program. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> [mlankhorst: Change bool overflow to was_overflow (Ville)] Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180418125121.72081-1-maarten.lankhorst@linux.intel.com
Diffstat (limited to 'include/drm/drm_debugfs_crc.h')
-rw-r--r--include/drm/drm_debugfs_crc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/drm/drm_debugfs_crc.h b/include/drm/drm_debugfs_crc.h
index 7d63b1d4adb9..b225eeb30d05 100644
--- a/include/drm/drm_debugfs_crc.h
+++ b/include/drm/drm_debugfs_crc.h
@@ -43,6 +43,7 @@ struct drm_crtc_crc_entry {
* @lock: protects the fields in this struct
* @source: name of the currently configured source of CRCs
* @opened: whether userspace has opened the data file for reading
+ * @overflow: whether an overflow occured.
* @entries: array of entries, with size of %DRM_CRC_ENTRIES_NR
* @head: head of circular queue
* @tail: tail of circular queue
@@ -52,7 +53,7 @@ struct drm_crtc_crc_entry {
struct drm_crtc_crc {
spinlock_t lock;
const char *source;
- bool opened;
+ bool opened, overflow;
struct drm_crtc_crc_entry *entries;
int head, tail;
size_t values_cnt;