Skip to content

Commit

Permalink
agp/intel-gtt: export the gtt pagetable iomapping
Browse files Browse the repository at this point in the history
We need this because ppgtt page directory entries need to be in the
global gtt pagetable.

Reviewed-by: Ben Widawsky <[email protected]>
Tested-by: Chris Wilson <[email protected]>
Tested-by: Eugeni Dodonov <[email protected]>
Reviewed-by: Eugeni Dodonov <[email protected]>
Signed-Off-by: Daniel Vetter <[email protected]>
  • Loading branch information
danvet committed Feb 9, 2012
1 parent 50a4c4a commit 428ccb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/char/agp/intel-gtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ static int intel_gtt_init(void)
iounmap(intel_private.registers);
return -ENOMEM;
}
intel_private.base.gtt = intel_private.gtt;

global_cache_flush(); /* FIXME: ? */

Expand Down
2 changes: 2 additions & 0 deletions include/drm/intel-gtt.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const struct intel_gtt {
unsigned int do_idle_maps : 1;
/* Share the scratch page dma with ppgtts. */
dma_addr_t scratch_page_dma;
/* for ppgtt PDE access */
u32 __iomem *gtt;
} *intel_gtt_get(void);

void intel_gtt_chipset_flush(void);
Expand Down

0 comments on commit 428ccb2

Please sign in to comment.