Message ID | 20230912075805.11432-1-moudy.ho@mediatek.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9ecd:0:b0:3f2:4152:657d with SMTP id t13csp521462vqx; Tue, 12 Sep 2023 09:17:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH6jku31e/LRNuoLIQ1Ba/PRn/NSlGpSc/w2ofaFs4PCkvadVmTXIoP2PqO336BbREI6HQj X-Received: by 2002:a05:6a00:13aa:b0:68e:2822:fb36 with SMTP id t42-20020a056a0013aa00b0068e2822fb36mr339348pfg.8.1694535461236; Tue, 12 Sep 2023 09:17:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694535461; cv=none; d=google.com; s=arc-20160816; b=QxMShEpx0sQI3qOJ4UGPAOz9oeNOfqu8dH5w0MusjTzm2c5cDbknHQlh9tO3y9lNeD pD2unPMDPx3AqT+uGx7Gh4588mDe5YjbXvzDZTIIiXYWkODDTxJmFXe6su8e+nubFW/J KwbjU+Jtu+/CGaNVZO3vJkfEo6s4KjNn8Ad5qYBdIDHt9k3aVHKMn66gHRQidlzkM0wS xMElu2x0hjL/jtmSDayGvk2IG6PrzHJZLucWBeW9Sbye6slaT8NvUVxpJ6ORECpnK1tN WU7B7uvQj44NS/lFauztrSJDPl9oZDiBR5YAAFlkOMJYL1ZPLoZ7sQ3+mzE0bWA3urep Yt9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=gZL7iqex1BPiM40l8UbNLUZwiQSnwgB+HQLPiQ5jV+M=; fh=vqp8jHC+f9Z7aNEAOYJxMhxN07QjXX8INWDDKODz1V8=; b=turabiH20hmL7Fj8xkiCGJ5hXJs+cEph7nq8nxW5zResN5/RofPXLvLw3d39hrUOHd xC6JGX02vjG28Nb2PB3R/Kqqo/EfGjZytb/oj3Kbw8ytFOcUXPG0LG0r9vFgNhTiJnMU hkJ0lGwmxERrsVdeNG6YUUyOMtfZiu8ksiFqC3I5zvs/yaJ8kF/ilQWKVHC7pyxFng3u hjb1NFEzEkm9cG+zkQezCADpiGZYTILylecwJMBAAjCyA+FXvnuuBqwOdzjm9j4O8kfb PvPx/qqliIU5e5oV487aaVInzBPIuUo9flUbpJM6Q6bcfFU7Fu/gE/H7JS5HCzb5vlz5 nGjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="bcxWN8/s"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id cj16-20020a056a00299000b0068fbe0237fdsi4193820pfb.123.2023.09.12.09.17.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 09:17:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="bcxWN8/s"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 974A581CEC72; Tue, 12 Sep 2023 02:31:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233728AbjILJbi (ORCPT <rfc822;pwkd43@gmail.com> + 37 others); Tue, 12 Sep 2023 05:31:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50156 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233558AbjILJbf (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 12 Sep 2023 05:31:35 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4F10AA; Tue, 12 Sep 2023 02:31:30 -0700 (PDT) X-UUID: 2494a6ce514f11ee8051498923ad61e6-20230912 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=gZL7iqex1BPiM40l8UbNLUZwiQSnwgB+HQLPiQ5jV+M=; b=bcxWN8/scLaZewZDbFomX/jP/je0hghwI+mJXKwTOVFVrDOBiL8j/f9wGaC2bULZFti09F5DokcooQxBpIYJcZ/x8YScaB9kuccyfNIaA8NUgDnMntvxLXnR2wrVa2yMt+Z3GY/PoeSN4WZ/LmRuTPjU2DDfa5g/pZQOr9WZtjk=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.31,REQID:255cc7b7-1ac8-4ad5-b35c-a1f626ef3eb6,IP:0,U RL:0,TC:0,Content:-25,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:-25 X-CID-META: VersionHash:0ad78a4,CLOUDID:c94ed813-4929-4845-9571-38c601e9c3c9,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,SPR:NO, DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_ULS,TF_CID_SPAM_SNR X-UUID: 2494a6ce514f11ee8051498923ad61e6-20230912 Received: from mtkmbs14n2.mediatek.inc [(172.21.101.76)] by mailgw02.mediatek.com (envelope-from <moudy.ho@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1399160006; Tue, 12 Sep 2023 17:31:25 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) by mtkmbs11n1.mediatek.inc (172.21.101.185) with ShadowRedundancy id 15.2.1118.7; Tue, 12 Sep 2023 09:31:20 +0000 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) 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; Tue, 12 Sep 2023 15:58:06 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Tue, 12 Sep 2023 15:58:06 +0800 From: Moudy Ho <moudy.ho@mediatek.com> To: Chun-Kuang Hu <chunkuang.hu@kernel.org>, Philipp Zabel <p.zabel@pengutronix.de>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Mauro Carvalho Chehab <mchehab@kernel.org>, Matthias Brugger <matthias.bgg@gmail.com>, Hans Verkuil <hverkuil-cisco@xs4all.nl> CC: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, <dri-devel@lists.freedesktop.org>, <linux-mediatek@lists.infradead.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-media@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, Moudy Ho <moudy.ho@mediatek.com> Subject: [PATCH v5 00/14] add support MDP3 on MT8195 platform Date: Tue, 12 Sep 2023 15:57:51 +0800 Message-ID: <20230912075805.11432-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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 12 Sep 2023 02:31:58 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1776837281871189699 X-GMAIL-MSGID: 1776849215639932687 |
Series |
add support MDP3 on MT8195 platform
|
|
Message
Moudy Ho (何宗原)
Sept. 12, 2023, 7:57 a.m. UTC
Changes since v4: - Rebase on v6.6-rc1 - Remove any unnecessary DTS settings. - Adjust the usage of MOD and clock in blending components. Changes since v3: - Depend on : [1] https://patchwork.kernel.org/project/linux-media/list/?series=719841 - Suggested by Krzysztof, integrating all newly added bindings for the mt8195 MDP3 into the file "mediatek,mt8195-mdp3.yaml". - Revise MDP3 nodes with generic names. Changes since v2: - Depend on : [1] MMSYS/MUTEX: https://patchwork.kernel.org/project/linux-mediatek/list/?series=711592 [2] MDP3: https://patchwork.kernel.org/project/linux-mediatek/list/?series=711618 - Suggested by Rob to revise MDP3 bindings to pass dtbs check - Add parallel paths feature. - Add blended components settings. Changes since v1: - Depend on : [1] MDP3 : https://patchwork.kernel.org/project/linux-mediatek/list/?series=698872 [2] MMSYS/MUTEX: https://patchwork.kernel.org/project/linux-mediatek/list/?series=684959 - Fix compilation failure due to use of undeclared identifier in file "mtk-mdp3-cmdq.c" Hello, This patch is used to add support for MDP3 on the MT8195 platform that contains more picture quality components, and can arrange more pipelines through two sets of MMSYS and MUTEX respectively. Moudy Ho (14): arm64: dts: mediatek: mt8183: correct MDP3 DMA-related nodes arm64: dts: mediatek: mt8195: add MDP3 nodes media: platform: mtk-mdp3: add support second sets of MMSYS media: platform: mtk-mdp3: add support second sets of MUTEX media: platform: mtk-mdp3: introduce more pipelines from MT8195 media: platform: mtk-mdp3: introduce more MDP3 components media: platform: mtk-mdp3: add checks for dummy components media: platform: mtk-mdp3: avoid multiple driver registrations media: platform: mtk-mdp3: extend GCE event waiting in RDMA and WROT media: platform: mtk-mdp3: add support for blending multiple components media: platform: mtk-mdp3: add mt8195 platform configuration media: platform: mtk-mdp3: add mt8195 shared memory configurations media: platform: mtk-mdp3: add mt8195 MDP3 component settings media: platform: mtk-mdp3: add support for parallel pipe to improve FPS arch/arm64/boot/dts/mediatek/mt8183.dtsi | 6 +- arch/arm64/boot/dts/mediatek/mt8195.dtsi | 378 ++++++++ .../platform/mediatek/mdp3/mdp_cfg_data.c | 729 ++++++++++++++- .../platform/mediatek/mdp3/mdp_reg_aal.h | 25 + .../platform/mediatek/mdp3/mdp_reg_color.h | 31 + .../media/platform/mediatek/mdp3/mdp_reg_fg.h | 23 + .../platform/mediatek/mdp3/mdp_reg_hdr.h | 31 + .../platform/mediatek/mdp3/mdp_reg_merge.h | 25 + .../platform/mediatek/mdp3/mdp_reg_ovl.h | 25 + .../platform/mediatek/mdp3/mdp_reg_pad.h | 21 + .../platform/mediatek/mdp3/mdp_reg_rdma.h | 24 + .../platform/mediatek/mdp3/mdp_reg_rsz.h | 2 + .../platform/mediatek/mdp3/mdp_reg_tdshp.h | 34 + .../platform/mediatek/mdp3/mdp_reg_wrot.h | 8 + .../platform/mediatek/mdp3/mdp_sm_mt8195.h | 283 ++++++ .../platform/mediatek/mdp3/mtk-img-ipi.h | 4 + .../platform/mediatek/mdp3/mtk-mdp3-cfg.h | 2 + .../platform/mediatek/mdp3/mtk-mdp3-cmdq.c | 447 +++++++-- .../platform/mediatek/mdp3/mtk-mdp3-cmdq.h | 1 + .../platform/mediatek/mdp3/mtk-mdp3-comp.c | 860 +++++++++++++++++- .../platform/mediatek/mdp3/mtk-mdp3-comp.h | 93 +- .../platform/mediatek/mdp3/mtk-mdp3-core.c | 103 ++- .../platform/mediatek/mdp3/mtk-mdp3-core.h | 33 +- .../platform/mediatek/mdp3/mtk-mdp3-m2m.c | 15 + .../platform/mediatek/mdp3/mtk-mdp3-regs.c | 18 + .../platform/mediatek/mdp3/mtk-mdp3-regs.h | 1 + .../platform/mediatek/mdp3/mtk-mdp3-vpu.c | 3 +- 27 files changed, 3051 insertions(+), 174 deletions(-) create mode 100644 drivers/media/platform/mediatek/mdp3/mdp_reg_aal.h create mode 100644 drivers/media/platform/mediatek/mdp3/mdp_reg_color.h create mode 100644 drivers/media/platform/mediatek/mdp3/mdp_reg_fg.h create mode 100644 drivers/media/platform/mediatek/mdp3/mdp_reg_hdr.h create mode 100644 drivers/media/platform/mediatek/mdp3/mdp_reg_merge.h create mode 100644 drivers/media/platform/mediatek/mdp3/mdp_reg_ovl.h create mode 100644 drivers/media/platform/mediatek/mdp3/mdp_reg_pad.h create mode 100644 drivers/media/platform/mediatek/mdp3/mdp_reg_tdshp.h create mode 100644 drivers/media/platform/mediatek/mdp3/mdp_sm_mt8195.h
Comments
Il 12/09/23 11:37, Chen-Yu Tsai ha scritto: > On Tue, Sep 12, 2023 at 5:00 PM AngeloGioacchino Del Regno > <angelogioacchino.delregno@collabora.com> wrote: >> >> Il 12/09/23 09:57, Moudy Ho ha scritto: >>> Changes since v4: >>> - Rebase on v6.6-rc1 >>> - Remove any unnecessary DTS settings. >>> - Adjust the usage of MOD and clock in blending components. >>> >>> Changes since v3: >>> - Depend on : >>> [1] https://patchwork.kernel.org/project/linux-media/list/?series=719841 >>> - Suggested by Krzysztof, integrating all newly added bindings for >>> the mt8195 MDP3 into the file "mediatek,mt8195-mdp3.yaml". >>> - Revise MDP3 nodes with generic names. >>> >>> Changes since v2: >>> - Depend on : >>> [1] MMSYS/MUTEX: https://patchwork.kernel.org/project/linux-mediatek/list/?series=711592 >>> [2] MDP3: https://patchwork.kernel.org/project/linux-mediatek/list/?series=711618 >>> - Suggested by Rob to revise MDP3 bindings to pass dtbs check >>> - Add parallel paths feature. >>> - Add blended components settings. >>> >>> Changes since v1: >>> - Depend on : >>> [1] MDP3 : https://patchwork.kernel.org/project/linux-mediatek/list/?series=698872 >>> [2] MMSYS/MUTEX: https://patchwork.kernel.org/project/linux-mediatek/list/?series=684959 >>> - Fix compilation failure due to use of undeclared identifier in file "mtk-mdp3-cmdq.c" >>> >>> Hello, >>> >>> This patch is used to add support for MDP3 on the MT8195 platform that >>> contains more picture quality components, and can arrange more pipelines >>> through two sets of MMSYS and MUTEX respectively. >>> >>> Moudy Ho (14): >>> arm64: dts: mediatek: mt8183: correct MDP3 DMA-related nodes >>> arm64: dts: mediatek: mt8195: add MDP3 nodes >> >> Please send the DTS patches separately, those go through a different maintainer. > > I thought most people prefer the _full_ view in a patchset? > Yeah but those going through a different maintainer makes it more straightforward to pick; besides, essentially, you can also get a full view with dt-bindings patches instead of devicetrees, as the latter are "constructed from" bindings anyway. Moreover, it would be definitely nice to add a link to the devicetree series in the cover letter of this series, so that people *do* get a full overview by checking both series :-) Cheers! >> P.S.: The dt-bindings patch can be sent inside of this series, please do that. >> >> Thanks! >> Angelo >> >>
On Tue, Sep 12, 2023 at 5:43 PM AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> wrote: > > Il 12/09/23 11:37, Chen-Yu Tsai ha scritto: > > On Tue, Sep 12, 2023 at 5:00 PM AngeloGioacchino Del Regno > > <angelogioacchino.delregno@collabora.com> wrote: > >> > >> Il 12/09/23 09:57, Moudy Ho ha scritto: > >>> Changes since v4: > >>> - Rebase on v6.6-rc1 > >>> - Remove any unnecessary DTS settings. > >>> - Adjust the usage of MOD and clock in blending components. > >>> > >>> Changes since v3: > >>> - Depend on : > >>> [1] https://patchwork.kernel.org/project/linux-media/list/?series=719841 > >>> - Suggested by Krzysztof, integrating all newly added bindings for > >>> the mt8195 MDP3 into the file "mediatek,mt8195-mdp3.yaml". > >>> - Revise MDP3 nodes with generic names. > >>> > >>> Changes since v2: > >>> - Depend on : > >>> [1] MMSYS/MUTEX: https://patchwork.kernel.org/project/linux-mediatek/list/?series=711592 > >>> [2] MDP3: https://patchwork.kernel.org/project/linux-mediatek/list/?series=711618 > >>> - Suggested by Rob to revise MDP3 bindings to pass dtbs check > >>> - Add parallel paths feature. > >>> - Add blended components settings. > >>> > >>> Changes since v1: > >>> - Depend on : > >>> [1] MDP3 : https://patchwork.kernel.org/project/linux-mediatek/list/?series=698872 > >>> [2] MMSYS/MUTEX: https://patchwork.kernel.org/project/linux-mediatek/list/?series=684959 > >>> - Fix compilation failure due to use of undeclared identifier in file "mtk-mdp3-cmdq.c" > >>> > >>> Hello, > >>> > >>> This patch is used to add support for MDP3 on the MT8195 platform that > >>> contains more picture quality components, and can arrange more pipelines > >>> through two sets of MMSYS and MUTEX respectively. > >>> > >>> Moudy Ho (14): > >>> arm64: dts: mediatek: mt8183: correct MDP3 DMA-related nodes > >>> arm64: dts: mediatek: mt8195: add MDP3 nodes > >> > >> Please send the DTS patches separately, those go through a different maintainer. > > > > I thought most people prefer the _full_ view in a patchset? > > > > Yeah but those going through a different maintainer makes it more straightforward > to pick; besides, essentially, you can also get a full view with dt-bindings > patches instead of devicetrees, as the latter are "constructed from" bindings > anyway. Sure, but testing, especially by people not in the recipients or CC list, is a bit painful when the full set of patches isn't bundled together. Having them bundled together shows what the submitter tested and makes it easier for others to reproduce. AFAIK other ARM platforms have been sending patches all grouped together. It's MediaTek that has been different, as they normally have (for Chromebooks) a system integration engineer handling the device tree stuff, while component driver owners just handle the drivers, and by extension, the DT bindings. > Moreover, it would be definitely nice to add a link to the devicetree series > in the cover letter of this series, so that people *do* get a full overview > by checking both series :-) Most maintainers seem to know what to do: apply the subset destined for their tree. At least the subsystems that frequently deal with DT-based platforms anyway. ChenYu > Cheers! > > >> P.S.: The dt-bindings patch can be sent inside of this series, please do that. > >> > >> Thanks! > >> Angelo > >> > >> >
On 12/09/2023 12:28, Chen-Yu Tsai wrote: > On Tue, Sep 12, 2023 at 5:43 PM AngeloGioacchino Del Regno > <angelogioacchino.delregno@collabora.com> wrote: >> >> Il 12/09/23 11:37, Chen-Yu Tsai ha scritto: >>> On Tue, Sep 12, 2023 at 5:00 PM AngeloGioacchino Del Regno >>> <angelogioacchino.delregno@collabora.com> wrote: >>>> >>>> Il 12/09/23 09:57, Moudy Ho ha scritto: >>>>> Changes since v4: >>>>> - Rebase on v6.6-rc1 >>>>> - Remove any unnecessary DTS settings. >>>>> - Adjust the usage of MOD and clock in blending components. >>>>> >>>>> Changes since v3: >>>>> - Depend on : >>>>> [1] https://patchwork.kernel.org/project/linux-media/list/?series=719841 >>>>> - Suggested by Krzysztof, integrating all newly added bindings for >>>>> the mt8195 MDP3 into the file "mediatek,mt8195-mdp3.yaml". >>>>> - Revise MDP3 nodes with generic names. >>>>> >>>>> Changes since v2: >>>>> - Depend on : >>>>> [1] MMSYS/MUTEX: https://patchwork.kernel.org/project/linux-mediatek/list/?series=711592 >>>>> [2] MDP3: https://patchwork.kernel.org/project/linux-mediatek/list/?series=711618 >>>>> - Suggested by Rob to revise MDP3 bindings to pass dtbs check >>>>> - Add parallel paths feature. >>>>> - Add blended components settings. >>>>> >>>>> Changes since v1: >>>>> - Depend on : >>>>> [1] MDP3 : https://patchwork.kernel.org/project/linux-mediatek/list/?series=698872 >>>>> [2] MMSYS/MUTEX: https://patchwork.kernel.org/project/linux-mediatek/list/?series=684959 >>>>> - Fix compilation failure due to use of undeclared identifier in file "mtk-mdp3-cmdq.c" >>>>> >>>>> Hello, >>>>> >>>>> This patch is used to add support for MDP3 on the MT8195 platform that >>>>> contains more picture quality components, and can arrange more pipelines >>>>> through two sets of MMSYS and MUTEX respectively. >>>>> >>>>> Moudy Ho (14): >>>>> arm64: dts: mediatek: mt8183: correct MDP3 DMA-related nodes >>>>> arm64: dts: mediatek: mt8195: add MDP3 nodes >>>> >>>> Please send the DTS patches separately, those go through a different maintainer. >>> >>> I thought most people prefer the _full_ view in a patchset? >>> >> >> Yeah but those going through a different maintainer makes it more straightforward >> to pick; besides, essentially, you can also get a full view with dt-bindings >> patches instead of devicetrees, as the latter are "constructed from" bindings >> anyway. > > Sure, but testing, especially by people not in the recipients or CC list, > is a bit painful when the full set of patches isn't bundled together. > Having them bundled together shows what the submitter tested and makes > it easier for others to reproduce. > > AFAIK other ARM platforms have been sending patches all grouped together. > It's MediaTek that has been different, as they normally have (for Chromebooks) > a system integration engineer handling the device tree stuff, while component > driver owners just handle the drivers, and by extension, the DT bindings. > >> Moreover, it would be definitely nice to add a link to the devicetree series >> in the cover letter of this series, so that people *do* get a full overview >> by checking both series :-) > > Most maintainers seem to know what to do: apply the subset destined for > their tree. At least the subsystems that frequently deal with DT-based > platforms anyway. Most, but not all. Some maintainers take entire set - including DTS - which is not what we want, because *DTS, as a hardware description, must be independent of driver changes*. Most notably Greg and netdev folks grab everything. Keeping it together with driver changes brings confusion and feeling that there are dependency. Please don't do this. Best regards, Krzysztof
On 13/09/2023 04:08, Moudy Ho (何宗原) wrote: >> This does not make any sense and such mess at v5 is confusing. >> >> Best regards, >> Krzysztof >> > > Hi Krzysztof, > > > Apologize for the confusion caused by the improper separation of > patches. > This occurred because I misunderstood the new warning message > "DT_SPLIT_BINDING_PATCH: DT binding docs and includes shoulde be a > separate patch" that I received after running 'checkpatch.pl'. Yes, separate patch. Patch. Best regards, Krzysztof
On 12/09/2023 12:28, Chen-Yu Tsai wrote: > On Tue, Sep 12, 2023 at 5:43 PM AngeloGioacchino Del Regno > <angelogioacchino.delregno@collabora.com> wrote: >> >> Il 12/09/23 11:37, Chen-Yu Tsai ha scritto: >>> On Tue, Sep 12, 2023 at 5:00 PM AngeloGioacchino Del Regno >>> <angelogioacchino.delregno@collabora.com> wrote: >>>> >>>> Il 12/09/23 09:57, Moudy Ho ha scritto: >>>>> Changes since v4: >>>>> - Rebase on v6.6-rc1 >>>>> - Remove any unnecessary DTS settings. >>>>> - Adjust the usage of MOD and clock in blending components. >>>>> >>>>> Changes since v3: >>>>> - Depend on : >>>>> [1] https://patchwork.kernel.org/project/linux-media/list/?series=719841 >>>>> - Suggested by Krzysztof, integrating all newly added bindings for >>>>> the mt8195 MDP3 into the file "mediatek,mt8195-mdp3.yaml". >>>>> - Revise MDP3 nodes with generic names. >>>>> >>>>> Changes since v2: >>>>> - Depend on : >>>>> [1] MMSYS/MUTEX: https://patchwork.kernel.org/project/linux-mediatek/list/?series=711592 >>>>> [2] MDP3: https://patchwork.kernel.org/project/linux-mediatek/list/?series=711618 >>>>> - Suggested by Rob to revise MDP3 bindings to pass dtbs check >>>>> - Add parallel paths feature. >>>>> - Add blended components settings. >>>>> >>>>> Changes since v1: >>>>> - Depend on : >>>>> [1] MDP3 : https://patchwork.kernel.org/project/linux-mediatek/list/?series=698872 >>>>> [2] MMSYS/MUTEX: https://patchwork.kernel.org/project/linux-mediatek/list/?series=684959 >>>>> - Fix compilation failure due to use of undeclared identifier in file "mtk-mdp3-cmdq.c" >>>>> >>>>> Hello, >>>>> >>>>> This patch is used to add support for MDP3 on the MT8195 platform that >>>>> contains more picture quality components, and can arrange more pipelines >>>>> through two sets of MMSYS and MUTEX respectively. >>>>> >>>>> Moudy Ho (14): >>>>> arm64: dts: mediatek: mt8183: correct MDP3 DMA-related nodes >>>>> arm64: dts: mediatek: mt8195: add MDP3 nodes >>>> >>>> Please send the DTS patches separately, those go through a different maintainer. >>> >>> I thought most people prefer the _full_ view in a patchset? >>> >> >> Yeah but those going through a different maintainer makes it more straightforward >> to pick; besides, essentially, you can also get a full view with dt-bindings >> patches instead of devicetrees, as the latter are "constructed from" bindings >> anyway. > > Sure, but testing, especially by people not in the recipients or CC list, > is a bit painful when the full set of patches isn't bundled together. > Having them bundled together shows what the submitter tested and makes > it easier for others to reproduce. > > AFAIK other ARM platforms have been sending patches all grouped together. > It's MediaTek that has been different, as they normally have (for Chromebooks) > a system integration engineer handling the device tree stuff, while component > driver owners just handle the drivers, and by extension, the DT bindings. > >> Moreover, it would be definitely nice to add a link to the devicetree series >> in the cover letter of this series, so that people *do* get a full overview >> by checking both series :-) > > Most maintainers seem to know what to do: apply the subset destined for > their tree. At least the subsystems that frequently deal with DT-based > platforms anyway. As maintainer I know that I need to skip dts patches, but there is a risk that I forget to drop them. So my preference is also to have them as a separate patch series, but it's a preference only. If you *do* send it as a separate series, then also include the linux-media mailinglist in the CC, that way I do have the full overview if I need it. Regards, Hans > > > ChenYu > >> Cheers! >> >>>> P.S.: The dt-bindings patch can be sent inside of this series, please do that. >>>> >>>> Thanks! >>>> Angelo >>>> >>>> >>
Hi Moudy, On 12/09/2023 09:57, Moudy Ho wrote: > Changes since v4: > - Rebase on v6.6-rc1 > - Remove any unnecessary DTS settings. > - Adjust the usage of MOD and clock in blending components. > > Changes since v3: > - Depend on : > [1] https://patchwork.kernel.org/project/linux-media/list/?series=719841 > - Suggested by Krzysztof, integrating all newly added bindings for > the mt8195 MDP3 into the file "mediatek,mt8195-mdp3.yaml". > - Revise MDP3 nodes with generic names. > > Changes since v2: > - Depend on : > [1] MMSYS/MUTEX: https://patchwork.kernel.org/project/linux-mediatek/list/?series=711592 > [2] MDP3: https://patchwork.kernel.org/project/linux-mediatek/list/?series=711618 > - Suggested by Rob to revise MDP3 bindings to pass dtbs check > - Add parallel paths feature. > - Add blended components settings. > > Changes since v1: > - Depend on : > [1] MDP3 : https://patchwork.kernel.org/project/linux-mediatek/list/?series=698872 > [2] MMSYS/MUTEX: https://patchwork.kernel.org/project/linux-mediatek/list/?series=684959 > - Fix compilation failure due to use of undeclared identifier in file "mtk-mdp3-cmdq.c" > > Hello, > > This patch is used to add support for MDP3 on the MT8195 platform that > contains more picture quality components, and can arrange more pipelines > through two sets of MMSYS and MUTEX respectively. I ran this series through our build system and I got the following compile warning: drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c: In function 'mdp_path_config.isra': drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c:449:51: warning: 'ctx' may be used uninitialized [-Wmaybe-uninitialized] 449 | out = CFG_COMP(MT8195, ctx->param, outputs[0]); | ~~~^~~~~~~ drivers/media/platform/mediatek/mdp3/mtk-img-ipi.h:137:25: note: in definition of macro 'CFG_COMP' 137 | (IS_ERR_OR_NULL(comp) ? 0 : _CFG_COMP(plat, comp, mem)) | ^~~~ drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c:402:30: note: 'ctx' was declared here 402 | struct mdp_comp_ctx *ctx; | ^~~ And also a few smatch warnings/errors: drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c:871 wait_wrot_event() warn: variable dereferenced before check 'mdp_cfg' (see line 864) drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c:1024 reset_luma_hist() warn: variable dereferenced before check 'mdp_cfg' (see line 1015) drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c:447 mdp_path_config() error: potentially dereferencing uninitialized 'ctx'. drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c:449 mdp_path_config() error: potentially dereferencing uninitialized 'ctx'. You can run the same tests yourself, see this announcement: https://lore.kernel.org/linux-media/18989016-6392-a77b-6cf7-1223c9161def@xs4all.nl/ Regards, Hans > > Moudy Ho (14): > arm64: dts: mediatek: mt8183: correct MDP3 DMA-related nodes > arm64: dts: mediatek: mt8195: add MDP3 nodes > media: platform: mtk-mdp3: add support second sets of MMSYS > media: platform: mtk-mdp3: add support second sets of MUTEX > media: platform: mtk-mdp3: introduce more pipelines from MT8195 > media: platform: mtk-mdp3: introduce more MDP3 components > media: platform: mtk-mdp3: add checks for dummy components > media: platform: mtk-mdp3: avoid multiple driver registrations > media: platform: mtk-mdp3: extend GCE event waiting in RDMA and WROT > media: platform: mtk-mdp3: add support for blending multiple > components > media: platform: mtk-mdp3: add mt8195 platform configuration > media: platform: mtk-mdp3: add mt8195 shared memory configurations > media: platform: mtk-mdp3: add mt8195 MDP3 component settings > media: platform: mtk-mdp3: add support for parallel pipe to improve > FPS > > arch/arm64/boot/dts/mediatek/mt8183.dtsi | 6 +- > arch/arm64/boot/dts/mediatek/mt8195.dtsi | 378 ++++++++ > .../platform/mediatek/mdp3/mdp_cfg_data.c | 729 ++++++++++++++- > .../platform/mediatek/mdp3/mdp_reg_aal.h | 25 + > .../platform/mediatek/mdp3/mdp_reg_color.h | 31 + > .../media/platform/mediatek/mdp3/mdp_reg_fg.h | 23 + > .../platform/mediatek/mdp3/mdp_reg_hdr.h | 31 + > .../platform/mediatek/mdp3/mdp_reg_merge.h | 25 + > .../platform/mediatek/mdp3/mdp_reg_ovl.h | 25 + > .../platform/mediatek/mdp3/mdp_reg_pad.h | 21 + > .../platform/mediatek/mdp3/mdp_reg_rdma.h | 24 + > .../platform/mediatek/mdp3/mdp_reg_rsz.h | 2 + > .../platform/mediatek/mdp3/mdp_reg_tdshp.h | 34 + > .../platform/mediatek/mdp3/mdp_reg_wrot.h | 8 + > .../platform/mediatek/mdp3/mdp_sm_mt8195.h | 283 ++++++ > .../platform/mediatek/mdp3/mtk-img-ipi.h | 4 + > .../platform/mediatek/mdp3/mtk-mdp3-cfg.h | 2 + > .../platform/mediatek/mdp3/mtk-mdp3-cmdq.c | 447 +++++++-- > .../platform/mediatek/mdp3/mtk-mdp3-cmdq.h | 1 + > .../platform/mediatek/mdp3/mtk-mdp3-comp.c | 860 +++++++++++++++++- > .../platform/mediatek/mdp3/mtk-mdp3-comp.h | 93 +- > .../platform/mediatek/mdp3/mtk-mdp3-core.c | 103 ++- > .../platform/mediatek/mdp3/mtk-mdp3-core.h | 33 +- > .../platform/mediatek/mdp3/mtk-mdp3-m2m.c | 15 + > .../platform/mediatek/mdp3/mtk-mdp3-regs.c | 18 + > .../platform/mediatek/mdp3/mtk-mdp3-regs.h | 1 + > .../platform/mediatek/mdp3/mtk-mdp3-vpu.c | 3 +- > 27 files changed, 3051 insertions(+), 174 deletions(-) > create mode 100644 drivers/media/platform/mediatek/mdp3/mdp_reg_aal.h > create mode 100644 drivers/media/platform/mediatek/mdp3/mdp_reg_color.h > create mode 100644 drivers/media/platform/mediatek/mdp3/mdp_reg_fg.h > create mode 100644 drivers/media/platform/mediatek/mdp3/mdp_reg_hdr.h > create mode 100644 drivers/media/platform/mediatek/mdp3/mdp_reg_merge.h > create mode 100644 drivers/media/platform/mediatek/mdp3/mdp_reg_ovl.h > create mode 100644 drivers/media/platform/mediatek/mdp3/mdp_reg_pad.h > create mode 100644 drivers/media/platform/mediatek/mdp3/mdp_reg_tdshp.h > create mode 100644 drivers/media/platform/mediatek/mdp3/mdp_sm_mt8195.h >
On Fri, 2023-09-15 at 12:27 +0200, Hans Verkuil wrote: > > External email : Please do not click links or open attachments until > you have verified the sender or the content. > Hi Moudy, > > On 12/09/2023 09:57, Moudy Ho wrote: > > Changes since v4: > > - Rebase on v6.6-rc1 > > - Remove any unnecessary DTS settings. > > - Adjust the usage of MOD and clock in blending components. > > > > Changes since v3: > > - Depend on : > > [1] > https://patchwork.kernel.org/project/linux-media/list/?series=719841 > > - Suggested by Krzysztof, integrating all newly added bindings for > > the mt8195 MDP3 into the file "mediatek,mt8195-mdp3.yaml". > > - Revise MDP3 nodes with generic names. > > > > Changes since v2: > > - Depend on : > > [1] MMSYS/MUTEX: > https://patchwork.kernel.org/project/linux-mediatek/list/?series=711592 > > [2] MDP3: > https://patchwork.kernel.org/project/linux-mediatek/list/?series=711618 > > - Suggested by Rob to revise MDP3 bindings to pass dtbs check > > - Add parallel paths feature. > > - Add blended components settings. > > > > Changes since v1: > > - Depend on : > > [1] MDP3 : > https://patchwork.kernel.org/project/linux-mediatek/list/?series=698872 > > [2] MMSYS/MUTEX: > https://patchwork.kernel.org/project/linux-mediatek/list/?series=684959 > > - Fix compilation failure due to use of undeclared identifier in > file "mtk-mdp3-cmdq.c" > > > > Hello, > > > > This patch is used to add support for MDP3 on the MT8195 platform > that > > contains more picture quality components, and can arrange more > pipelines > > through two sets of MMSYS and MUTEX respectively. > > I ran this series through our build system and I got the following > compile warning: > > drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c: In function > 'mdp_path_config.isra': > drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c:449:51: warning: > 'ctx' may be used uninitialized [-Wmaybe-uninitialized] > 449 | out = CFG_COMP(MT8195, ctx->param, > outputs[0]); > | ~~~^~~~~~~ > drivers/media/platform/mediatek/mdp3/mtk-img-ipi.h:137:25: note: in > definition of macro 'CFG_COMP' > 137 | (IS_ERR_OR_NULL(comp) ? 0 : _CFG_COMP(plat, comp, > mem)) > | ^~~~ > drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c:402:30: note: > 'ctx' was declared here > 402 | struct mdp_comp_ctx *ctx; > | ^~~ > > And also a few smatch warnings/errors: > > drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c:871 > wait_wrot_event() warn: variable dereferenced before check 'mdp_cfg' > (see line 864) > drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c:1024 > reset_luma_hist() warn: variable dereferenced before check 'mdp_cfg' > (see line 1015) > drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c:447 > mdp_path_config() error: potentially dereferencing uninitialized > 'ctx'. > drivers/media/platform/mediatek/mdp3/mtk-mdp3-cmdq.c:449 > mdp_path_config() error: potentially dereferencing uninitialized > 'ctx'. > > You can run the same tests yourself, see this announcement: > > https://lore.kernel.org/linux-media/18989016-6392-a77b-6cf7-1223c9161def@xs4all.nl/ > > Regards, > > Hans > Hi Hans, Thanks for the reminder. I will run the build script to test this series and rectify any warnings. Sincerely, Moudy > > > > Moudy Ho (14): > > arm64: dts: mediatek: mt8183: correct MDP3 DMA-related nodes > > arm64: dts: mediatek: mt8195: add MDP3 nodes > > media: platform: mtk-mdp3: add support second sets of MMSYS > > media: platform: mtk-mdp3: add support second sets of MUTEX > > media: platform: mtk-mdp3: introduce more pipelines from MT8195 > > media: platform: mtk-mdp3: introduce more MDP3 components > > media: platform: mtk-mdp3: add checks for dummy components > > media: platform: mtk-mdp3: avoid multiple driver registrations > > media: platform: mtk-mdp3: extend GCE event waiting in RDMA and > WROT > > media: platform: mtk-mdp3: add support for blending multiple > > components > > media: platform: mtk-mdp3: add mt8195 platform configuration > > media: platform: mtk-mdp3: add mt8195 shared memory > configurations > > media: platform: mtk-mdp3: add mt8195 MDP3 component settings > > media: platform: mtk-mdp3: add support for parallel pipe to > improve > > FPS > > > > arch/arm64/boot/dts/mediatek/mt8183.dtsi | 6 +- > > arch/arm64/boot/dts/mediatek/mt8195.dtsi | 378 ++++++++ > > .../platform/mediatek/mdp3/mdp_cfg_data.c | 729 > ++++++++++++++- > > .../platform/mediatek/mdp3/mdp_reg_aal.h | 25 + > > .../platform/mediatek/mdp3/mdp_reg_color.h | 31 + > > .../media/platform/mediatek/mdp3/mdp_reg_fg.h | 23 + > > .../platform/mediatek/mdp3/mdp_reg_hdr.h | 31 + > > .../platform/mediatek/mdp3/mdp_reg_merge.h | 25 + > > .../platform/mediatek/mdp3/mdp_reg_ovl.h | 25 + > > .../platform/mediatek/mdp3/mdp_reg_pad.h | 21 + > > .../platform/mediatek/mdp3/mdp_reg_rdma.h | 24 + > > .../platform/mediatek/mdp3/mdp_reg_rsz.h | 2 + > > .../platform/mediatek/mdp3/mdp_reg_tdshp.h | 34 + > > .../platform/mediatek/mdp3/mdp_reg_wrot.h | 8 + > > .../platform/mediatek/mdp3/mdp_sm_mt8195.h | 283 ++++++ > > .../platform/mediatek/mdp3/mtk-img-ipi.h | 4 + > > .../platform/mediatek/mdp3/mtk-mdp3-cfg.h | 2 + > > .../platform/mediatek/mdp3/mtk-mdp3-cmdq.c | 447 +++++++-- > > .../platform/mediatek/mdp3/mtk-mdp3-cmdq.h | 1 + > > .../platform/mediatek/mdp3/mtk-mdp3-comp.c | 860 > +++++++++++++++++- > > .../platform/mediatek/mdp3/mtk-mdp3-comp.h | 93 +- > > .../platform/mediatek/mdp3/mtk-mdp3-core.c | 103 ++- > > .../platform/mediatek/mdp3/mtk-mdp3-core.h | 33 +- > > .../platform/mediatek/mdp3/mtk-mdp3-m2m.c | 15 + > > .../platform/mediatek/mdp3/mtk-mdp3-regs.c | 18 + > > .../platform/mediatek/mdp3/mtk-mdp3-regs.h | 1 + > > .../platform/mediatek/mdp3/mtk-mdp3-vpu.c | 3 +- > > 27 files changed, 3051 insertions(+), 174 deletions(-) > > create mode 100644 > drivers/media/platform/mediatek/mdp3/mdp_reg_aal.h > > create mode 100644 > drivers/media/platform/mediatek/mdp3/mdp_reg_color.h > > create mode 100644 > drivers/media/platform/mediatek/mdp3/mdp_reg_fg.h > > create mode 100644 > drivers/media/platform/mediatek/mdp3/mdp_reg_hdr.h > > create mode 100644 > drivers/media/platform/mediatek/mdp3/mdp_reg_merge.h > > create mode 100644 > drivers/media/platform/mediatek/mdp3/mdp_reg_ovl.h > > create mode 100644 > drivers/media/platform/mediatek/mdp3/mdp_reg_pad.h > > create mode 100644 > drivers/media/platform/mediatek/mdp3/mdp_reg_tdshp.h > > create mode 100644 > drivers/media/platform/mediatek/mdp3/mdp_sm_mt8195.h > > >