From patchwork Thu Jun 6 22:40:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Siqueira X-Patchwork-Id: 10980559 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 1FD4A76 for ; Thu, 6 Jun 2019 22:40:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B57A266F3 for ; Thu, 6 Jun 2019 22:40:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F350E28740; Thu, 6 Jun 2019 22:40:23 +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 A50F4266F3 for ; Thu, 6 Jun 2019 22:40:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5235E89A5C; Thu, 6 Jun 2019 22:40:21 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8F78189A5C for ; Thu, 6 Jun 2019 22:40:19 +0000 (UTC) Received: by mail-qt1-x841.google.com with SMTP id s57so139430qte.8 for ; Thu, 06 Jun 2019 15:40:19 -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=X04iGhDQzw+yQxS/c88O+hKoiyR84ubnTVeo0JYdCO8=; b=unbmp9liRqYHjJ9vnU5+khhBV5pW8G6QLjpkRXXDNl3+ssQ5OZrpPiZWklMhyNQDkI 698AHwKDYg/I2jsJXVzBf6MgtpQQgUbj4PUXKJLHcockQtkaGZetD5VwHVqeQlaWN4nU 7b3tY7+vvxu/fgyPBVumb7R1JJZiqCSLaIIV8s5t9MFMESGbg5whplT2mIvSRQry+Heo Qc5yL9p0T6T214tefpQwQ4rqdm4lgxPWT7YziCjvtsKvpF8BmraDs0IV2lJGDkMVaukv TJ4H/cCyR9XSgog3t8X/JaG58ziFpaQkuSCXTZAR0PR+i/+3hykyVZWQaTiBw7DDl7Kb zY3w== X-Gm-Message-State: APjAAAWtTuIIFurvfnN3j7EVov9D4uyOV8afLjLUbaTEaAGI7hA2O1L2 CxtcOqB1g7eQ0I438VRDumE= X-Google-Smtp-Source: APXvYqxsUjIa/bzBg+ectDFHonbB3fvpMVWwMiFC9WyWojB2K3od3AKrLhj5ninduUP/gVHZ7yiAYQ== X-Received: by 2002:a0c:ed4b:: with SMTP id v11mr40088143qvq.126.1559860818713; Thu, 06 Jun 2019 15:40:18 -0700 (PDT) Received: from smtp.gmail.com ([187.121.151.146]) by smtp.gmail.com with ESMTPSA id c18sm105921qkm.78.2019.06.06.15.40.15 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 06 Jun 2019 15:40:18 -0700 (PDT) Date: Thu, 6 Jun 2019 19:40:13 -0300 From: Rodrigo Siqueira To: Brian Starkey , Liviu Dudau , Daniel Vetter , Haneen Mohammed , Simon Ser Subject: [PATCH 0/2] drm/vkms: Introduces writeback support 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=X04iGhDQzw+yQxS/c88O+hKoiyR84ubnTVeo0JYdCO8=; b=AwO+LEHwNcOjItvoP+6RgLmB/qXyyEalhoWC967tTiNj9hmgsQAOnXLqpCvE/LgIrW 7LxBC0iHC0hdkuKNSaFVfUcmFmFitowIF/tRuTvWUXcHKMUz0mLqTPm9Ss0m/SfPDNfk uViw3s2aPk9pKyeA4f/yRoMyaaP1q/RUikSq+4GQbL+tMyrojZGXNU4cxKqDeDThHKh5 ah9Njc/fnFkfljlJDoZtuG8jw++nrpbDxjgFLb/Y+nDOgXBCEXVX6kPfkb9MNo3apGGN NHeHSg3fu8MyZaGcdMasrp20RMaYPp6VrSfzQMwB4r62AMDs4YnSYFtsoBTelMv+nqQd 3HVg== 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 patchset introduces the writeback connector to vkms. The first patch is required for enabling the virtual encoder to be compatible with the crtc when we have multiple encoders. The second patch adds the required implementation to enable writeback in the vkms. With this patchset, vkms can successfully pass all the kms_writeback tests from IGT. Rodrigo Siqueira (2): drm/vkms: Use index instead of 0 in possible crtc drm/vkms: Add support for writeback drivers/gpu/drm/vkms/Makefile | 9 +- drivers/gpu/drm/vkms/vkms_crtc.c | 5 + drivers/gpu/drm/vkms/vkms_drv.c | 12 +- drivers/gpu/drm/vkms/vkms_drv.h | 16 ++- drivers/gpu/drm/vkms/vkms_output.c | 12 +- drivers/gpu/drm/vkms/vkms_plane.c | 4 +- drivers/gpu/drm/vkms/vkms_writeback.c | 165 ++++++++++++++++++++++++++ 7 files changed, 214 insertions(+), 9 deletions(-) create mode 100644 drivers/gpu/drm/vkms/vkms_writeback.c