From patchwork Sun Aug 8 23:47:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chun-Kuang Hu X-Patchwork-Id: 12425149 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 06775C4338F for ; Sun, 8 Aug 2021 23:47:52 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id ADA9C60F42 for ; Sun, 8 Aug 2021 23:47:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org ADA9C60F42 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B4D1A898CA; Sun, 8 Aug 2021 23:47:50 +0000 (UTC) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7E4B3898C7 for ; Sun, 8 Aug 2021 23:47:49 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 21A5560F0F; Sun, 8 Aug 2021 23:47:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628466468; bh=vAX7ct7i52crHEpDhW8a+hOoXWU7tRkGXmsRCoFh/F0=; h=From:To:Cc:Subject:Date:From; b=Zfh9SdjTpJXAXQZziq3FKDbPJgWbqPcZEsHdxHS4tv+OhIwlF4ywJMYdjXuaU75Om po/10SD6SPkBi93nV5sVohojN3i786MuuheAzWLYi2+jmoNEHnOyQjn9Dq5Xn35Mei +CQ0QawA3evvh7TSmLkGBIaK2Cdrbx5sIQmKPJQStWGV3Q7Rc+TRsLs6wEaXpYq1eQ 2Os3Q8yj7xXwNFWNrQhoFzLTtoO6Me7Eh7oaGx5JWAKnK3tZVZcSv05mEEypmApt0q pTFjRJmdssNv37FHKA3UJGKGNSQlSmdflRovjhSICi7fLQhgaCbnZ+cag6L5jMThcC WEf9R1OdAKRww== From: Chun-Kuang Hu To: Philipp Zabel , David Airlie , Daniel Vetter Cc: Yongqiang Niu , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, Chun-Kuang Hu Subject: [PATCH v2 0/4] CMDQ refinement of Mediatek DRM driver Date: Mon, 9 Aug 2021 07:47:29 +0800 Message-Id: <20210808234733.14782-1-chunkuang.hu@kernel.org> 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" These refinements include using standard mailbox callback interface, timeout detection, and a fixed cmdq_handle. Changes in v2: 1. Define mtk_drm_cmdq_pkt_create() and mtk_drm_cmdq_pkt_destroy() when CONFIG_MTK_CMDQ is reachable. Chun-Kuang Hu (4): drm/mediatek: Use mailbox rx_callback instead of cmdq_task_cb drm/mediatek: Remove struct cmdq_client drm/mediatek: Detect CMDQ execution timeout drm/mediatek: Add cmdq_handle in mtk_crtc drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 110 ++++++++++++++++++++---- 1 file changed, 91 insertions(+), 19 deletions(-)