diff options
author | Dave Airlie <airlied@linux.ie> | 2009-08-05 10:16:57 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2009-08-05 10:16:57 +1000 |
commit | b7f315842830d67081642248a3757c713b6b6684 (patch) | |
tree | 8606d4227532dccbd0accfa79321cd437fbe3922 /drivers/char/agp/efficeon-agp.c | |
parent | 90bc1a658a53f8832ee799685703977a450e5af9 (diff) | |
parent | 6a12235c7d2d75c7d94b9afcaaecd422ff845ce0 (diff) | |
download | blackbird-op-linux-b7f315842830d67081642248a3757c713b6b6684.tar.gz blackbird-op-linux-b7f315842830d67081642248a3757c713b6b6684.zip |
Merge git://git.infradead.org/~dwmw2/iommu-agp into agp-next
Diffstat (limited to 'drivers/char/agp/efficeon-agp.c')
-rw-r--r-- | drivers/char/agp/efficeon-agp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/agp/efficeon-agp.c b/drivers/char/agp/efficeon-agp.c index 35d50f2861b6..793f39ea9618 100644 --- a/drivers/char/agp/efficeon-agp.c +++ b/drivers/char/agp/efficeon-agp.c @@ -67,7 +67,7 @@ static const struct gatt_mask efficeon_generic_masks[] = /* This function does the same thing as mask_memory() for this chipset... */ static inline unsigned long efficeon_mask_memory(struct page *page) { - unsigned long addr = phys_to_gart(page_to_phys(page)); + unsigned long addr = page_to_phys(page); return addr | 0x00000001; } @@ -226,7 +226,7 @@ static int efficeon_create_gatt_table(struct agp_bridge_data *bridge) efficeon_private.l1_table[index] = page; - value = virt_to_gart((unsigned long *)page) | pati | present | index; + value = virt_to_phys((unsigned long *)page) | pati | present | index; pci_write_config_dword(agp_bridge->dev, EFFICEON_ATTPAGE, value); |