diff options
author | Inki Dae <inki.dae@samsung.com> | 2012-11-09 16:41:29 +0900 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2012-11-29 03:30:33 -0800 |
commit | 9d934799025072d0a9c47b0ac6b9541418e5e88c (patch) | |
tree | 190fa185436624c7ccca0669775660a61521d3f7 /drivers/gpu/drm/exynos/exynos_drm_fbdev.c | |
parent | 7136470d4b37b46565b29b8b9425a8361421483b (diff) | |
download | op-kernel-dev-9d934799025072d0a9c47b0ac6b9541418e5e88c.zip op-kernel-dev-9d934799025072d0a9c47b0ac6b9541418e5e88c.tar.gz |
drm/exynos: fix linux framebuffer address setting.
With iommu, buffer->dma_addr has device addres so this patch
fixes for physical address to be set to fix.smem_start always.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_fbdev.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c index 67eb6ba..e7466c4 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c @@ -87,7 +87,8 @@ static int exynos_drm_fbdev_update(struct drm_fb_helper *helper, dev->mode_config.fb_base = (resource_size_t)buffer->dma_addr; fbi->screen_base = buffer->kvaddr + offset; - fbi->fix.smem_start = (unsigned long)(buffer->dma_addr + offset); + fbi->fix.smem_start = (unsigned long)(page_to_phys(buffer->pages[0]) + + offset); fbi->screen_size = size; fbi->fix.smem_len = size; |