Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1811465rwb; Thu, 29 Sep 2022 02:33:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Dspns+hTc9WX/b77cTCIR+3/vtOI/tuSmfIGKwi6M2CT4L2w3go6TP9DxFrCkjraJxZg1 X-Received: by 2002:a05:6402:28ca:b0:43b:5235:f325 with SMTP id ef10-20020a05640228ca00b0043b5235f325mr2310324edb.320.1664443996666; Thu, 29 Sep 2022 02:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664443996; cv=none; d=google.com; s=arc-20160816; b=vH68EnXVWEEFMxM54RzeGv2sJFsPNgpNG1m2rqK+dbVf+rq7GU6Agcen6h5GXGMmbL S+BsoFLl96FwzUvy1hSGqw992hcjuhCthFe5a/VCSQDXuD1r3w54KIDaBm2tQ6hPd4yB ndQF3GTVo8w+ijcpU0ys91mzomdNM3zoh/cvlnKKHETMWtHnFHbgA/Ep8StP9+OYfHht sJuunNcww2f3KSwq+tHAe+pGBqRWEZ43gmXMpTZzumWUg4vIR2TJMoCTJJMNhFjYiwm3 vT5j0c7xK1kYtouYAT/OZlLNDcjQG4jqifexFSCKlOOxWQrL7hkCAE7avZHklYnQe6Zg KODw== 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=ZjBurnUQ6PY/Vc/K+0Oe5QgMxheQUlk4a1/e2Sohso0=; b=XoHhlJI9KZjqURRnNMlRElcPpxHdnQ+tbLxi4SYjWzeT2SzxzAHFRIK7hyHRq9n7pX aAOLC7HD4fzoQAbFuqw/PPUm4zEa9IuNF8vv1SLcjjCeNc8GN3hpVtDjDuf0Z8i5iaGK Kbsp7nqMQGFeLtqhsg+BV4cHZCOxrxvR3JAKMxck8YlgV18nFuS9TNAM/Azq6pgnCO4q hporh9QhJUhQRAgCc+rnN0NF55Bfsb27q2qWADKh6V4AIH20E3LP1pzoZQ9+xCDNulv5 SwPC9isVwhFFOsof7cGwgc5JK8UB/yVHhCeoe/Ucld6GgbisG6IJ1UyUWoqplfy6mjEW Dj/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=SMePAmrC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a05640250c700b00451e91d5f05si8955685edb.507.2022.09.29.02.32.28; Thu, 29 Sep 2022 02:33:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=SMePAmrC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235526AbiI2Iau (ORCPT + 99 others); Thu, 29 Sep 2022 04:30:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235325AbiI2Iam (ORCPT ); Thu, 29 Sep 2022 04:30:42 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 628A21E715; Thu, 29 Sep 2022 01:30:39 -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)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id F233466022A4; Thu, 29 Sep 2022 09:30:37 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1664440238; bh=HVln2XQjo1/6453DUDMrhYEM8FW/l3NioWcqHa6H5w0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=SMePAmrCy/8UBc2cvHQg5288l2wp2jh/iO+V7KyBjom8Yibaa5ZP0lhC9jAU/XdBr IxtosWx+LSCHCeXZ61G+N2WKr9mNddShrW97enlB+1iYR902ceDqJFmiF934GSK8jQ qMmuE8ebmOd+zKQBiS0lmEqJ4MGCUzhfSJsIX6IE18nK0o9liq31eIUCYjXL1yum3a FvZyMlkp9zfPxkki3ucn1SqKx/902MY5M822GfwvG9InvNPwOVXXRJH4+K6zR8C+Eh P/BELo023rezJDNp1Jrx7TpllCCLkbMMU+80eWPrDZOc4x87s2mE3vaFeZkaaWNYNY IVB4vPfQ/+tiQ== Message-ID: <514f8de1-1a23-1947-80cd-6136e17af490@collabora.com> Date: Thu, 29 Sep 2022 10:30:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH v2] arm64: dts: mt8192: Add vcodec lat and core nodes Content-Language: en-US To: Krzysztof Kozlowski , =?UTF-8?B?QWxsZW4tS0ggQ2hlbmcgKOeoi+WGoOWLsyk=?= , "matthias.bgg@gmail.com" , "robh+dt@kernel.org" Cc: "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-mediatek@lists.infradead.org" , Project_Global_Chrome_Upstream_Group , "devicetree@vger.kernel.org" References: <20220926105047.19419-1-allen-kh.cheng@mediatek.com> <4d1e8600-f73d-8d2b-2e7a-1b75be7624bd@collabora.com> <05ed341b-2db3-620f-7a70-dcebfaa66f1a@collabora.com> <172e10ee-22fd-ccec-1a5a-7bd0a29dbfc4@linaro.org> <68e1c8b0-04cf-acf8-b6b6-97d9eb8a7c4a@collabora.com> <186bc17e-56d2-f125-aab9-f47bf3f45b79@linaro.org> From: AngeloGioacchino Del Regno In-Reply-To: <186bc17e-56d2-f125-aab9-f47bf3f45b79@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 28/09/22 19:26, Krzysztof Kozlowski ha scritto: > On 28/09/2022 09:58, AngeloGioacchino Del Regno wrote: >> Il 28/09/22 09:04, Krzysztof Kozlowski ha scritto: >>> On 27/09/2022 12:17, AngeloGioacchino Del Regno wrote: >>>>>> >>>>> >>>>> Sorry, my bad. I alsways run `make dtbs_check` to confirm dtb with >>>>> bindings. I just think we didn't limit node names in mtk-vodec >>>>> bindings. I will pay attention next time. >>>>> >>>>> >>>>> Since currently the vcodec lat and core nodes are absent from the mtk >>>>> dts, do you think the child node name should be changed to something >>>>> more general (ex: video-codec) in mediatek,vcodec-subdev-decoder >>>>> bindings? >>>> >>>> The video codec is mt8192-vcodec-dec, while the other nodes are describing >>>> the VPU instances (and/or vpu cores)... I'm not sure. >>>> >>>> Krzysztof, please, can you give your opinion on that? >>>> >>> >>> What's the difference between them? I understand parent device is entire >>> block of consisting of multiple processing units? If so, video-codec >>> actually could fit in both places. But feel free to call it a bit >>> different (video-codec-core, video-codec-lat, processing-unit, even >>> something less generic). Sometimes it's tricky to find nice name, so I >>> wouldn't worry too much in that case. Just not "mt8192-vcodec" :) >>> >> >> The parent device is the entire block consisting of multiple processing units >> and has "global" control registers; children are LAT(s) and processing cores. >> >> From my understanding, the processing cores are physical cores of one big VPU >> and, depending on the actual (current gen) SoC, the VPU may have one or two >> cores. >> >> Right now, the bindings want vcodec-latX@addr, vcodec-coreX@addr (where X is >> a number, like vcodec-core0, vcodec-core1) but, in my opinion, changing that >> to video-codec-lat@addr and video-codec-core@addr would be more descriptive. >> >> ...Or should we simply leave the bindings as they are and just go with the >> abbreviated "vcodec-(hwtype)" names? > > video-codec-lat sounds better, but I am not sure if it is worth the > churn, so I am fine with both. > Thank you Krzysztof! Allen, can you please change the binding to use "video-codec-lat" and "video-codec-core" (so change "vcodec" to "video-codec") and then use these names for this commit? Doing the change right now won't break the ABI, as there's no devicetree using that binding yet (with this commit adding the first user), so you can safely go for the rename without any complication. Regards, Angelo