From patchwork Wed Jun 26 01:35:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Siqueira X-Patchwork-Id: 11016689 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C29C276 for ; Wed, 26 Jun 2019 01:35:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B19FC271CB for ; Wed, 26 Jun 2019 01:35:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2E372766D; Wed, 26 Jun 2019 01:35:41 +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 2BB2E271CB for ; Wed, 26 Jun 2019 01:35:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2C5526E17F; Wed, 26 Jun 2019 01:35:39 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) by gabe.freedesktop.org (Postfix) with ESMTPS id A419A6E17F for ; Wed, 26 Jun 2019 01:35:38 +0000 (UTC) Received: by mail-qt1-x842.google.com with SMTP id j19so620215qtr.12 for ; Tue, 25 Jun 2019 18:35:38 -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:mime-version :content-disposition:user-agent; bh=0LRAWyCoMm6qSJUgjbP8auCw69o7m+ZLWJtl7bdpb+w=; b=qLAgIxVonaasvAJqJOLa4vd3QYF3ex2RNaddWil/rTuhwJ8p7BIJtmbbuSkKDLlLk3 yXRVg7pyG2JY3KzXADGAVme7k7Nos6+xdc46cJfwyZW9r8dpnn7n84PrQe3mRBVniESr bm4M14mo8jaGwA5rkpy98iP1HOLHhY36HXEYdRVzvoLbjbP2zTGu2C+z+q8gPARpIH4J BF4vxHStTHzJbBcM6zFcm0X5kuoSW7KbBkQQANGS3MgV/vSfMFq9T3zEFTiGcx/QqaEF Xn763t6eAEZWrz/0jM1UonuA2RHc27QlWfJEuetf+lSGkY6z7BCHXFmU7HTzOa26ZqWG UYIg== X-Gm-Message-State: APjAAAUHvQfUMwTxbFS5pWlcENylbtuDlu/WPiQGHqq6gDtQjeR0tnqw AVxiGpp2gZsYK1JJbgC89Ws= X-Google-Smtp-Source: APXvYqxpXDznfBJclCVx7xXV0zdyxRpLK69Oa2CuicRUspRtYvD+5giOq5ZovANyg2wCLBplsqvwMQ== X-Received: by 2002:ac8:17a5:: with SMTP id o34mr1385680qtj.232.1561512937655; Tue, 25 Jun 2019 18:35:37 -0700 (PDT) Received: from smtp.gmail.com ([187.121.151.146]) by smtp.gmail.com with ESMTPSA id 123sm7343770qkh.113.2019.06.25.18.35.32 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 25 Jun 2019 18:35:36 -0700 (PDT) Date: Tue, 25 Jun 2019 22:35:30 -0300 From: Rodrigo Siqueira To: Brian Starkey , Liviu Dudau , Daniel Vetter , Haneen Mohammed , Simon Ser Subject: [PATCH V3 0/5] drm/vkms: Introduces writeback support Message-ID: MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20180716 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=0LRAWyCoMm6qSJUgjbP8auCw69o7m+ZLWJtl7bdpb+w=; b=Xwx6E+6qHDSLrgkTZG71QymmraL414RSn1b4jzWwNp/EQoGWChZXZCJ56w78XccijD 1E+OOkSvvoDBM1ir+vgbxhq1ETv2ASxey+QcHAk0RffvDLUpCIiMwzBDcvl8aTWrspM9 XsG2jdiayltXMWwNwSfszrKu3xxh8g/1rb9sEJ658YI+L7cYh87PrcXSNwTT8FBCTQh0 jSpvEBID8+gwLbrQXSN0vNMY/mZg9v5On4L2zmP6Dojuz9QVukaYW9nzhWxNcmYSyX9u KMQdnGm0JDSZRi1Aq5eGZ92rrFhJldEE9SjhMRf9na6KrjyWi0nw0bZg+A6eNEhBrwkL U09A== 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: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This is the V3 version of a series that introduces the writeback support to vkms. As a result of the previous review, this patchset can be seen in three parts: make vkms able to support multiple connector, pre-work for vkms, and the vkms implementation. Follows the details: * First part: The first patch of this series is a fix that enables vkms to accept new connectors, such as writeback connector. * Second part: The second part of this patchset starts on patch 02 and finish on patch 04; basically it is a pre-work that aims to make vkms composer operations a little bit more generic. These patches update the CRC files and function to make it work as a composer; it also centralizes the vkms framebuffer operations. Additionally, these changes enable the composer to use the writeback framebuffer instead of creating a copy. * Third part: The final patch enables the support for writeback in vkms. With this patchset, vkms can successfully pass all the kms_writeback tests from IGT. Note: Most of the changes in the V3 was suggested by Daniel Vetter as can be seen at the link https://patchwork.freedesktop.org/patch/311844/?series=61738&rev=2 Note: This patchset depends on Daniel's rework of CRC, see it at https://patchwork.freedesktop.org/series/61737/ Rodrigo Siqueira (5): drm/vkms: Avoid assigning 0 for possible_crtc drm/vkms: Rename vkms_crc.c into vkms_composer.c drm/vkms: Decouple crc operations from composer drm/vkms: Compute CRC without change input data drm/vkms: Add support for writeback drivers/gpu/drm/vkms/Makefile | 9 +- .../drm/vkms/{vkms_crc.c => vkms_composer.c} | 174 ++++++++++-------- drivers/gpu/drm/vkms/vkms_crtc.c | 30 +-- drivers/gpu/drm/vkms/vkms_drv.c | 10 +- drivers/gpu/drm/vkms/vkms_drv.h | 40 ++-- drivers/gpu/drm/vkms/vkms_output.c | 16 +- drivers/gpu/drm/vkms/vkms_plane.c | 40 ++-- drivers/gpu/drm/vkms/vkms_writeback.c | 141 ++++++++++++++ 8 files changed, 331 insertions(+), 129 deletions(-) rename drivers/gpu/drm/vkms/{vkms_crc.c => vkms_composer.c} (51%) create mode 100644 drivers/gpu/drm/vkms/vkms_writeback.c