From patchwork Fri Apr 4 09:22:02 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Kurtz X-Patchwork-Id: 3937421 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3D7239F357 for ; Fri, 4 Apr 2014 09:22:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 75BBD20381 for ; Fri, 4 Apr 2014 09:22:22 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id A34AB20374 for ; Fri, 4 Apr 2014 09:22:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CCC686ED17; Fri, 4 Apr 2014 02:22:20 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by gabe.freedesktop.org (Postfix) with ESMTP id DC2F66ED17 for ; Fri, 4 Apr 2014 02:22:19 -0700 (PDT) Received: by mail-pa0-f48.google.com with SMTP id hz1so3181974pad.21 for ; Fri, 04 Apr 2014 02:22:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qzpe9ERsKBxX3T5/cMsV831/jEzz9fKpDpq8eiKzaD0=; b=KWc5cdpzBFOOHfAe9pMF9+ORG109r1qQZTUza/CCPLC2EoQwrSYLP2m0c6aA5g8qTS pKDYfAwChXU56I5mbuLJ6xF8OpG7EXli5pDNZCfPlAMCibWlST6OvTAK+0H4u8X4L2Yn jgbpPMO697hti7pHcahbi/SF0v+hOM1iAyoTw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=qzpe9ERsKBxX3T5/cMsV831/jEzz9fKpDpq8eiKzaD0=; b=EcUaGejFm/boxJMpN1eoDRflHaFKeltdo32WCWW8rEeLYc9Ccbm7O3OgEZ+WMxrW4z XFXRJX0SM2XSaJCvA5utfTHZvQtFdYYBA+jh8n4drp6BPUwkModxYzcFoiG7qzborDG1 7VQCXAfMEa8gAKl0lYqegK4iTLA73qRb+BjcEYZPAa8ixiAmGiIEb1bhJ8Sa+okdl0uv 82Z9QAAjyugAVX8K9WUzRxFEhs0dEkzCFhrJuRrAzvlIDdtUChaplD4MfJZoBypHPcJR kv75IqO4skqogU4bL9g2iTD671uxIq9evSQoyElimBwAgfGHI1Zpf8N/4Rhfn3H0mBGq iFHQ== X-Gm-Message-State: ALoCoQmsQTIok0V1oWSolQ841XswSrPiTCVCeLOG/wO82Bqv6I8JFxawBXdWUxKN9IcPOOThr6dK X-Received: by 10.66.163.164 with SMTP id yj4mr13859150pab.91.1396603339716; Fri, 04 Apr 2014 02:22:19 -0700 (PDT) Received: from djkurtzt530-glaptop.hitronhub.home (123-193-35-201.dynamic.kbronet.com.tw. [123.193.35.201]) by mx.google.com with ESMTPSA id kc9sm16484867pbc.25.2014.04.04.02.22.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 04 Apr 2014 02:22:18 -0700 (PDT) From: Daniel Kurtz To: Inki Dae , dri-devel@lists.freedesktop.org Subject: [PATCH 2/2] drm/exynos/fbdev: don't set mode_config.fb_base Date: Fri, 4 Apr 2014 17:22:02 +0800 Message-Id: <1396603322-13585-2-git-send-email-djkurtz@chromium.org> X-Mailer: git-send-email 1.9.1.423.g4596e3a In-Reply-To: <1396603322-13585-1-git-send-email-djkurtz@chromium.org> References: <1396603322-13585-1-git-send-email-djkurtz@chromium.org> Cc: Kukjin Kim , Seung-Woo Kim , linux-kernel@vger.kernel.org, Kyungmin Park , linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP AFAICT, the fb_base of a drm_device's mode_config is never used. It isn't accessed by core drm, it isn't used by fbmem, and it isn't exposed to user space. Furthermore, it is probably supposed to be a physical address, not the dma address mapped to the display controller, so this is just wrong. Signed-off-by: Daniel Kurtz --- drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c index 2dcc589..3270a36 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c @@ -121,7 +121,6 @@ static int exynos_drm_fbdev_update(struct drm_fb_helper *helper, offset = fbi->var.xoffset * (fb->bits_per_pixel >> 3); offset += fbi->var.yoffset * fb->pitches[0]; - dev->mode_config.fb_base = (resource_size_t)buffer->dma_addr; fbi->screen_base = buffer->kvaddr + offset; fbi->screen_size = size;