Message ID | 20241219170800.2957-1-jason-jh.lin@mediatek.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org> 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 9D7A5E7718A for <linux-mediatek@archiver.kernel.org>; Thu, 19 Dec 2024 18:10:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=r+nBjONYIuOND47X7/pY5egAoajtHsGsXRoPywWas48=; b=ku4oRO23UEGv+ZVg8nQOhVb8gq Tc+/Ii9tv4gtvXHqV5jLAIo+xqbWGY5P3KZiAAb6qMuBeQV7kjjiptG45+WWiPbTmdFPAIeKbjcOD WiX4rB1eK7bRIoJZHC1am51U/HVqlYIK2TdYF1dHZM8CV6bF/CjRoPxzeICIFkoahXmLWnwpgVgWD 3liRn0uRq70JF7M3f2DkvPjiT8j5NpgteOaygOJm7m9Z0kkRhL/RCP5lc6Tb6SiSvUjYq0cbxZFEA oN/SWovVAnIf+yJavj8ELzb0MtNzozIMC0n4TKzVDH49iEnUKJVxJm/BS8SiEmTi2KZEsJlsDaxrI bYY+qRnw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tOKye-00000002hKj-1Jac; Thu, 19 Dec 2024 18:10:24 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tOK0b-00000002Tsa-1qNR; Thu, 19 Dec 2024 17:08:22 +0000 X-UUID: cfaf7b7abe2b11ef9048ed6ed365623b-20241219 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=r+nBjONYIuOND47X7/pY5egAoajtHsGsXRoPywWas48=; b=gybgXzGQ3YifSTOLFXPOCE3HUk80w5rISwC7UEiv0bxjqIcsXl8kSSpeDbNOJUgsJSBK7KZQsVtNDwt89KjRgMfBzSNqqs60zsD+WsAiD9bFD+yz0S5t53iedVr59Wn5dtHhSPD88K0/MULIQHN2cE+wIQWqz4GY64gBkRexYPE=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.45,REQID:f3c3dc27-a458-403f-8ebe-a9b92e4b2f48,IP:0,U RL:0,TC:0,Content:0,EDM:-30,RT:-32768,SF:-32768,FILE:0,BULK:-32768,RULE:Re lease_Ham,ACTION:release,TS:-30 X-CID-META: VersionHash:6493067,CLOUDID:3d8b3e3c-e809-4df3-83cd-88f012b9e9ba,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:nil,TC:nil,Content:0,EDM:2,IP:nil,UR L:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,S PR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: cfaf7b7abe2b11ef9048ed6ed365623b-20241219 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw02.mediatek.com (envelope-from <jason-jh.lin@mediatek.com>) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1363548350; Thu, 19 Dec 2024 10:08:04 -0700 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 20 Dec 2024 01:08:01 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 20 Dec 2024 01:08:01 +0800 From: Jason-JH.Lin <jason-jh.lin@mediatek.com> To: Jassi Brar <jassisinghbrar@gmail.com>, Chun-Kuang Hu <chunkuang.hu@kernel.org>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Matthias Brugger <matthias.bgg@gmail.com>, Mauro Carvalho Chehab <mchehab@kernel.org> CC: David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>, <dri-devel@lists.freedesktop.org>, <linux-mediatek@lists.infradead.org>, <linux-arm-kernel@lists.infradead.org>, <linux-media@vger.kernel.org>, "Jason-JH . Lin" <jason-jh.lin@mediatek.com>, Singo Chang <singo.chang@mediatek.com>, Nancy Lin <nancy.lin@mediatek.com>, Moudy Ho <moudy.ho@mediatek.com>, Xavier Chang <xavier.chang@mediatek.com>, <Project_Global_Chrome_Upstream_Group@mediatek.com>, Jason-jh Lin <jason-jh.lin@mediatek.corp-partner.google.com> Subject: [PATCH v3 0/7] Add GCE support for MT8196 Date: Fri, 20 Dec 2024 01:07:53 +0800 Message-ID: <20241219170800.2957-1-jason-jh.lin@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241219_090821_484178_D497AEE5 X-CRM114-Status: GOOD ( 14.26 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-mediatek.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mediatek/> List-Post: <mailto:linux-mediatek@lists.infradead.org> List-Help: <mailto:linux-mediatek-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=subscribe> Sender: "Linux-mediatek" <linux-mediatek-bounces@lists.infradead.org> Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org |
Series |
Add GCE support for MT8196
|
expand
|
From: Jason-jh Lin <jason-jh.lin@mediatek.corp-partner.google.com> This patch series adds support for the MediaTek MT8196 SoC in the CMDQ driver and related subsystems. The changes include adding compatible names and properties, updating driver data to accommodate hardware changes, and modifying the usage of CMDQ APIs to support non-subsys ID hardware. --- Change in v3: 1. Merge 2 dt-bindings pathes together and add more detail commit message. 2. Change type u32 to phys_addr_t for pa_base of struct cmdq_client_reg. 3. Remove cmdq_subsys_is_valid() and subsys_num in CMDQ driver. 4. Add CMDQ_SUBSYS_INVALID to check subsys instead of using cmdq_subsys_is_invalid(). 5. Make use of CMDQ_THR_SPR0 define to the parameter of CMDQ APIs. 6. Rebase on the new MACRO in mtk-mdp3-comp.h. Change in v2: 1. Remove the constant and fix warning in dt-bindings. 2. Remove the pa_base parameter of CMDQ APIs and related modification. 3. Move subsys checking to client drivers and use 2 alternative CMDQ APIs to achieve the same functionality. --- Jason-JH.Lin (7): dt-bindings: mailbox: mediatek: Add MT8196 support for gce-mailbox mailbox: mtk-cmdq: Add driver data to support for MT8196 soc: mediatek: mtk-cmdq: Add pa_base parsing for unsupported subsys ID hardware soc: mediatek: mtk-cmdq: Add mminfra_offset compatibility for DRAM address soc: mediatek: Add programming flow for unsupported subsys ID hardware drm/mediatek: Add programming flow for unsupported subsys ID hardware media: mediatek: mdp3: Add programming flow for unsupported subsys ID hardware .../mailbox/mediatek,gce-mailbox.yaml | 4 + drivers/gpu/drm/mediatek/mtk_ddp_comp.c | 33 +- drivers/mailbox/mtk-cmdq-mailbox.c | 90 +- .../platform/mediatek/mdp3/mtk-mdp3-cmdq.c | 18 +- .../platform/mediatek/mdp3/mtk-mdp3-comp.h | 79 +- drivers/soc/mediatek/mtk-cmdq-helper.c | 53 +- drivers/soc/mediatek/mtk-mmsys.c | 14 +- drivers/soc/mediatek/mtk-mutex.c | 11 +- .../dt-bindings/mailbox/mediatek,mt8196-gce.h | 1415 +++++++++++++++++ include/linux/mailbox/mtk-cmdq-mailbox.h | 2 + include/linux/soc/mediatek/mtk-cmdq.h | 3 + 11 files changed, 1679 insertions(+), 43 deletions(-) create mode 100644 include/dt-bindings/mailbox/mediatek,mt8196-gce.h