diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/i915/i915_reg.h | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index dc7c6f8c6693..b637fbf592ec 100644 --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h | |||
@@ -2140,7 +2140,8 @@ | |||
2140 | #define I830_FIFO_LINE_SIZE 32 | 2140 | #define I830_FIFO_LINE_SIZE 32 |
2141 | 2141 | ||
2142 | #define G4X_FIFO_SIZE 127 | 2142 | #define G4X_FIFO_SIZE 127 |
2143 | #define I945_FIFO_SIZE 127 /* 945 & 965 */ | 2143 | #define I965_FIFO_SIZE 512 |
2144 | #define I945_FIFO_SIZE 127 | ||
2144 | #define I915_FIFO_SIZE 95 | 2145 | #define I915_FIFO_SIZE 95 |
2145 | #define I855GM_FIFO_SIZE 127 /* In cachelines */ | 2146 | #define I855GM_FIFO_SIZE 127 /* In cachelines */ |
2146 | #define I830_FIFO_SIZE 95 | 2147 | #define I830_FIFO_SIZE 95 |
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 274d78d023a1..09e3f02f529e 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -2970,10 +2970,10 @@ static void i965_update_wm(struct drm_device *dev, int planea_clock, | |||
2970 | pixel_size * sr_hdisplay; | 2970 | pixel_size * sr_hdisplay; |
2971 | sr_entries = roundup(sr_entries / I915_FIFO_LINE_SIZE, 1); | 2971 | sr_entries = roundup(sr_entries / I915_FIFO_LINE_SIZE, 1); |
2972 | DRM_DEBUG("self-refresh entries: %d\n", sr_entries); | 2972 | DRM_DEBUG("self-refresh entries: %d\n", sr_entries); |
2973 | srwm = I945_FIFO_SIZE - sr_entries; | 2973 | srwm = I965_FIFO_SIZE - sr_entries; |
2974 | if (srwm < 0) | 2974 | if (srwm < 0) |
2975 | srwm = 1; | 2975 | srwm = 1; |
2976 | srwm &= 0x3f; | 2976 | srwm &= 0x1ff; |
2977 | if (IS_I965GM(dev)) | 2977 | if (IS_I965GM(dev)) |
2978 | I915_WRITE(FW_BLC_SELF, FW_BLC_SELF_EN); | 2978 | I915_WRITE(FW_BLC_SELF, FW_BLC_SELF_EN); |
2979 | } else { | 2979 | } else { |