Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269847
b: refs/heads/master
c: d6c892d
h: refs/heads/master
i:
  269845: 5817faf
  269843: 67fba44
  269839: d0674b8
v: v3
  • Loading branch information
Jesse Barnes authored and Keith Packard committed Oct 21, 2011
1 parent f10b067 commit 4c381df
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d4270e57efe9e2536798c59e1ed2fd0a1e5cdfcf
refs/heads/master: d6c892df7e98b4fbd78f2365611935afbf3736d7
1 change: 1 addition & 0 deletions trunk/drivers/gpu/drm/i915/i915_reg.h
Original file line number Diff line number Diff line change
Expand Up @@ -2435,6 +2435,7 @@
#define WM0_PIPE_CURSOR_MASK (0x1f)

#define WM0_PIPEB_ILK 0x45104
#define WM0_PIPEC_IVB 0x45200
#define WM1_LP_ILK 0x45108
#define WM1_LP_SR_EN (1<<31)
#define WM1_LP_LATENCY_SHIFT 24
Expand Down
14 changes: 14 additions & 0 deletions trunk/drivers/gpu/drm/i915/intel_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -4540,6 +4540,20 @@ static void sandybridge_update_wm(struct drm_device *dev)
enabled |= 2;
}

/* IVB has 3 pipes */
if (IS_IVYBRIDGE(dev) &&
g4x_compute_wm0(dev, 2,
&sandybridge_display_wm_info, latency,
&sandybridge_cursor_wm_info, latency,
&plane_wm, &cursor_wm)) {
I915_WRITE(WM0_PIPEC_IVB,
(plane_wm << WM0_PIPE_PLANE_SHIFT) | cursor_wm);
DRM_DEBUG_KMS("FIFO watermarks For pipe C -"
" plane %d, cursor: %d\n",
plane_wm, cursor_wm);
enabled |= 3;
}

/*
* Calculate and update the self-refresh watermark only when one
* display plane is used.
Expand Down

0 comments on commit 4c381df

Please sign in to comment.