Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2240760pxt; Sun, 8 Aug 2021 16:49:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgCvjGXrU3UBKBHL7aUK0f9laAvvS42KIzLHA4D48Fsii7TRznd39nMjPAmWkguV2qzmrf X-Received: by 2002:a05:6602:2253:: with SMTP id o19mr111425ioo.198.1628466557702; Sun, 08 Aug 2021 16:49:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628466557; cv=none; d=google.com; s=arc-20160816; b=UOXeD5h9y4HGJHH0Dycj27xS1sGOBz23gQN68Ig7KfEUFxaQhcWLT0LPfwzZ+AysVx 3Bz76rE3+2eev1W7kZK2+sm5HQkQItUIS6KmUkf52eWDe9LWeE7UMrVijtNQeQJwmLaI ryMNcTbAa6pKLd+8/LdaGtgFVTFTIiy3vDfGkXVg8UQkPHsYnD9FAXy8f5uIt793jVrQ +NeFzHFDNPb1fZWNVWok7jHz0BPwKeUS2p7t6BHpoZFoUd1em0m3NVpuMXdvAW4+mFXN he7YVQuEcCRY6aryV43r3s0x1KuWPWYnAoXdmk7dJfMvPYac1gER3YIJZGwb06N5aKec T3HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Qr2G+coTCdi86h2jCtwem4A3+YcTJHKpadfbVKNDvmY=; b=AxKuoyVRmKGtH81TGUjcJV4MpRClFvnj52QRMvoMlDqFjbR0X4YNWdbVZ+eyKFnS4L g7QgHNQ18TmuwL3BM30sAknLDJEB6iSpkLv08tmwRfRdSy3X7ELGU6TKs+c0pUGPzafF lTOio12V2rzMpmu8E3zBSTi5pJ+kinBq/QpM2DF8bqWuQcYRyvr0l9ePbN4SNB/gJvxy f/xmMT3vkqUfp4YXsAJV7W9zbhw2qDt+woVdwQiFVu9JTH3RpSdi+Jez4XE0GNXIh/Qe zAbyvdMe7m2OAQmTkHFibr+/ZXByjuLLnp/58UUG/5ZiY+UaUJIoNQrbXao8bxn8GEzV 6X2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Zfh9SdjT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l15si15882221jak.4.2021.08.08.16.49.06; Sun, 08 Aug 2021 16:49:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Zfh9SdjT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231168AbhHHXsI (ORCPT + 99 others); Sun, 8 Aug 2021 19:48:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:37268 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230034AbhHHXsI (ORCPT ); Sun, 8 Aug 2021 19:48:08 -0400 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.25.1