From patchwork Wed Jun 20 17:43:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Siqueira X-Patchwork-Id: 10478305 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 F0A0D601D7 for ; Wed, 20 Jun 2018 17:43:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC59A26E51 for ; Wed, 20 Jun 2018 17:43:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CCD5C287E8; Wed, 20 Jun 2018 17:43:25 +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=-5.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED 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 91ED626E51 for ; Wed, 20 Jun 2018 17:43:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DBBC089CD4; Wed, 20 Jun 2018 17:43:24 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qt0-x244.google.com (mail-qt0-x244.google.com [IPv6:2607:f8b0:400d:c0d::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id AA74289CD4 for ; Wed, 20 Jun 2018 17:43:22 +0000 (UTC) Received: by mail-qt0-x244.google.com with SMTP id l33-v6so360594qta.11 for ; Wed, 20 Jun 2018 10:43:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=kw7iaCsSbXIspJ0qQkdeH0KLXZ57xRTWTPknVwWkFgs=; b=kmVTIuAAkTwlwbMdpe7wg+mjqv+dR4fKLz5sjSBzH7Ki6iHeYy8+03CdSXgeuEyjEJ +O7IXokOKbfHl4W+1SdoOQXyRmCle5SEQ+MUTOpEcxaOIDR1hLQiV5z2kYJFq/A6BOCS wLGGlEZVhy0UqLqPyPjm//ZhUCp2WtX0MItFXLwbl5ZLDd/G6+SuI6SjFnQspDg7cr8v roSOjXMNfHRXh/wv5C9ALHyxqlAHVx125bcXW2mu3pbwkkhgBYpV3oGaJ8ZiPy7tccXn hHCX4H0tlsSrmkQ7hqttyc3tzwlNENp0N1mH7IeOGz21P9Xs2MhrZCsgwqE0XZ8wAZqL nWmQ== X-Gm-Message-State: APt69E0xRVWZIWy9Evz+B/CQo8t0w3CINmUI+FsLlxcRsGqUIPam80IZ 6kbEAG5jKWK356YkbDjTFkE= X-Google-Smtp-Source: ADUXVKKWJK0BQ0D9m8QqFxd0KBpBz8UwsV8e6HgNu1AS1xFIKwvD4DrVPMCTMQN6e8leuK6+LIcQAQ== X-Received: by 2002:ac8:43ce:: with SMTP id w14-v6mr20111168qtn.137.1529516601889; Wed, 20 Jun 2018 10:43:21 -0700 (PDT) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id 10-v6sm2003121qki.54.2018.06.20.10.43.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Jun 2018 10:43:21 -0700 (PDT) Date: Wed, 20 Jun 2018 14:43:18 -0300 From: Rodrigo Siqueira To: Gustavo Padovan , Sean Paul , Daniel Vetter , Haneen Mohammed Subject: [PATCH 1/4] drm/vkms: Add helper for framebuffer create Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180512 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch adds the basic hook required to create framebuffer which is necessary for providing some of the vkms features. Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/vkms/vkms_drv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/vkms/vkms_drv.c b/drivers/gpu/drm/vkms/vkms_drv.c index 638bab9083b5..cc046fff985c 100644 --- a/drivers/gpu/drm/vkms/vkms_drv.c +++ b/drivers/gpu/drm/vkms/vkms_drv.c @@ -9,6 +9,8 @@ #include #include #include +#include +#include #include "vkms_drv.h" #define DRIVER_NAME "vkms" @@ -68,6 +70,7 @@ static struct drm_driver vkms_driver = { }; static const struct drm_mode_config_funcs vkms_mode_funcs = { + .fb_create = drm_gem_fb_create, .atomic_check = drm_atomic_helper_check, .atomic_commit = drm_atomic_helper_commit, };