From: Patrik Jakobsson Date: Fri, 8 Jul 2011 08:44:03 +0000 (+0100) Subject: gma500: Mask out bits not part of the page table base address X-Git-Tag: MMI-PSA29.97-13-9~18845^2~77 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2b9428e20333ee42d00335c9700dcb20cf54f384;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git gma500: Mask out bits not part of the page table base address Otherwise we can't ioremap the gtt and the screen gets garbled. Signed-off-by: Patrik Jakobsson Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/gma500/gtt.c b/drivers/staging/gma500/gtt.c index 28f2261b6222..78dd01bb1eb6 100644 --- a/drivers/staging/gma500/gtt.c +++ b/drivers/staging/gma500/gtt.c @@ -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,