Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306961
b: refs/heads/master
c: 9e984bc
h: refs/heads/master
i:
  306959: 92b5bf6
v: v3
  • Loading branch information
Adam Jackson authored and Daniel Vetter committed Mar 18, 2012
1 parent 85cdbd4 commit 3739b9b
Show file tree
Hide file tree
Showing 2 changed files with 7 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: e2b665c48099d9c2229a187467761da4882eb066
refs/heads/master: 9e984bc1dffd405138ff22356188b6a1677c64c8
6 changes: 6 additions & 0 deletions trunk/drivers/gpu/drm/i915/i915_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include <linux/slab.h>
#include <linux/module.h>
#include <acpi/video.h>
#include <asm/pat.h>

static void i915_write_hws_pga(struct drm_device *dev)
{
Expand Down Expand Up @@ -1918,6 +1919,11 @@ static void
i915_mtrr_setup(struct drm_i915_private *dev_priv, unsigned long base,
unsigned long size)
{
#if defined(CONFIG_X86_PAT)
if (cpu_has_pat)
return;
#endif

/* Set up a WC MTRR for non-PAT systems. This is more common than
* one would think, because the kernel disables PAT on first
* generation Core chips because WC PAT gets overridden by a UC
Expand Down

0 comments on commit 3739b9b

Please sign in to comment.