From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22105C43219 for ; Thu, 17 Mar 2022 14:39:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235216AbiCQOlD (ORCPT ); Thu, 17 Mar 2022 10:41:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234486AbiCQOk5 (ORCPT ); Thu, 17 Mar 2022 10:40:57 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B83CDA6F3; Thu, 17 Mar 2022 07:39:36 -0700 (PDT) X-UUID: 7c0b814030aa4ab5b3e707a09d2f0dd4-20220317 X-UUID: 7c0b814030aa4ab5b3e707a09d2f0dd4-20220317 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 851944695; Thu, 17 Mar 2022 22:39:29 +0800 Received: from mtkexhb01.mediatek.inc (172.21.101.102) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.792.15; Thu, 17 Mar 2022 22:39:28 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 17 Mar 2022 22:39:27 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 17 Mar 2022 22:39:27 +0800 From: Moudy Ho To: Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Hans Verkuil , Jernej Skrabec CC: Chun-Kuang Hu , Geert Uytterhoeven , Rob Landley , Laurent Pinchart , , , , , , Alexandre Courbot , , , , , AngeloGioacchino Del Regno , Maoguang Meng , daoyuan huang , Ping-Hsun Wu , , , , , , , , , , Subject: [PATCH v14 0/6] Add mutex support for MDP Date: Thu, 17 Mar 2022 22:39:20 +0800 Message-ID: <20220317143926.15835-1-moudy.ho@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Change since V13: - Rebase on linux-next tag:next-20220316 - Adjust the MUTEX MOD table structure and corresponding functions. - Adjust the definition style about 8183 MDP MOD. - Remove redundant definitions and enumerations. - Adjust the CMDQ operation in MUTEX to be backward compatible Change since V12: - Rebase on linux-next - Remove ISP related settings in MMSYS - Removed CMDQ operations previously used by MDP in MMSYS - Move mediatek MUTEX dt-binding path - Add additional property in MUTEX for CMDQ operations Change since V11: - Rebase on v5.17-rc6. [1]: https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/commit/?h=v5.17-next/soc&id=5f9b5b757e44de47ebdc116c14b90e3cc8bc7acb [2]: https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/commit/?h=v5.17-next/soc&id=831785f0e5b919c29e1bc5f9a74e9ebd38289e24 [3]: https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/commit/?h=v5.17-next/soc&id=15f1768365aed810826a61fef4a744437aa5b426 Change since v10: - For some ISP application scenarios, such as preview and recording at the same time. The routing table needs to be discarded, and the calculation result on the SCP side is used to write a suitable mux setting for 1 input and 2 output. - Adjust the GCE client register parsing method to avoid redundant warning logs. Change since v9: - Add API for MDP getting mutex mod. Hi, This patch splits mmsys and mutex settings from Media Data Path 3 (MDP3), and original mailling list list below: https://patchwork.kernel.org/project/linux-mediatek/cover/20211201095031.31606-1-moudy.ho@mediatek.com/ Corresponding settings and interfaces are added for MDP operation in the mutex drivers, which increases the independence of the modules Moudy Ho (6): soc: mediatek: mutex: add common interface to accommodate multiple modules operationg MUTEX soc: mediatek: mutex: add 8183 MUTEX MOD settings for MDP dt-bindings: soc: mediatek: move out common module from display folder dt-bindings: soc: mediatek: add gce-client-reg for MUTEX dts: arm64: mt8183: add GCE client property for Mediatek MUTEX soc: mediatek: mutex: add functions that operate registers by CMDQ .../mediatek/mediatek,mutex.yaml | 10 +- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 1 + drivers/soc/mediatek/mtk-mutex.c | 187 +++++++++++++++++- include/linux/soc/mediatek/mtk-mutex.h | 23 +++ 4 files changed, 219 insertions(+), 2 deletions(-) rename Documentation/devicetree/bindings/{display => soc}/mediatek/mediatek,mutex.yaml (83%) -- 2.18.0 From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 B5BF0C433EF for ; Thu, 17 Mar 2022 14:40:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=XrgDmqHlWc1bcDxfR6vjJTgRstkuRzXKi2VUYiolP94=; b=zrtyeYUAjRF7AC eqE1vcfebB9vR8T45EhIsvqKg4iUABnc+RQ01NwtyHi6MAxXk2Bxc1mxAJTQZHk8oF6xI1w9usohm Gm/alu1kF6OGMkZRz4FDY4rm4Ja5yZ9NaM46UgpeZ71QyTCnQkX/tuKB1jHU2SVXIdgW+XHvKH7JG 0VdjT06yu2n1vzTfsJyQ9IAJ4upK0MKlieiWyxFJJpf9PWiqLbzYoC3TthA1LFYSPk1c0fp03qwCQ f19NrgKhwkQhYE+WjzVSrCyu2xooiAaQKzG+5CsGenkF9UNummJVRTydjznbczvMGLur8znMGmiJd hyIyHIbuniPra+s7VunA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nUrJ3-00GSlC-QY; Thu, 17 Mar 2022 14:40:49 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nUrI4-00GS9M-PM; Thu, 17 Mar 2022 14:39:50 +0000 X-UUID: ba3c09e1d9f24b828c4d27b090f91167-20220317 X-UUID: ba3c09e1d9f24b828c4d27b090f91167-20220317 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1737740743; Thu, 17 Mar 2022 07:39:44 -0700 Received: from mtkexhb01.mediatek.inc (172.21.101.102) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 17 Mar 2022 07:39:42 -0700 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 17 Mar 2022 22:39:27 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 17 Mar 2022 22:39:27 +0800 From: Moudy Ho To: Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Hans Verkuil , Jernej Skrabec CC: Chun-Kuang Hu , Geert Uytterhoeven , Rob Landley , Laurent Pinchart , , , , , , Alexandre Courbot , , , , , AngeloGioacchino Del Regno , Maoguang Meng , daoyuan huang , Ping-Hsun Wu , , , , , , , , , , Subject: [PATCH v14 0/6] Add mutex support for MDP Date: Thu, 17 Mar 2022 22:39:20 +0800 Message-ID: <20220317143926.15835-1-moudy.ho@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220317_073948_865137_4F532E42 X-CRM114-Status: GOOD ( 12.66 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Change since V13: - Rebase on linux-next tag:next-20220316 - Adjust the MUTEX MOD table structure and corresponding functions. - Adjust the definition style about 8183 MDP MOD. - Remove redundant definitions and enumerations. - Adjust the CMDQ operation in MUTEX to be backward compatible Change since V12: - Rebase on linux-next - Remove ISP related settings in MMSYS - Removed CMDQ operations previously used by MDP in MMSYS - Move mediatek MUTEX dt-binding path - Add additional property in MUTEX for CMDQ operations Change since V11: - Rebase on v5.17-rc6. [1]: https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/commit/?h=v5.17-next/soc&id=5f9b5b757e44de47ebdc116c14b90e3cc8bc7acb [2]: https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/commit/?h=v5.17-next/soc&id=831785f0e5b919c29e1bc5f9a74e9ebd38289e24 [3]: https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/commit/?h=v5.17-next/soc&id=15f1768365aed810826a61fef4a744437aa5b426 Change since v10: - For some ISP application scenarios, such as preview and recording at the same time. The routing table needs to be discarded, and the calculation result on the SCP side is used to write a suitable mux setting for 1 input and 2 output. - Adjust the GCE client register parsing method to avoid redundant warning logs. Change since v9: - Add API for MDP getting mutex mod. Hi, This patch splits mmsys and mutex settings from Media Data Path 3 (MDP3), and original mailling list list below: https://patchwork.kernel.org/project/linux-mediatek/cover/20211201095031.31606-1-moudy.ho@mediatek.com/ Corresponding settings and interfaces are added for MDP operation in the mutex drivers, which increases the independence of the modules Moudy Ho (6): soc: mediatek: mutex: add common interface to accommodate multiple modules operationg MUTEX soc: mediatek: mutex: add 8183 MUTEX MOD settings for MDP dt-bindings: soc: mediatek: move out common module from display folder dt-bindings: soc: mediatek: add gce-client-reg for MUTEX dts: arm64: mt8183: add GCE client property for Mediatek MUTEX soc: mediatek: mutex: add functions that operate registers by CMDQ .../mediatek/mediatek,mutex.yaml | 10 +- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 1 + drivers/soc/mediatek/mtk-mutex.c | 187 +++++++++++++++++- include/linux/soc/mediatek/mtk-mutex.h | 23 +++ 4 files changed, 219 insertions(+), 2 deletions(-) rename Documentation/devicetree/bindings/{display => soc}/mediatek/mediatek,mutex.yaml (83%) -- 2.18.0 _______________________________________________ Linux-mediatek mailing list Linux-mediatek@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-mediatek From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 E13DBC433FE for ; Thu, 17 Mar 2022 14:42:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=iYXMeyJD1yVGLWUj50nRUhG164cZoVyHtOeWrLCs76E=; b=qaVqkROnmvzdT/ qyqrWLkNAE9bsdjHRMUlVRtqmg2474PKxcyli+N3elnSvZfy44UnZaI0ERKG2pDXOAWMQUioDGtDu 17h1TkUFIWDPUpGavrIn1Y78ohA2G8J0ih+ytWG6kryAu/bx1OkImG5f0QB7JZ1c26w4A1+SacKI3 EfPk+s/KoCdR2TmSm34bh1FwF687SZuzh1asubQ6ImwP3DuG2xEaJKGg3EtY3bexJ7kArNCc2QU0r 0zjrnOQdsHXSkW2xx0Y8qKec23qksV/xEQgkxx/3h7squ7W74lqAuVpp9+gAQpF5/Wwfa3de6Vo82 2UBdTIvioqFotNdfe9dA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nUrJ5-00GSlZ-SB; Thu, 17 Mar 2022 14:40:52 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nUrI4-00GS9M-PM; Thu, 17 Mar 2022 14:39:50 +0000 X-UUID: ba3c09e1d9f24b828c4d27b090f91167-20220317 X-UUID: ba3c09e1d9f24b828c4d27b090f91167-20220317 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1737740743; Thu, 17 Mar 2022 07:39:44 -0700 Received: from mtkexhb01.mediatek.inc (172.21.101.102) by MTKMBS62DR.mediatek.inc (172.29.94.18) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 17 Mar 2022 07:39:42 -0700 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkexhb01.mediatek.inc (172.21.101.102) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 17 Mar 2022 22:39:27 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 17 Mar 2022 22:39:27 +0800 From: Moudy Ho To: Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Hans Verkuil , Jernej Skrabec CC: Chun-Kuang Hu , Geert Uytterhoeven , Rob Landley , Laurent Pinchart , , , , , , Alexandre Courbot , , , , , AngeloGioacchino Del Regno , Maoguang Meng , daoyuan huang , Ping-Hsun Wu , , , , , , , , , , Subject: [PATCH v14 0/6] Add mutex support for MDP Date: Thu, 17 Mar 2022 22:39:20 +0800 Message-ID: <20220317143926.15835-1-moudy.ho@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220317_073948_865137_4F532E42 X-CRM114-Status: GOOD ( 12.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Change since V13: - Rebase on linux-next tag:next-20220316 - Adjust the MUTEX MOD table structure and corresponding functions. - Adjust the definition style about 8183 MDP MOD. - Remove redundant definitions and enumerations. - Adjust the CMDQ operation in MUTEX to be backward compatible Change since V12: - Rebase on linux-next - Remove ISP related settings in MMSYS - Removed CMDQ operations previously used by MDP in MMSYS - Move mediatek MUTEX dt-binding path - Add additional property in MUTEX for CMDQ operations Change since V11: - Rebase on v5.17-rc6. [1]: https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/commit/?h=v5.17-next/soc&id=5f9b5b757e44de47ebdc116c14b90e3cc8bc7acb [2]: https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/commit/?h=v5.17-next/soc&id=831785f0e5b919c29e1bc5f9a74e9ebd38289e24 [3]: https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux.git/commit/?h=v5.17-next/soc&id=15f1768365aed810826a61fef4a744437aa5b426 Change since v10: - For some ISP application scenarios, such as preview and recording at the same time. The routing table needs to be discarded, and the calculation result on the SCP side is used to write a suitable mux setting for 1 input and 2 output. - Adjust the GCE client register parsing method to avoid redundant warning logs. Change since v9: - Add API for MDP getting mutex mod. Hi, This patch splits mmsys and mutex settings from Media Data Path 3 (MDP3), and original mailling list list below: https://patchwork.kernel.org/project/linux-mediatek/cover/20211201095031.31606-1-moudy.ho@mediatek.com/ Corresponding settings and interfaces are added for MDP operation in the mutex drivers, which increases the independence of the modules Moudy Ho (6): soc: mediatek: mutex: add common interface to accommodate multiple modules operationg MUTEX soc: mediatek: mutex: add 8183 MUTEX MOD settings for MDP dt-bindings: soc: mediatek: move out common module from display folder dt-bindings: soc: mediatek: add gce-client-reg for MUTEX dts: arm64: mt8183: add GCE client property for Mediatek MUTEX soc: mediatek: mutex: add functions that operate registers by CMDQ .../mediatek/mediatek,mutex.yaml | 10 +- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 1 + drivers/soc/mediatek/mtk-mutex.c | 187 +++++++++++++++++- include/linux/soc/mediatek/mtk-mutex.h | 23 +++ 4 files changed, 219 insertions(+), 2 deletions(-) rename Documentation/devicetree/bindings/{display => soc}/mediatek/mediatek,mutex.yaml (83%) -- 2.18.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel