Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64877
b: refs/heads/master
c: 4740622
h: refs/heads/master
i:
  64875: 0f3626f
v: v3
  • Loading branch information
Zhenyu Wang authored and Linus Torvalds committed Sep 12, 2007
1 parent bb34bd6 commit 12e42fa
Show file tree
Hide file tree
Showing 2 changed files with 5 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: f443675affe3f16dd428e46f0f7fd3f4d703eeab
refs/heads/master: 4740622c5c805d88c63a50747a2d05537dd233cf
5 changes: 4 additions & 1 deletion trunk/drivers/char/agp/intel-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,7 @@ static int intel_i915_create_gatt_table(struct agp_bridge_data *bridge)
struct aper_size_info_fixed *size;
int num_entries;
u32 temp, temp2;
int gtt_map_size = 256 * 1024;

size = agp_bridge->current_size;
page_order = size->page_order;
Expand All @@ -928,7 +929,9 @@ static int intel_i915_create_gatt_table(struct agp_bridge_data *bridge)
pci_read_config_dword(intel_private.pcidev, I915_MMADDR, &temp);
pci_read_config_dword(intel_private.pcidev, I915_PTEADDR,&temp2);

intel_private.gtt = ioremap(temp2, 256 * 1024);
if (IS_G33)
gtt_map_size = 1024 * 1024; /* 1M on G33 */
intel_private.gtt = ioremap(temp2, gtt_map_size);
if (!intel_private.gtt)
return -ENOMEM;

Expand Down

0 comments on commit 12e42fa

Please sign in to comment.