From patchwork Fri Aug 18 15:49:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Varad Gautam X-Patchwork-Id: 9909477 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E2436602C8 for ; Fri, 18 Aug 2017 15:50:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0E8E28CB8 for ; Fri, 18 Aug 2017 15:50:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C5BC828CFB; Fri, 18 Aug 2017 15:50:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6C5CF28CB8 for ; Fri, 18 Aug 2017 15:50:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3B77C6E761; Fri, 18 Aug 2017 15:50:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg0-x241.google.com (mail-pg0-x241.google.com [IPv6:2607:f8b0:400e:c05::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id CB6986E761 for ; Fri, 18 Aug 2017 15:50:30 +0000 (UTC) Received: by mail-pg0-x241.google.com with SMTP id i12so325541pgr.1 for ; Fri, 18 Aug 2017 08:50:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7z46awP7U9yYC6cpiNPK2jz6NCfy5xuxpzHlk6nhDis=; b=EZsl9iWv4uSQZjL6Wwr3wKTahVy3zNGSgv0PMzcwYe77VP/nhRy4DYoT4nmkyULN3Z jetPYP/dR7LQBZDUijizomJGm+L4p2axTplxKry86YN3+ralCxC8AUnUXPZvfwgg3ZH2 DjXZQysAiuRF3vOnUPnPF44CfYNElN2m+dcXiBoMwqNaRDLwUFV2/8EttEUZKPIHoXSC RVr1wenDW5un4T7WEXiA3L4tK+6QJsEaleO21n0Qx/IB128gCLJTqv6V5tGbMMO7KxU/ tus+Cq+9pk2jFYZg7czQmQJVFoeRlzq8xkSuHyG1/+3gOLK61VUX2WuUhdosZW2jieKT mKEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7z46awP7U9yYC6cpiNPK2jz6NCfy5xuxpzHlk6nhDis=; b=EzwEY5Qx9vkLPcrCSLvr4bj3yAfjBLL6AX5AnBCtNS8rCxBreLVI+GFphWoUQPZSPg L58gH2LIwEMrCSxiip3wNGJxcwkOMlvL1bImbr68bBGIE90PPYfW/92SbWtbVWSDLpkY UzUMb3q7hpaE7+BayRcA7xfEnPfC6M8MXnfvgQW457L6ApyZn28ym4hnZuuEl9VChkB+ YtFR4/ZKRj8OJtoqXrELTrDPvIMYC7AA4ZRVBfUeAvRBKWN2d2FRueGSgJMOqpLnrYSA ax83wrgPXELAfx2nZeQ6AZqi0yXtV1njCVuG4ccZX9rQj5fW3JmHtl+7ysxsaDaaZO2A uFAg== X-Gm-Message-State: AHYfb5iu68pOrodQc01rAML5b+nnXcLCnsG1sAvAWh98A88Tqa8VRvUE m0oWGfRKMZzISbvlq0iJtQ== X-Received: by 10.99.48.7 with SMTP id w7mr9270996pgw.244.1503071430098; Fri, 18 Aug 2017 08:50:30 -0700 (PDT) Received: from localhost.localdomain ([47.247.8.137]) by smtp.gmail.com with ESMTPSA id 133sm11095781pge.29.2017.08.18.08.50.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 18 Aug 2017 08:50:29 -0700 (PDT) From: Varad Gautam To: dri-devel@lists.freedesktop.org Subject: [PATCH 05/14] drm/cirrus: initialize start and size fields Date: Fri, 18 Aug 2017 21:19:10 +0530 Message-Id: <20170818154919.18607-6-varadgautam@gmail.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170818154919.18607-1-varadgautam@gmail.com> References: <20170818154919.18607-1-varadgautam@gmail.com> MIME-Version: 1.0 Cc: Zhuo-hao Lee , =?UTF-8?q?St=C3=A9phane=20Marchesin?= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Dominik Behr initialize start and size fields in fb info so user space drivers like fbdev can map the memory cherry-pick from 3.14 to 3.18 kernel to let VMtest pass dmesg now shows proper size and fb start initially reviewed for chromiumos at: https://chromium-review.googlesource.com/167396 https://chromium-review.googlesource.com/282933 https://chromium-review.googlesource.com/339092 Signed-off-by: Dominik Behr Signed-off-by: Zhuo-hao Lee Signed-off-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 ed96dae1c205..4bc7d8f60e97 100644 --- a/drivers/gpu/drm/cirrus/cirrus_fbdev.c +++ b/drivers/gpu/drm/cirrus/cirrus_fbdev.c @@ -232,6 +232,9 @@ static int cirrusfb_create(struct drm_fb_helper *helper, 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;