Skip to content

Commit

Permalink
gma500: Mask out bits not part of the page table base address
Browse files Browse the repository at this point in the history
Otherwise we can't ioremap the gtt and the screen gets garbled.

Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Patrik Jakobsson authored and Greg Kroah-Hartman committed Jul 8, 2011
1 parent 5ed836a commit 2b9428e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/gma500/gtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ int psb_gtt_init(struct drm_device *dev, int resume)
/* The root resource we allocate address space from */
dev_priv->gtt_initialized = 1;

pg->gtt_phys_start = dev_priv->pge_ctl;
pg->gtt_phys_start = dev_priv->pge_ctl & PAGE_MASK;

/*
* FIXME: video mmu has hw bug to access 0x0D0000000,
Expand Down

0 comments on commit 2b9428e

Please sign in to comment.