From patchwork Thu Aug 29 03:24:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Dominik Behr X-Patchwork-Id: 2851146 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 A87339F494 for ; Thu, 29 Aug 2013 05:22:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D0046202C8 for ; Thu, 29 Aug 2013 05:22:21 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id E0D7E202C3 for ; Thu, 29 Aug 2013 05:22:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DAC47E614A for ; Wed, 28 Aug 2013 22:22:20 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) by gabe.freedesktop.org (Postfix) with ESMTP id F121BE5C5F for ; Wed, 28 Aug 2013 20:25:32 -0700 (PDT) Received: by mail-pa0-f52.google.com with SMTP id kq13so316459pab.39 for ; Wed, 28 Aug 2013 20:25:32 -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:mime-version:content-type :content-transfer-encoding; bh=IGKDk9ey1JfIwyS5mtklBqhrXIobH3P54dYF1tHKEBM=; b=OoDsZ6o5yTXE+ddO7HpBLY4BHxSyxqYfcGtzA/QhHu4CwbI8YjnX8PloUZ06wjwzLb tmsJmAw5k9BhfndUhhZR2589Aiu7DDQ80lD+RV0CIeejJRde0+v/yov9zzejD55boz0r x6AIYWJtO0mdTJDO0Bk6RnA2SDIrm0LTAHxaY= 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:mime-version :content-type:content-transfer-encoding; bh=IGKDk9ey1JfIwyS5mtklBqhrXIobH3P54dYF1tHKEBM=; b=Qzb+oSewMgBlBdAMxAfLqGKfWySe4/weGkNTJ7KOwoHEu4OhsmP5wMA8UrXp8FX/6W XUmntytGaZelpmg/zy/CduF3MH84hLEFf6dvJbUhNorcxx8/TnmUErwIPljnYFt/+UHI tRNDsLxy9TX7XNZIfSDaKpqmp0ZWlul4xrjkUmTcscy0Kh8xJQYKrjn2AhXVM/ypilUc eOJ/8rfKcOP7MS16TioCcs/zCM/P5UcZ1F6ZnO8ZKkIPrvaFB1RpYyc+f13Ghd7pl3BC dQxL17/r0/enVr/GNeaRXWcED5ZSW9lQjNHl9A4VBS7fA+B9VcedwlZcpKAlMe06fqqh lT9A== X-Gm-Message-State: ALoCoQlF9lrEC/XkMIYWyKdG0W13Nf0tAnFWZWw2AQ0Yr/DgW5TNngKE5S0oy++YPknQwq4q4FAe X-Received: by 10.68.216.227 with SMTP id ot3mr1190831pbc.80.1377746732785; Wed, 28 Aug 2013 20:25:32 -0700 (PDT) Received: from dbehr2.mtv.corp.google.com (dbehr2.mtv.corp.google.com [172.22.69.34]) by mx.google.com with ESMTPSA id br3sm34652160pbd.31.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 Aug 2013 20:25:31 -0700 (PDT) From: Dominik Behr To: dri-devel@lists.freedesktop.org Subject: [PATCH] cirrus: initialize smem_start and smem_size fields in fb info Date: Wed, 28 Aug 2013 20:24:07 -0700 Message-Id: <1377746647-8996-1-git-send-email-dbehr@chromium.org> X-Mailer: git-send-email 1.8.4 MIME-Version: 1.0 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: , 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 X-Spam-Status: No, score=-6.6 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 so user space drivers like fbdev can map the memory Signed-off-by: Dominik Behr Reviewed-by: Stéphane Marchesin --- drivers/gpu/drm/cirrus/cirrus_fbdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/cirrus/cirrus_fbdev.c b/drivers/gpu/drm/cirrus/cirrus_fbdev.c index 6c6b4c8..39e7971 100644 --- a/drivers/gpu/drm/cirrus/cirrus_fbdev.c +++ b/drivers/gpu/drm/cirrus/cirrus_fbdev.c @@ -198,6 +198,9 @@ static int cirrusfb_create(struct cirrus_fbdev *gfbdev, info->screen_base = sysram; info->screen_size = size; + info->fix.smem_start = cdev->dev->mode_config.fb_base; + info->fix.smem_len = size; + info->fix.mmio_start = 0; info->fix.mmio_len = 0;