@@ -2181,7 +2181,7 @@ static struct intel_watermark_params pineview_cursor_hplloff_wm = {
static struct intel_watermark_params g4x_wm_info = {
G4X_FIFO_SIZE,
G4X_MAX_WM,
- G4X_MAX_WM,
+ 8,
2,
G4X_FIFO_LINE_SIZE,
1
@@ -2224,28 +2224,28 @@ static struct intel_watermark_params gm965_self_cursor_info = {
static struct intel_watermark_params i945_wm_info = {
I945_FIFO_SIZE,
I915_MAX_WM,
- 1,
+ 8,
2,
I915_FIFO_LINE_SIZE
};
static struct intel_watermark_params i915_wm_info = {
I915_FIFO_SIZE,
I915_MAX_WM,
- 1,
+ 8,
2,
I915_FIFO_LINE_SIZE
};
static struct intel_watermark_params i855_wm_info = {
I855GM_FIFO_SIZE,
I915_MAX_WM,
- 1,
+ 8,
2,
I830_FIFO_LINE_SIZE
};
static struct intel_watermark_params i830_wm_info = {
I830_FIFO_SIZE,
I915_MAX_WM,
- 1,
+ 8,
2,
I830_FIFO_LINE_SIZE
};
@@ -2363,7 +2363,7 @@ static unsigned long intel_calculate_wm(struct intel_watermark_params *wm,
/* Don't promote wm_size to unsigned... */
if (wm_size > (long)wm->max_wm)
wm_size = wm->max_wm;
- if (wm_size <= 0)
+ if (wm_size < (int)wm->default_wm)
wm_size = wm->default_wm;
return wm_size;
}