From patchwork Fri Feb 22 11:23:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Zabel X-Patchwork-Id: 10825727 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 30C6F1390 for ; Fri, 22 Feb 2019 11:36:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1D5EB311E2 for ; Fri, 22 Feb 2019 11:36:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10AC831471; Fri, 22 Feb 2019 11:36:07 +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,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 A4953311E2 for ; Fri, 22 Feb 2019 11:36:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 06BB889483; Fri, 22 Feb 2019 11:36:04 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by gabe.freedesktop.org (Postfix) with ESMTPS id 881F589182 for ; Fri, 22 Feb 2019 11:23:53 +0000 (UTC) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gx8vn-00044F-No; Fri, 22 Feb 2019 12:23:51 +0100 Received: from pza by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1gx8vm-0001gR-F4; Fri, 22 Feb 2019 12:23:50 +0100 Date: Fri, 22 Feb 2019 12:23:50 +0100 From: Philipp Zabel To: David Airlie , Daniel Vetter Subject: [GIT PULL] drm/imx: pending update handling, plane zpos property Message-ID: <20190222112350.m3ucezilqx6cyest@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 12:11:15 up 10 days, 19:36, 88 users, load average: 0.36, 0.37, 0.31 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: pza@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: dri-devel@lists.freedesktop.org X-Mailman-Approved-At: Fri, 22 Feb 2019 11:36:03 +0000 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: dri-devel@lists.freedesktop.org, kernel@pengutronix.de Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP please consider merging these imx-drm updates for v5.1. Same content as the imx-drm-next-2019-02-13 pull request, but rebased onto v5.0-rc7, with a Tested-by: on the zpos patch, and two commit typo fixes in commit messages. regards Philipp The following changes since commit a3b22b9f11d9fbc48b0291ea92259a5a810e9438: Linux 5.0-rc7 (2019-02-17 18:46:40 -0800) are available in the Git repository at: git://git.pengutronix.de/pza/linux tags/imx-drm-next-2019-02-22 for you to fetch changes up to a0ea4ffff2662c10ca69d5e246adf5543fd945b9: drm/imx: only send commit done event when all state has been applied (2019-02-22 12:17:58 +0100) ---------------------------------------------------------------- drm/imx: handle pending updates better, add plane zpos property support - Add a mechanism to only send commit done events once all pending updates have been applied. This closes a small race window where already armed events could fire even though the double buffered hardware update just missed the update window. - Add plane zpos property support to allow placing the overlay plane behind the primary plane. - Allow building imx-drm on all platforms under COMPILE_TEST. ---------------------------------------------------------------- Lucas Stach (4): gpu: ipu-v3: pre: add double buffer status readback gpu: ipu-v3: prg: add function to get channel configure status drm/imx: ipuv3-plane: add function to query atomic update status drm/imx: only send commit done event when all state has been applied Philipp Zabel (3): drm/imx: ipuv3-plane: add zpos property drm/imx: imx-tve: depend on COMMON_CLK drm/imx: allow building under COMPILE_TEST drivers/gpu/drm/imx/Kconfig | 3 +- drivers/gpu/drm/imx/imx-drm-core.c | 7 +--- drivers/gpu/drm/imx/ipuv3-crtc.c | 30 ++++++++++++++- drivers/gpu/drm/imx/ipuv3-plane.c | 76 +++++++++++++++++++++++++------------- drivers/gpu/drm/imx/ipuv3-plane.h | 2 + drivers/gpu/ipu-v3/ipu-pre.c | 6 +++ drivers/gpu/ipu-v3/ipu-prg.c | 16 ++++++++ drivers/gpu/ipu-v3/ipu-prv.h | 1 + include/video/imx-ipu-v3.h | 1 + 9 files changed, 109 insertions(+), 33 deletions(-)