From patchwork Fri Mar 15 11:34:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10854593 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 F2EFE14DE for ; Fri, 15 Mar 2019 11:34:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD33328B8A for ; Fri, 15 Mar 2019 11:34:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D1BDA28C4E; Fri, 15 Mar 2019 11:34:28 +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 87DFF28B8A for ; Fri, 15 Mar 2019 11:34:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5BDB86E3BF; Fri, 15 Mar 2019 11:34:26 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4A5746E3BF for ; Fri, 15 Mar 2019 11:34:25 +0000 (UTC) Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 341C631A; Fri, 15 Mar 2019 12:34:23 +0100 (CET) From: Kieran Bingham To: linux-renesas-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, Laurent Pinchart Subject: [RFC PATCH 0/5] drm: rcar-du: Rework CRTC and groups for atomic commits Date: Fri, 15 Mar 2019 11:34:13 +0000 Message-Id: <20190315113418.24452-1-kieran.bingham+renesas@ideasonboard.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1552649663; bh=xs9G2WbrohoDosW0J8dn0PTPj5yIuGQ0DEyM98CltCg=; h=From:To:Cc:Subject:Date:From; b=ulw6aS43bsEc5RsHE1SHZkYNIMQk4IxpZm2u5w+U0CcE+tSGMiRAbmYNJnabCsLMr uWvL6+uwYKYyMcha7uxOV3WgSzo75/QwtuA2HueGhk5kPygM7firAkm7/sXTZKtFQd HFgU/xCG9NFhq4w0ntoeJ6n1dLJKQt1cAoaXsAvg= 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: Kieran Bingham Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP An early iteration for refactoring the RCAR-DU so that the group and CRTC state is only changed during rcar_du_atomic_commit_tail. Currnently, various parts of the group and crtc are adjusted and state is stored globaly. Introduce a private object state for the groups so that we can track per-state group-state, and start to utilise that to refactor so that all hardware operations can occur during rcar_du_atomic_commit_tail(). This is only RFC state at the moment, and I am actively working on this code. Kieran Bingham (5): drm: rcar-du: Link CRTCs to the DU device drm: rcar-du: Provide for_each_group helper drm: rcar-du: Create a group state object drm: rcar-du: add group hooks for atomic-commit drm: rcar-du: Add crtc standby helpers drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 150 +++++++++-------- drivers/gpu/drm/rcar-du/rcar_du_crtc.h | 9 +- drivers/gpu/drm/rcar-du/rcar_du_drv.h | 5 + drivers/gpu/drm/rcar-du/rcar_du_group.c | 203 ++++++++++++++++++++---- drivers/gpu/drm/rcar-du/rcar_du_group.h | 38 ++++- drivers/gpu/drm/rcar-du/rcar_du_kms.c | 52 +++--- drivers/gpu/drm/rcar-du/rcar_du_vsp.c | 2 +- 7 files changed, 313 insertions(+), 146 deletions(-)