From patchwork Wed Dec 13 15:33:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 121783 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5620538qgn; Wed, 13 Dec 2017 07:33:42 -0800 (PST) X-Google-Smtp-Source: ACJfBov6RtEwLk9DnTdH2YTxatXbBRTQZWsxEsHlMF93gHF17lB5785Q4e2MgyXeGN5DTyWGtZOV X-Received: by 10.98.163.200 with SMTP id q69mr6330672pfl.21.1513179221820; Wed, 13 Dec 2017 07:33:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513179221; cv=none; d=google.com; s=arc-20160816; b=uZquKG56/T1Y6Nz6hQktbP8MUKuqcQbmG8at+yj0AV2j+OnhvOVWyfDD95AC3nuD3K 1Ln97/n5xoLosxEg7ylKV6Ak/G+y6sBcn+5MUwcOsm5JY4BMpMF1ff3Y/TTu9zvcmacs 7rIS/sgFjxnE1h6daaVlNR1k1pwRzVCLkOQLA4G3PFQ9mesxSsZ+V7T/wpLZNyoMTvUk s3dzkMd4pR+Am4ZJauMzGViGJyLgRG45nad4YOWBJ+cGrFI6ejG15tCvPCOlrn0S5z7U 4J5IHHmlfaQrF6dnv6yG4A7Vrch+/BsZCBGmlrBtygUEchUNkdFDIAER0vpSKwpon64H syrw== 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=yBmyFOBrikmYbYc1R0jpihklTe1sVo9IRvlp+jtIHWM=; b=xrLmRJxoSvOAvDA/TI4PaRLVDW9OyOhd3v73u4gzc8Suh1Kk0N00uW09yFyaSVYM6Q mZxR/n7Bx50nZtlzCY0SLWUeYG34MGhVTPs8/qNJBCnmTzEFqqFLwldiYOLCIXG2llZ+ UaATF0hK+fUAw9hJdsvYyZynfioOZHcxzjm4REQ+kui4yAqkPZLBF9EksdHC5TQoPUxx eN9LJ6DjTPltlnownvkn044DR4ZBj+Pv1iY8SWekH9A7GCQiJoDzLzuvcXsFC6+7FJfS LlgazTAKVD38DANvZGbdoZ27mXjajpFihosxB6WbeCkp1jymNhflfQetZADqq2rZbQCB ZC+Q== 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 k11si1445693pgr.18.2017.12.13.07.33.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Dec 2017 07:33:41 -0800 (PST) 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 10ACB6E510; Wed, 13 Dec 2017 15:33:40 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.free-electrons.com (mail.free-electrons.com [62.4.15.54]) by gabe.freedesktop.org (Postfix) with ESMTP id 4423A6E50D for ; Wed, 13 Dec 2017 15:33:39 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 110) id 2605E2093C; Wed, 13 Dec 2017 16:33:37 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id F18B320850; Wed, 13 Dec 2017 16:33:36 +0100 (CET) From: Maxime Ripard To: Daniel Vetter , David Airlie , Chen-Yu Tsai , Maxime Ripard Subject: [PATCH 0/8] drm/sun4i: Support the Display Engine frontend Date: Wed, 13 Dec 2017 16:33:24 +0100 Message-Id: X-Mailer: git-send-email 2.14.3 Cc: linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, thomas@vitsch.nl 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 a first serie to enable the display engine frontend. This hardware block is found in the first generation Display Engine from Allwinner. Its role is to implement more advanced features that the associated backend, even though the backend alone can be used (and was used so far) for basic composition. Among those features, we will find hardware scaling, that is supported in this serie, colorspace conversions, or more exotic formats support such as the one output by the VPU. Let me know what you think, Maxime Maxime Ripard (8): drm/sun4i: backend: Move line stride setup to buffer setup function drm/sun4i: backend: Allow a NULL plane pointer to retrieve the format drm/sun4i: sun4i_layer: Add a custom plane state drm/sun4i: crtc: Add a custom crtc atomic_check drm/sun4i: Add a driver for the display frontend drm/sun4i: sun4i_layer: Wire in the frontend drm/sun4i: sun4i_layer: Add a custom atomic_check for the frontend ARM: dts: sun8i: a33 Enable our display frontend arch/arm/boot/dts/sun8i-a33.dtsi | 1 +- drivers/gpu/drm/sun4i/Makefile | 3 +- drivers/gpu/drm/sun4i/sun4i_backend.c | 139 +++++++++- drivers/gpu/drm/sun4i/sun4i_backend.h | 6 +- drivers/gpu/drm/sun4i/sun4i_crtc.c | 14 +- drivers/gpu/drm/sun4i/sun4i_drv.c | 16 +- drivers/gpu/drm/sun4i/sun4i_drv.h | 1 +- drivers/gpu/drm/sun4i/sun4i_frontend.c | 377 ++++++++++++++++++++++++++- drivers/gpu/drm/sun4i/sun4i_frontend.h | 102 +++++++- drivers/gpu/drm/sun4i/sun4i_layer.c | 75 ++++- drivers/gpu/drm/sun4i/sun4i_layer.h | 11 +- drivers/gpu/drm/sun4i/sunxi_engine.h | 2 +- 12 files changed, 727 insertions(+), 20 deletions(-) create mode 100644 drivers/gpu/drm/sun4i/sun4i_frontend.c create mode 100644 drivers/gpu/drm/sun4i/sun4i_frontend.h base-commit: 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 Reviewed-by: Neil Armstrong