From patchwork Mon May 15 17:20:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liviu Dudau X-Patchwork-Id: 99825 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1648976qge; Mon, 15 May 2017 10:22:12 -0700 (PDT) X-Received: by 10.84.150.131 with SMTP id h3mr9993104plh.103.1494868932299; Mon, 15 May 2017 10:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494868932; cv=none; d=google.com; s=arc-20160816; b=t41wJLKh2Hk939OytDJvobxWmNfRIimUKfvGPZXc4hqekzZYm/7s3DhFhhWdlNcXlO 4sEU76PvStjucAQYMGEFQgW0IAMon8lHlLGM1NUpQ7zQ8CDWWJ+HkPdgydQyiWkOT/q6 a1w+Uu2ANjvZAUKDlh/TxmIsEL2Sy51jmFA72lrqENeBZVmH90JfoJnP426EOmJHDV91 IgwqM+7ic+k11TaNbALNMMW7G+5uib4Xs+wMAEDIV7TbffAsLvxeNwGce3TDdJJiRLVh lok+UvIySlZWMvru300CqIZ44Lj/nxsnEnY37ulh52r4yP95Dee9r9lusbg/Ka7XVuEg 0HlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:cc:message-id:date:subject:to:from:delivered-to :arc-authentication-results; bh=5DYkonmXf8XMUY18BXQ6CrfSQsJMq3nh1tWQ77MkmDw=; b=J0q6VXGAO4XE8Zy83sa/7+iRQGgAHV0RSBRJmJX2a7ZvO8gD6j1l80PqV6xE0Rnwqz /u9HFstdPvndAb+2m3AbyUcgCO2o7pJ9FrpIkoCYlTRqANzR+ZhuMGllZc5qzueZVC6m 8RDjD6FGWPVGikN8W8XV6TP0i9HyFeqaLUrmn8y//NfAiSd0zjoRUBk5ng7ZwHbFCtJw EL97lIz1iGwWV4q+rKvDZeTpvy3zAd9yexLCwTO8DuumacauMrJinwrJNTTncMrKaHrJ m2bb3wbMkzS7h+KgirxEj/kAnJV9ieklWnoAE9DQr12g8If914+t16Hxi1mLLJi9OeQV UkEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id 91si11011255plb.204.2017.05.15.10.22.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 May 2017 10:22:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 858E26E258; Mon, 15 May 2017 17:21:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from cam-smtp0.cambridge.arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by gabe.freedesktop.org (Postfix) with ESMTPS id 11A5E6E258 for ; Mon, 15 May 2017 17:21:39 +0000 (UTC) Received: from e110455-lin.cambridge.arm.com (e110455-lin.cambridge.arm.com [10.2.131.9]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with ESMTP id v4FHKvLG021581; Mon, 15 May 2017 18:20:57 +0100 From: Liviu Dudau To: Daniel Vetter Subject: [PATCH v5 0/2] drm: Introduce writeback connectors Date: Mon, 15 May 2017 18:20:55 +0100 Message-Id: <20170515172057.30315-1-Liviu.Dudau@arm.com> X-Mailer: git-send-email 2.12.2 Cc: LKML , DRI devel 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: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, This is v5 of the writeback connector series. Boris Brezillon thought that having to explicitly instantiate an encoder when using drm_writeback_connector is a bit too cumbersome, so I'm pushing out this version where we embed a virtual encoder inside drm_writeback_connector in order to satisfy the DRM framework. The caller of drm_writeback_connector_init() can control the embedded encoder by passing the drm_encoder_helper_funcs to be used. Comments are welcome on the suitability of this series. Best regards, Liviu Brian Starkey (2): drm: Add writeback connector type drm: writeback: Add out-fences for writeback connectors Documentation/gpu/drm-kms.rst | 9 + drivers/gpu/drm/Makefile | 2 +- drivers/gpu/drm/drm_atomic.c | 229 ++++++++++++++++++++++- drivers/gpu/drm/drm_atomic_helper.c | 6 + drivers/gpu/drm/drm_connector.c | 4 +- drivers/gpu/drm/drm_writeback.c | 362 ++++++++++++++++++++++++++++++++++++ include/drm/drm_atomic.h | 11 ++ include/drm/drm_connector.h | 13 ++ include/drm/drm_mode_config.h | 22 +++ include/drm/drm_writeback.h | 127 +++++++++++++ include/uapi/drm/drm_mode.h | 1 + 11 files changed, 775 insertions(+), 11 deletions(-) create mode 100644 drivers/gpu/drm/drm_writeback.c create mode 100644 include/drm/drm_writeback.h