summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-10-15 18:55:29 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-10-16 13:32:10 +0200
commitb2c88f5b1dea77b57759387728917a124eb1c098 (patch)
treeb82258528bfb2cbb7b2ff03cced9ba30e818a30c /drivers/gpu/drm/i915/i915_drv.h
parent926321d503406d1fefb2fae9651beca14160529a (diff)
downloadlwn-b2c88f5b1dea77b57759387728917a124eb1c098.tar.gz
lwn-b2c88f5b1dea77b57759387728917a124eb1c098.zip
drm/i915: Keep the CRC values into a circular buffer
There are a few good properties to a circular buffer, for instance it has a number of entries (before we were always dumping the full buffer). Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index bfaaaaee8a5b..a29a4a1d300a 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -1230,11 +1230,11 @@ struct intel_pipe_crc_entry {
uint32_t crc[5];
};
-#define INTEL_PIPE_CRC_ENTRIES_NR 200
+#define INTEL_PIPE_CRC_ENTRIES_NR 128
struct intel_pipe_crc {
struct intel_pipe_crc_entry entries[INTEL_PIPE_CRC_ENTRIES_NR];
enum intel_pipe_crc_source source;
- atomic_t slot;
+ atomic_t head, tail;
};
typedef struct drm_i915_private {