From patchwork Fri May 17 22:31:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 10948729 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 1A647933 for ; Fri, 17 May 2019 22:31:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0B6DD2846C for ; Fri, 17 May 2019 22:31:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F33DE284B5; Fri, 17 May 2019 22:31:56 +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 B2A012846C for ; Fri, 17 May 2019 22:31:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C6B7F89565; Fri, 17 May 2019 22:31:51 +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 B7FED89533 for ; Fri, 17 May 2019 22:31:49 +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 93C662F3; Sat, 18 May 2019 00:31:47 +0200 (CEST) From: Kieran Bingham To: Laurent Pinchart , linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: [RFC PATCH 0/3] VSP1/DU atomic interface changes Date: Fri, 17 May 2019 23:31:40 +0100 Message-Id: <20190517223143.26251-1-kieran.bingham+renesas@ideasonboard.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1558132307; bh=hrreR5uYRWGRqx1xcaMBEKSzGe5SPNniPH+7l05moZs=; h=From:To:Cc:Subject:Date:From; b=wLL0CDjSV5zlGtmCmdhx0gsq2nAtHTLeLiJ7TuMCBa5hajNudX6zKUHrI3NmPxzpM Emb/JIqvh/cX/b8S7wLsM27dLdwtUx5TikD5JE+JZiGY9nn8q/NCc9RsCQBZORwJpJ fj6F33WyiXOZF0/VqRxoPWhEmS6kk7svwleZOkl4= 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 As part of the ongoing DU group refactoring it became apparent that we need to split the configuration of the VSP to allow fine grain control of setting the VSP1 mode configuration and enabling/disabling of the pipeline. To split the mode configuration and the pipeline enablement, we add three new calls: - vsp1_du_atomic_modeset() - vsp1_du_atomic_enable() - vsp1_du_atomic_disable() To support the cross-component API, the new interface is added in [patch 1/3], including an implementation of vsp1_du_setup_lif() to support the transition. The DRM usage is adapted in [patch 2/3], before the call is removed entirely in [patch 3/3] Whilst these patches are independent and could be reviewed separately, they are not expected to be integrated until the associated group rework is completed. Kieran Bingham (3): media: vsp1: drm: Split vsp1_du_setup_lif() drm: rcar-du: Convert to the new VSP atomic API media: vsp1: drm: Remove vsp1_du_setup_lif() drivers/gpu/drm/rcar-du/rcar_du_crtc.c | 4 +- drivers/gpu/drm/rcar-du/rcar_du_vsp.c | 21 ++- drivers/gpu/drm/rcar-du/rcar_du_vsp.h | 2 + drivers/media/platform/vsp1/vsp1_drm.c | 188 ++++++++++++++++--------- include/media/vsp1.h | 26 ++-- 5 files changed, 159 insertions(+), 82 deletions(-)