Merge branch 'for-airlied' of git://people.freedesktop.org/~danvet/drm-intel into...
[~shefty/rdma-dev.git] / drivers / gpu / drm / i915 / i915_drv.h
index f02a5f525f031486bfe4afc99d13d30e2fd05858..32737a37edd0c31f02b2b5a2637e259e0a7886d3 100644 (file)
@@ -289,7 +289,13 @@ typedef struct drm_i915_private {
        int relative_constants_mode;
 
        void __iomem *regs;
-       u32 gt_fifo_count;
+       /** gt_fifo_count and the subsequent register write are synchronized
+        * with dev->struct_mutex. */
+       unsigned gt_fifo_count;
+       /** forcewake_count is protected by gt_lock */
+       unsigned forcewake_count;
+       /** gt_lock is also taken in irq contexts. */
+       struct spinlock gt_lock;
 
        struct intel_gmbus {
                struct i2c_adapter adapter;
@@ -741,8 +747,6 @@ typedef struct drm_i915_private {
 
        struct drm_property *broadcast_rgb_property;
        struct drm_property *force_audio_property;
-
-       atomic_t forcewake_count;
 } drm_i915_private_t;
 
 enum i915_cache_level {