From patchwork Fri Sep 2 17:08:16 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 12964452 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 18AD0ECAAD5 for ; Fri, 2 Sep 2022 17:08:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E3EF710E6B7; Fri, 2 Sep 2022 17:08:36 +0000 (UTC) Received: from relmlie6.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by gabe.freedesktop.org (Postfix) with ESMTP id 8932B10E469 for ; Fri, 2 Sep 2022 17:08:34 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.93,283,1654527600"; d="scan'208";a="133510976" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 03 Sep 2022 02:08:32 +0900 Received: from localhost.localdomain (unknown [10.226.92.67]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id 1E01440078DC; Sat, 3 Sep 2022 02:08:28 +0900 (JST) From: Biju Das To: David Airlie , Daniel Vetter Subject: [PATCH v2 00/10] Add RCar DU lib support Date: Fri, 2 Sep 2022 18:08:16 +0100 Message-Id: <20220902170826.599262-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chris Paterson , Geert Uytterhoeven , Prabhakar Mahadev Lad , dri-devel@lists.freedesktop.org, Biju Das , linux-renesas-soc@vger.kernel.org, Kieran Bingham , Laurent Pinchart , Biju Das Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Both RZ/G2L and RCar display system uses similar hardware pipeline for display ie, it uses FCPV, VSPD and DU. Both FCPV and VSPD are almost similar, but DU there are some differences like it does not have plane/group registers. Since the pipeline and software architecture are similar, we can reuse the DU code for RCar to RZ/G2L as well. This patch series adds RCar DU lib support(Encoder, vsp and KMS) by moving common codes with some trivial changes to the lib. The subsequent patch series will add support for RZ/G2L DU. Note: * This patch series is based on drm-misc-next and du-next * The KConfig and Make file depend upon [1] [1] https://patchwork.kernel.org/project/linux-renesas-soc/patch/20220829091901.641784-3-biju.das.jz@bp.renesas.com/ v1->v2: * Rebased on drm-misc-next and DU-next. * Fixed the warning reported by bot for patch#2. Biju Das (10): drm: rcar-du: Add RZ/G2L reset and clocks to struct rcar_du_crtc drm: rcar-du: Add encoder lib support drm: rcar-du: Add kms lib support drm: rcar-du: Add vsp lib support drm: rcar-du: Move rcar_du_vsp_atomic_begin() drm: rcar-du: Move rcar_du_vsp_atomic_flush() drm: rcar-du: Move vsp rcar_du_vsp_{map,unmap}_fb() drm: rcar-du: Move rcar_du_dumb_create() drm: rcar-du: Move rcar_du_gem_prime_import_sg_table() drm: rcar-du: Add rcar_du_lib_vsp_init() drivers/gpu/drm/rcar-du/Kconfig | 10 + drivers/gpu/drm/rcar-du/Makefile | 4 + drivers/gpu/drm/rcar-du/rcar_du_crtc.h | 10 + drivers/gpu/drm/rcar-du/rcar_du_encoder.c | 117 +----- drivers/gpu/drm/rcar-du/rcar_du_encoder.h | 14 +- drivers/gpu/drm/rcar-du/rcar_du_encoder_lib.c | 138 +++++++ drivers/gpu/drm/rcar-du/rcar_du_encoder_lib.h | 30 ++ drivers/gpu/drm/rcar-du/rcar_du_kms.c | 358 ----------------- drivers/gpu/drm/rcar-du/rcar_du_kms.h | 29 +- drivers/gpu/drm/rcar-du/rcar_du_kms_lib.c | 379 ++++++++++++++++++ drivers/gpu/drm/rcar-du/rcar_du_kms_lib.h | 41 ++ drivers/gpu/drm/rcar-du/rcar_du_vsp.c | 258 +----------- drivers/gpu/drm/rcar-du/rcar_du_vsp.h | 26 +- drivers/gpu/drm/rcar-du/rcar_du_vsp_lib.c | 286 +++++++++++++ drivers/gpu/drm/rcar-du/rcar_du_vsp_lib.h | 52 +++ 15 files changed, 961 insertions(+), 791 deletions(-) create mode 100644 drivers/gpu/drm/rcar-du/rcar_du_encoder_lib.c create mode 100644 drivers/gpu/drm/rcar-du/rcar_du_encoder_lib.h create mode 100644 drivers/gpu/drm/rcar-du/rcar_du_kms_lib.c create mode 100644 drivers/gpu/drm/rcar-du/rcar_du_kms_lib.h create mode 100644 drivers/gpu/drm/rcar-du/rcar_du_vsp_lib.c create mode 100644 drivers/gpu/drm/rcar-du/rcar_du_vsp_lib.h