Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3669886rdg; Wed, 18 Oct 2023 02:29:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5PY7HcErnFkYLrpcpztyiU6NBHkphuDEGTG9ip/Nt1MdBuSlR6h8UqegHbAYXWUpv4cDQ X-Received: by 2002:a17:90b:1d50:b0:27c:fb63:9c89 with SMTP id ok16-20020a17090b1d5000b0027cfb639c89mr4579238pjb.0.1697621371128; Wed, 18 Oct 2023 02:29:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697621371; cv=none; d=google.com; s=arc-20160816; b=xmMXtYk+0+i5uu8/fpHQfzVC2enYz3pGVU+iP0q8zIsf+tUuRXDE1Rqd4fhzQIFWli yRDnalEn2ezQD4u5qtXnsvbkgkt2YFPg4SBSiGbRD2F64lSzwja8EUO+Wm2zEj5Xro/r K7Mpr4sPOUJbFbQYmCsOaN45rvoMpzu5wCtEeXijdQoacSxlHM1jftGxSRack88V+ueI XbPQapD9kdd49z0gRbvx9DAt5HXr+wemi5U3l393MnTBoX5qSPJ70+Hj1FbvKh89MSFf vFJSQL7YrkMSh3R+laAPVYLAsmBofgwM/cdkadJ+o8GN+F7C5O9M5YhbP1Oip6WNmuSA gXvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CVKii9ueJQTXrmJv/xlWd/pBh5EbWT9TwHnx3wpagyU=; fh=UoW6fTLwTsJlveBd/mtMPsxzwWxWlH3EcmprzMtmtBQ=; b=Ri7lUuwbHJe47o5oRDOn7whIFmRMvOzyFiVzzBOWkClS+2QZc6YGEjxdjoWK7oXgMq 5u8uWgYXqKAul/RJZVvkqrB/uYgnh9oAxbfZ7/WP9ZXTLBHatEy1hYki4VN1fPSpPVq1 LJI5IMzoWEZ9wUA3oghlcdTG3RT+2AqzFGZDOddxS8T10faUvaeX7uvm+Ee7WIcsuOEg nF1/+lDXteYziTU30fZZvmPO1CJohnSIlwiSIDzUHJcD461chooYe8lTRj+icV0USnLS 0BSmlD/F8qyG4s+aKpbcqIi7RoMs8UnGgKLEtvU38N4Ny+HfS0AVGqeE6RRyxP4xKIfZ 4ApA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=JAmaOnc8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id ob1-20020a17090b390100b00262f937bf93si1259263pjb.77.2023.10.18.02.29.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 02:29:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=JAmaOnc8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9E89180C60F0; Wed, 18 Oct 2023 02:29:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229750AbjJRJ3U (ORCPT + 99 others); Wed, 18 Oct 2023 05:29:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbjJRJ3R (ORCPT ); Wed, 18 Oct 2023 05:29:17 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A812AF7; Wed, 18 Oct 2023 02:29:15 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 5CBCF66072F4; Wed, 18 Oct 2023 10:29:13 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1697621354; bh=9tOmuNn4amTBPLiqMSY+fjbpWsftcPyLojA4Ajbn/i4=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=JAmaOnc8L/a1j+NJQYq51be9a8L1S6SSABYLIpIQohVhh/JU3mupOYp0AV1kbjNzO QtfJwQfrDdMI3wKugWGifvg+qZ3+wdXSE8XcNDAy4hOvCdeVqtJCGOPbvWFvJDTtAd vordH3lM8ogVIUW0t3pB66pkY3mSfiW/VcXF88H/qolQG4n/m8C6+1L5h9Y9Vxe+HF K4J99Q7PJSZ+WwbBTiJv8V91P/clTm1f070VF1Sc7XouxUm8nxPyakNiBPRD0xcd/j /G3vxbWnuGOEbR7vJE1dutgoTfcnBA/CRTdqF3121XTnXJ8uNueEV3lr1E0DEqYW1m c1BVbyVmz8zKg== Message-ID: Date: Wed, 18 Oct 2023 11:29:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 02/16] dt-bindings: media: mediatek: mdp3: merge the indentical RDMA under display Content-Language: en-US To: =?UTF-8?B?TW91ZHkgSG8gKOS9leWul+WOnyk=?= , "robh+dt@kernel.org" , "chunkuang.hu@kernel.org" , "mchehab@kernel.org" , "krzysztof.kozlowski@linaro.org" , "daniel@ffwll.ch" , "p.zabel@pengutronix.de" , "conor+dt@kernel.org" , "hverkuil-cisco@xs4all.nl" , "airlied@gmail.com" , "krzysztof.kozlowski+dt@linaro.org" , "matthias.bgg@gmail.com" Cc: "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , "linux-media@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" References: <20231012084037.19376-1-moudy.ho@mediatek.com> <20231012084037.19376-3-moudy.ho@mediatek.com> <0e972a0a-af27-4837-a80c-cbab0002d368@linaro.org> <324f170c69387c5587688ae7bee5ddf95bc94576.camel@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <324f170c69387c5587688ae7bee5ddf95bc94576.camel@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 18 Oct 2023 02:29:28 -0700 (PDT) Il 18/10/23 05:06, Moudy Ho (何宗原) ha scritto: > On Fri, 2023-10-13 at 08:46 +0200, Krzysztof Kozlowski wrote: >> > > Hi Krzysztof, > > Thank you for assisting with the review. > >> External email : Please do not click links or open attachments until >> you have verified the sender or the content. >> On 12/10/2023 10:40, Moudy Ho wrote: >> >>> >>> +allOf: >>> + - if: >>> + properties: >>> + compatible: >>> + contains: >>> + const: mediatek,mt8183-mdp3-rdma >>> + >>> + then: >>> + properties: >>> + clocks: >>> + items: >>> + - description: RDMA clock >>> + - description: RSZ clock (shared SRAM with RDMA) >>> + >>> + mboxes: >>> + items: >>> + - description: used for 1st data pipe from RDMA >>> + - description: used for 2nd data pipe from RDMA >> >> interrupts: >> false >> > > As Angelo provided additional clarification in [15/16], explaining that > certain conditions in [2/16] and [3/16] were intentionally omitted due > to the need to integrate the same IP with different operations. > Apologies for any inconvenience this has caused you. > MT8183's MDP3 RDMA interrupt property was omitted in the devicetree that we have upstream because it was either unused in the driver, or MTK didn't want to actually use it for reasons, but that SoC *definitely does* have a mdp_rdma0 IRQ and a mdp_rdma1 IRQ. That's the same for MT8186 and MT8188... and it's probably the same for all MediaTek SoCs, so interrupts shouldn't be disallowed in this binding. >>> + >>> + required: >>> + - mboxes >>> + - mediatek,gce-events >>> + >>> + - if: >>> + properties: >>> + compatible: >>> + contains: >>> + const: mediatek,mt8195-vdo1-rdma >>> + >>> + then: >>> + properties: >>> + clocks: >>> + items: >>> + - description: RDMA clock >> >> mboxes: false >> mediatek,gce-events: false >> >> I am not so sure it is actually "simpler" to merge these. They are >> quite >> different. You will end up with unmanageable allOf with a lot of >> branches (which supposedly you want to remove). >> It's the same thing as "split"... All of the display and mdp/mdp3 components of MediaTek SoC do support GCE mailboxes by HW, so it's not limited to "split", but literally all of them. Disallowing mboxes and/or mediatek,gce-events on *any* of those is actually wrong. Cheers, Angelo >> > > Upon examining the minor hardware changes in MDP for MT8183 and MT8195 > RDMA ([3/16]), it appears that branching cannot be avoided. However, > consolidating these changes has the additional advantage of addressing > Rob's concerns from v4. Perhaps we can consider the current changes as > a form of progress. > > Sincerely, > Moudy > >>> + >>> additionalProperties: false >>> >>> examples: >> >> Best regards, >> Krzysztof >>