Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp939311rwb; Wed, 28 Sep 2022 10:58:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7n1hgf7Y+ntPL13Yo77Zhc80za0y7vLw1uA7JbyF8xskjbMhSDMF5qlnSaCMl1rW9vv7oR X-Received: by 2002:a05:6a00:24d2:b0:542:f6e3:e18d with SMTP id d18-20020a056a0024d200b00542f6e3e18dmr35701886pfv.36.1664387906510; Wed, 28 Sep 2022 10:58:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664387906; cv=none; d=google.com; s=arc-20160816; b=dRP7e5V2/0cwzMzLM5d04CnAXG70P+GPcl7TBvbBwE/cUn3DWInRxE7a9x41kLo7Nt /HAKJUbjORJixEPmZeJp3yBCrLd8DUUsM2o6mHNuQWMB/uJCgA9eMv84O1yHPeYXjroB k2H5qDpQpbGix48hUe8T5pHP3qQb6fAUpoBvLkmbOhCVXR8UVlCip5BHYwIZwzePjtd4 L/BGX8dtq7l4qyX+w1RNyB7v4FnR2BNWY62e+4+feKusoP7blPnOWB7Y2zlF7rqNMw3S Yt0nJF6oDyMQI9hut5Zhs+lRlf4k7x6DIOCQZZfQvIfjYoRG1p8aL3CE/J6SqPvFjUHD nNRw== 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=iaBM0F0vS4egIo+p/65Wr1pcDzd34fHYDBsYt35zuD8=; b=BZyplv646EAf7X0yswTN5Q/+ETRA5N69R1TgV/8LbSoYrj63dV9GwIfpBkxzhAutvk /Fxz7CrA1aKYbxOFqpqF3VHOVeE0jso0bsJzA393fM2GFhiSNjWRkDGvgCsAHJgXd8YO rqFBAD7GjNo+a7n/IEDeUMzk3p1A52ICcbxwevqx9F67axcwbJjrDEyQt2NCe/Q5iuoU 8qjYOI/TP/U34pIHTBnAq1TJG1D9ibE+XT3EsOzwC6LUryS24i3ndCFDg9S9oU6s4OQm qoXzYLThb6WakBe+OXfMS6vN/V14E4eDpZT9ZQXrjFKvvpkcjJY+0gAlg4UhX41r8bFo hFBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Vm5/O2dA"; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q19-20020a056a00085300b0054a43b9711csi3852048pfk.198.2022.09.28.10.58.11; Wed, 28 Sep 2022 10:58:26 -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=@linaro.org header.s=google header.b="Vm5/O2dA"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234502AbiI1R0Z (ORCPT + 99 others); Wed, 28 Sep 2022 13:26:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231167AbiI1R0U (ORCPT ); Wed, 28 Sep 2022 13:26:20 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4898B93222 for ; Wed, 28 Sep 2022 10:26:19 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id a2so21390974lfb.6 for ; Wed, 28 Sep 2022 10:26:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=iaBM0F0vS4egIo+p/65Wr1pcDzd34fHYDBsYt35zuD8=; b=Vm5/O2dA7LM9byhTgJjsTEWiTpq6cbx1A7BcdH2Ae3P/5/939CIAvevcFcAWx2icSy 6sYCxFBqORGn4L0pgWt9/FPWej0Om7OVd3JvMK5qJ/5+cqwxIi5+TFnstDTJ4hcDaOVA 8Ufz8DMelf4OICaUFMm010gmSIyEpIT9Yd7R63XTZhZ5arbfvpX3wDLscjse15LeVkzB 2HDjW7GG9p5boYj4CRRGcBvr3yD6qkKI70Zebvlm8O3wH6rrbfRZ8pwI0ueWhNPJmepx X7kCeu7k2CMlj4PxYoPEFKCOHT6E5x1IVEV2/nC+W7hYCSP/oc6EfMLdgXaQ/LN5H+m6 hBcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=iaBM0F0vS4egIo+p/65Wr1pcDzd34fHYDBsYt35zuD8=; b=yRc+2YWgFaWdvarZXEUeKHidDQXqiCBOpwwNrMwApAM/EZKAzTZeWgsASksWn5s8kW RS25ji6DQS12Zv4B/pi8sbEnjZdTXWEUPxQU0e0PzX2sIyUVbdyERiVIdXBoSySjYeG6 ABAZ85p2Wqbyk2EamWAgrcGJx2K1F3d0JhCdE0S9Uo6ik1H7F+Vqr93tdrdMdfH+kim/ DkuaiqFXSDJaE7JqbGjMV68DOA2itokmkX+F4WfonqNpyS81wQ8Zeu/Jl0HFfjpkjHyf lM+3Kzi+Y0aGd1SMuS2ohT+9SUyIcuKNNJ/dZzhR23osbEF8cUJFyJWV7BvvjfDLYSxC aunA== X-Gm-Message-State: ACrzQf2dCOgwOnVbdLXTzvJ2zTVHS8Fx3lRgS0JcRSrFfeBzp64JgLEE yJB33iee2KHVJW9Ghl5W3QC62Q== X-Received: by 2002:ac2:4c50:0:b0:49a:3768:da81 with SMTP id o16-20020ac24c50000000b0049a3768da81mr13102942lfk.247.1664385977386; Wed, 28 Sep 2022 10:26:17 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id bg40-20020a05651c0ba800b00261e7e7b698sm494329ljb.123.2022.09.28.10.26.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 28 Sep 2022 10:26:16 -0700 (PDT) Message-ID: <186bc17e-56d2-f125-aab9-f47bf3f45b79@linaro.org> Date: Wed, 28 Sep 2022 19:26:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH v2] arm64: dts: mt8192: Add vcodec lat and core nodes Content-Language: en-US To: AngeloGioacchino Del Regno , =?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> From: Krzysztof Kozlowski In-Reply-To: <68e1c8b0-04cf-acf8-b6b6-97d9eb8a7c4a@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 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. Best regards, Krzysztof