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: 10948723 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 CF9271395 for ; Fri, 17 May 2019 22:31:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5DF42846C for ; Fri, 17 May 2019 22:31:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A9C98284B5; Fri, 17 May 2019 22:31:50 +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 3172D2846C for ; Fri, 17 May 2019 22:31:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729168AbfEQWbt (ORCPT ); Fri, 17 May 2019 18:31:49 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:54374 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727133AbfEQWbt (ORCPT ); Fri, 17 May 2019 18:31:49 -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 93C662F3; Sat, 18 May 2019 00:31:47 +0200 (CEST) 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= From: Kieran Bingham To: Laurent Pinchart , linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: Kieran Bingham 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 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 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(-)