Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 329489
b: refs/heads/master
c: edef7e6
h: refs/heads/master
i:
  329487: ca8d1b8
v: v3
  • Loading branch information
Chris Wilson authored and Daniel Vetter committed Sep 20, 2012
1 parent c0a2457 commit c68e79d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: 934d6086ea6b165af9218e8dcc2a9e69e1850743
refs/heads/master: edef7e685da05c13cce50c0126189c80fe2c8f71
11 changes: 8 additions & 3 deletions trunk/drivers/char/agp/intel-gtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,9 +666,14 @@ static int intel_gtt_init(void)

gtt_map_size = intel_private.base.gtt_total_entries * 4;

intel_private.gtt = ioremap(intel_private.gtt_bus_addr,
gtt_map_size);
if (!intel_private.gtt) {
intel_private.gtt = NULL;
if (INTEL_GTT_GEN < 6)
intel_private.gtt = ioremap_wc(intel_private.gtt_bus_addr,
gtt_map_size);
if (intel_private.gtt == NULL)
intel_private.gtt = ioremap(intel_private.gtt_bus_addr,
gtt_map_size);
if (intel_private.gtt == NULL) {
intel_private.driver->cleanup();
iounmap(intel_private.registers);
return -ENOMEM;
Expand Down

0 comments on commit c68e79d

Please sign in to comment.