From patchwork Fri Nov 9 07:45:09 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 1719551 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 9AAFC3FCF7 for ; Fri, 9 Nov 2012 07:46:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8BB5CA0B3E for ; Thu, 8 Nov 2012 23:46:14 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by gabe.freedesktop.org (Postfix) with ESMTP id 5630BA0B22 for ; Thu, 8 Nov 2012 23:45:11 -0800 (PST) Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MD7007TOMUOYIW0@mailout2.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 09 Nov 2012 16:45:10 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.44]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 5F.70.12699.684BC905; Fri, 09 Nov 2012 16:45:10 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-9a-509cb48643f3 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id DE.70.12699.684BC905; Fri, 09 Nov 2012 16:45:10 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([10.90.51.53]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MD700HITMV9PY50@mmp1.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 09 Nov 2012 16:45:10 +0900 (KST) From: Inki Dae To: airlied@linux.ie, dri-devel@lists.freedesktop.org Subject: [PATCH] drm/exynos: fix linux framebuffer address setting. Date: Fri, 09 Nov 2012 16:45:09 +0900 Message-id: <1352447109-30065-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.4.1 DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMLMWRmVeSWpSXmKPExsVy+t8zHd22LXMCDB5OFrK48vU9mwOjx/3u 40wBjFFcNimpOZllqUX6dglcGZOf6xR8ZK/o3vqEuYHxKVsXIyeHhICJRM+0ScwQtpjEhXvr geJcHEICyxglZr1fAVf04+ZmMFtIYBGjxNrH9hBF65kkbredYwFJsAmoSkxccR+sSETAVKJj 0lKwOLNAocTCnqdgtrCAs8S2X61gNSxA9WdftIPZvAIuEh3dv6GuUJBYcO8tVI2AxLfJh4B6 OYDishKbDjCD7JUQ2MAm8efcGlaIekmJgytusExgFFzAyLCKUTS1ILmgOCk910ivODG3uDQv XS85P3cTIySkpHcwrmqwOMQowMGoxMOb+GB2gBBrYllxZe4hRgkOZiUR3rmZcwKEeFMSK6tS i/Lji0pzUosPMfoAXTKRWUo0OR8Y7nkl8YbGBsaGhpaGZqaWpgY4hJXEeZs9UgKEBNITS1Kz U1MLUotgxjFxcEo1MEpdWq1y0Z55TXfPwQ2y5/cwPbwc9/R0E2fJWpnny4p+OhS+4FM8o6QV XTLj7oUHk7LTHz6ZK6x7KWyeRR3L29bQ4IK//zjelh6In7dC7dzn+6yLrW4s2bU2/OBiNb5F IZsUVr3aZSmnsHI3wzML0+SgZ+u6vh40P//2jITW+oCILbvqFR5+stuuxFKckWioxVxUnAgA LC/qGVYCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrELMWRmVeSWpSXmKPExsVy+t9jAd22LXMCDCas47O48vU9mwOjx/3u 40wBjFENjDYZqYkpqUUKqXnJ+SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5 QGOVFMoSc0qBQgGJxcVK+naYJoSGuOlawDRG6PqGBMH1GBmggYR1jBmTn+sUfGSv6N76hLmB 8SlbFyMnh4SAicSPm5uhbDGJC/fWg9lCAosYJdY+tu9i5AKy1zNJ3G47xwKSYBNQlZi44j5Y kYiAqUTHpKVgcWaBQomFPU/BbGEBZ4ltv1rBaliA6s++aAezeQVcJDq6fzNDLFOQWHDvLdsE Ru4FjAyrGEVTC5ILipPSc430ihNzi0vz0vWS83M3MYID9pn0DsZVDRaHGAU4GJV4eBMfzA4Q Yk0sK67MPcQowcGsJMI7N3NOgBBvSmJlVWpRfnxRaU5q8SFGH6DtE5mlRJPzgdGUVxJvaGxi ZmRpZGZsYm5sjENYSZy32SMlQEggPbEkNTs1tSC1CGYcEwenVAPjvIjF6/5nL7lqMe3SviO/ 1eMepb3bmjsn16SI/a7OT5OmHV6BPy/Xz5Fnfc17xuTEbzbFw4efFcq6XYhqedjEOaen2WDd paj6hd+rG/mfnjCLmc24q4yDVdfPrszHXjl5sWkIyxGVlNn3NPdn99/8G7WO8cmmL/ECNVVt qin1SvbSN0MdPgopsRRnJBpqMRcVJwIASZkqaoUCAAA= X-CFilter-Loop: Reflected Cc: kyungmin.park@samsung.com, sw0312.kim@samsung.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org 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 Signed-off-by: Kyungmin Park --- 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;