Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 307021
b: refs/heads/master
c: 4b60d29
h: refs/heads/master
i:
  307019: cdbbb96
v: v3
  • Loading branch information
Jesse Barnes authored and Daniel Vetter committed Mar 28, 2012
1 parent fa9af30 commit 3863faa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 90b107c8f7ea75ef55db4e0515dda86b245f8978
refs/heads/master: 4b60d29ee00cb2114075e8b5c2c23928bbd76c28
6 changes: 5 additions & 1 deletion trunk/drivers/char/agp/intel-gtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1206,12 +1206,16 @@ static inline int needs_idle_maps(void)
static int i9xx_setup(void)
{
u32 reg_addr;
int size = KB(512);

pci_read_config_dword(intel_private.pcidev, I915_MMADDR, &reg_addr);

reg_addr &= 0xfff80000;

intel_private.registers = ioremap(reg_addr, 128 * 4096);
if (INTEL_GTT_GEN >= 7)
size = MB(2);

intel_private.registers = ioremap(reg_addr, size);
if (!intel_private.registers)
return -ENOMEM;

Expand Down

0 comments on commit 3863faa

Please sign in to comment.