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: 10854585 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 952B614DE for ; Fri, 15 Mar 2019 11:34:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7052B28B8A for ; Fri, 15 Mar 2019 11:34:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6068728C6D; Fri, 15 Mar 2019 11:34:26 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CEA4228B8A for ; Fri, 15 Mar 2019 11:34:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727375AbfCOLeZ (ORCPT ); Fri, 15 Mar 2019 07:34:25 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:48988 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727115AbfCOLeZ (ORCPT ); Fri, 15 Mar 2019 07:34:25 -0400 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) 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= From: Kieran Bingham To: linux-renesas-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, Laurent Pinchart Cc: Kieran Bingham 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 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org 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(-)