Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145920
b: refs/heads/master
c: fe2245c
h: refs/heads/master
v: v3
  • Loading branch information
Mark Langsdorf authored and Ingo Molnar committed Jun 6, 2009
1 parent fb09de9 commit d66efba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: 83cce2b69eaa4bc7535f98f75b79397baf277470
refs/heads/master: fe2245c905631a3a353504fc04388ce3dfaf9d9e
10 changes: 8 additions & 2 deletions trunk/arch/x86/kernel/pci-gart_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -658,8 +658,6 @@ static __init int init_k8_gatt(struct agp_kern_info *info)

agp_gatt_table = gatt;

enable_gart_translations();

error = sysdev_class_register(&gart_sysdev_class);
if (!error)
error = sysdev_register(&device_gart);
Expand Down Expand Up @@ -816,6 +814,14 @@ void __init gart_iommu_init(void)
* the pages as Not-Present:
*/
wbinvd();

/*
* Now all caches are flushed and we can safely enable
* GART hardware. Doing it early leaves the possibility
* of stale cache entries that can lead to GART PTE
* errors.
*/
enable_gart_translations();

/*
* Try to workaround a bug (thanks to BenH):
Expand Down

0 comments on commit d66efba

Please sign in to comment.