From patchwork Thu Jun 13 02:14:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rodrigo Siqueira X-Patchwork-Id: 10991031 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 0F23A14C0 for ; Thu, 13 Jun 2019 02:15:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E331F28AF3 for ; Thu, 13 Jun 2019 02:15:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D7DF128B50; Thu, 13 Jun 2019 02:15:08 +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 6F11828AF3 for ; Thu, 13 Jun 2019 02:15:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EFEBF891B1; Thu, 13 Jun 2019 02:15:06 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@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 8D886891AC; Thu, 13 Jun 2019 02:15:05 +0000 (UTC) Received: by mail-qt1-x842.google.com with SMTP id n11so18692668qtl.5; Wed, 12 Jun 2019 19:15:05 -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=weatLZ9NSXiBe38NzD/EWYekaHcQFfxcWtn1w8cZ0uk=; b=htdeJxQxnR1BfhYe1X2doj4dWH79UdXCnsfqtpURm+zjv0wG/TxTBL9iCmhg4yfKhV aFnSVq6yxu576JFztFuAGhMXDCB6KFOc81h00BnN2QEOPWLBy29ZL2u0Ioae+oDzXKqH hwbhMl4kwDRCVy8wJX83yl868LCC6rXkGVO8EUKXZI2e6j/OIxtcL7tAIEV/joo7JmLn zWOcabpSNHwbxU6/hS1C30hDDIUcTpLGYIOp2wzgocYxwr5mL/IWjPpNeEQ9V0yeJNHq 2/SorBZCeCc+CR1H+RoK74eA9cf6oQXn/reSccARlhyboJJT7SJgisUuwhppS/W+AVdX qjQg== X-Gm-Message-State: APjAAAX3fEuJFsiwql4ovt8/vH20w+mjq2wC3qRTZXP8lNZD7S7CS7WE Djssz1oG2q0QVNIMep1Tg10= X-Google-Smtp-Source: APXvYqzPsRDs+uYE09CIQI2S8IuU4l/6WIwsdH+QkpqAU0+vEnHXIrgom2LQaYCYHtX872DvbvdICA== X-Received: by 2002:aed:3bb5:: with SMTP id r50mr69791659qte.89.1560392104538; Wed, 12 Jun 2019 19:15:04 -0700 (PDT) Received: from smtp.gmail.com ([187.121.151.146]) by smtp.gmail.com with ESMTPSA id b23sm891739qte.19.2019.06.12.19.15.00 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 12 Jun 2019 19:15:03 -0700 (PDT) Date: Wed, 12 Jun 2019 23:14:58 -0300 From: Rodrigo Siqueira To: Brian Starkey , Liviu Dudau , Petri Latvala , Arkadiusz Hiler , Daniel Vetter Message-ID: MIME-Version: 1.0 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=weatLZ9NSXiBe38NzD/EWYekaHcQFfxcWtn1w8cZ0uk=; b=l1FigqiKfl8aGjC4eEvfdLjPsp+qNTyrwWFeKYBPb+7B1du79AzgZYUXqYgMUDUmZU +rhgKUrkFZJ/n+dedP9usi4wAjMJVLlJf84CQ7eX1HBgEcG8SY89eyfaeQEFj/Va5SuG pkVpIe1dw6MKzpBmezFo73ymf5dYg9vZ62N1cMDlM+skNOMoqRBm5wVwdF42lqKQJHg9 d33a2fNnQrsS1tF8DEdRDyww32vH1isToGAWRbUbNsDED3sBzAM06P4sMBirdMPB2b6P HwsTaFyhTPZ7rNLrCXaYbv5lQQOeTMt0Lmj9Ly8CkRGoXhtj2lkDXbgX8XJXL+hs5zuh C3iw== Subject: [Intel-gfx] [PATCH V6 i-g-t 0/6] igt: Add support for testing writeback connectors X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: igt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, nd Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP DRM already have writeback connectors support, which is a way to expose in DRM the hardware functionality from display engines that allows writing back into memory the result of the DE's composition of supported planes. These days, I'm working to add the writeback support into the vkms[1], and I used the kms_writeback to validate my implementation. As a result, I had to rebase the v5 version of Liviu's series, and I also fixed a small issue in the first path (lib/igt_kms: Add writeback support). Patches have been originally implemented by Brian, Liviu has done the v3 and v4 updates to them. I’m just sending a v6. 1. https://patchwork.freedesktop.org/series/61738/ Brian Starkey (6): lib/igt_kms: Add writeback support kms_writeback: Add initial writeback tests lib: Add function to hash a framebuffer kms_writeback: Add writeback-check-output lib/igt_kms: Add igt_output_clone_pipe for cloning kms_writeback: Add tests using a cloned output lib/igt_fb.c | 66 ++++++ lib/igt_fb.h | 3 + lib/igt_kms.c | 157 +++++++++---- lib/igt_kms.h | 10 + tests/Makefile.sources | 1 + tests/kms_writeback.c | 492 +++++++++++++++++++++++++++++++++++++++++ tests/meson.build | 1 + 7 files changed, 692 insertions(+), 38 deletions(-) create mode 100644 tests/kms_writeback.c