From patchwork Tue Jan 4 09:17:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moudy Ho X-Patchwork-Id: 12703297 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 D5CF4C433F5 for ; Tue, 4 Jan 2022 09:25:30 +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=Gg5gcWpr9Kofz+bY0YUmNjvgpcQjuwzvrjn4kDhX9BY=; b=aCl+zyKhcTQ0YD 7cPiunwYl5xUNRvT8ZMpZO21tp1yvuJ6sXcxirihoHjVnAD2kDJtK6uFC0CxClLe8XupVGwqekgVU S9AbZZJdv00bwGyUxUFMAlyOz5sfUriv3hgRRTb5Td1AMVA8gw4S2DKor54Pzyt7PTB3au6BHMWsl vIC5MsMX3/b/v3sr+Uc/YtiMPzwJLsQgtJiSpH/Tav96NrXCVjtjXDmtMu5/6IKrB63HKAhALKfEs LqyO++c5lab7bun1vBCja7e3SqMogeNnXBJCXkmkJphjMZmrronlILMc/ft0nXu0/konAhR1lgX59 rH+xz7tqSI7lBVziAtqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n4g4K-00AzEz-9t; Tue, 04 Jan 2022 09:25:24 +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 1n4g3g-00Az3j-Kb; Tue, 04 Jan 2022 09:24:46 +0000 X-UUID: ea96e61f4bd54b339402a69833804b00-20220104 X-UUID: ea96e61f4bd54b339402a69833804b00-20220104 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 1379061304; Tue, 04 Jan 2022 02:24:43 -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; Tue, 4 Jan 2022 01:17:18 -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; Tue, 4 Jan 2022 17:17:16 +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; Tue, 4 Jan 2022 17:17:16 +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 v11 0/4] Add mmsys and mutex support for MDP Date: Tue, 4 Jan 2022 17:17:08 +0800 Message-ID: <20220104091712.25670-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-20220104_012444_713169_B5084169 X-CRM114-Status: GOOD ( 13.88 ) 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: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org 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 mmsys and mutex drivers, which increases the independence of the modules Moudy Ho (4): soc: mediatek: mmsys: add CMDQ write register function soc: mediatek: mmsys: add support for ISP control soc: mediatek: mutex: add support for MDP soc: mediatek: mutex: add functions that operate registers by CMDQ drivers/soc/mediatek/Kconfig | 1 + drivers/soc/mediatek/mt8183-mmsys.h | 26 +++++ drivers/soc/mediatek/mtk-mmsys.c | 145 +++++++++++++++++++++++++ drivers/soc/mediatek/mtk-mmsys.h | 2 + drivers/soc/mediatek/mtk-mutex.c | 140 +++++++++++++++++++++++- include/linux/soc/mediatek/mtk-mmsys.h | 80 ++++++++++++++ include/linux/soc/mediatek/mtk-mutex.h | 9 ++ 7 files changed, 401 insertions(+), 2 deletions(-)