lkml.org 
[lkml]   [2011]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 05/12] gma500: Mask out bits not part of the page table base address
Date
From: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>

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>
---

drivers/staging/gma500/gtt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/gma500/gtt.c b/drivers/staging/gma500/gtt.c
index 28f2261..78dd01b 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,


\
 
 \ /
  Last update: 2011-07-08 10:55    [W:0.101 / U:0.356 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site