Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217953
b: refs/heads/master
c: bfde067
h: refs/heads/master
i:
  217951: a36bc49
v: v3
  • Loading branch information
Daniel Vetter authored and Chris Wilson committed Sep 8, 2010
1 parent 561442d commit 344f922
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: d7cca2f7000243ac43a389110c3d8474f582ae3f
refs/heads/master: bfde067bebe72293b1f909a8b35ee8d82811f8f5
12 changes: 6 additions & 6 deletions trunk/drivers/char/agp/intel-gtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,10 +531,10 @@ static struct aper_size_info_fixed intel_i830_sizes[] =
{512, 131072, 7},
};

static void intel_i830_init_gtt_entries(void)
static unsigned int intel_gtt_stolen_entries(void)
{
u16 gmch_ctrl;
int gtt_entries = 0;
unsigned int gtt_entries = 0;
u8 rdct;
int local = 0;
static const int ddt[4] = { 0, 16, 32, 64 };
Expand Down Expand Up @@ -770,7 +770,7 @@ static void intel_i830_init_gtt_entries(void)
gtt_entries = 0;
}

intel_private.base.gtt_stolen_entries = gtt_entries;
return gtt_entries;
}

static void intel_i830_fini_flush(void)
Expand Down Expand Up @@ -846,7 +846,7 @@ static int intel_i830_create_gatt_table(struct agp_bridge_data *bridge)
global_cache_flush(); /* FIXME: ?? */

/* we have to call this as early as possible after the MMIO base address is known */
intel_i830_init_gtt_entries();
intel_private.base.gtt_stolen_entries = intel_gtt_stolen_entries();
if (intel_private.base.gtt_stolen_entries == 0) {
iounmap(intel_private.registers);
return -ENOMEM;
Expand Down Expand Up @@ -1336,7 +1336,7 @@ static int intel_i915_create_gatt_table(struct agp_bridge_data *bridge)
global_cache_flush(); /* FIXME: ? */

/* we have to call this as early as possible after the MMIO base address is known */
intel_i830_init_gtt_entries();
intel_private.base.gtt_stolen_entries = intel_gtt_stolen_entries();
if (intel_private.base.gtt_stolen_entries == 0) {
iounmap(intel_private.gtt);
iounmap(intel_private.registers);
Expand Down Expand Up @@ -1460,7 +1460,7 @@ static int intel_i965_create_gatt_table(struct agp_bridge_data *bridge)
global_cache_flush(); /* FIXME: ? */

/* we have to call this as early as possible after the MMIO base address is known */
intel_i830_init_gtt_entries();
intel_private.base.gtt_stolen_entries = intel_gtt_stolen_entries();
if (intel_private.base.gtt_stolen_entries == 0) {
iounmap(intel_private.gtt);
iounmap(intel_private.registers);
Expand Down

0 comments on commit 344f922

Please sign in to comment.