Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4212834rwl; Tue, 28 Mar 2023 04:24:34 -0700 (PDT) X-Google-Smtp-Source: AKy350Z2v0JiYNV34a6ZSuGB63bDZDWPTHmxKZA6e7hanny+GzzDRVNh2krFgvpxa9jkWT9xiKa/ X-Received: by 2002:aa7:c90d:0:b0:4fd:1ff0:2291 with SMTP id b13-20020aa7c90d000000b004fd1ff02291mr14433562edt.18.1680002674057; Tue, 28 Mar 2023 04:24:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680002674; cv=none; d=google.com; s=arc-20160816; b=m5/2qPDPll2Z4/mKG1fD0smPdspNwC6pF50SREb9NpGQZLkL4HRtSmjk7NiEpcVVEM KR9JpelzDrsCzey5It6q7mLAGrT/Wvleegs3ZIOrrW6dCgsBP2cEwoSmmmRBjsxg6n5v l5As6udrL4FhfWkOffpzNDrHr9cO36Qc+JFBHqfbllwRL4v5LwP43NBp4wp1XMnNqHOT oWtxix4ZtFqqUV27dWPfeCzAA6d5xNx81K/xrbHsK6MJIE4Tb8DKLrPfjHQzF9cXPs+W EbdjXPtF6DLC/CubSfNOJN9Y+7yiW8WYCwwDDY/xL26yZeo3iDcz10goQLWm0fPAy9xT jMCA== 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=dzwHQ2Duk/kqF5BJ0fG5L6Cu8NMF103H5aRIBgcczb4=; b=aMMEYfs8CwhARkqa05AE9cxga7PyDzmZmU0WvMHKO6e5oOccazCrfMzukq+dvnZQCU 7btShP5gcb5Xe4c4R6j5T56pVPxBSwI3mvnuhc3O67QOEY0IMzeLnXLF2Y6qzsF97npY BfqEeRgBw0PwWnsbm67ls0WwncjMRuW0vie803Ps9F6Xx+gd/jZVOV03w5+KEWB+GmUo G+3gBvzuDDtk0YZYe+lkQ6V+BZ2qR24fs0xmNt1cgklWx3InRXS1mL/FMMOB1trbKs05 Ar8pBSHJgq5sUw+Rc+gyQDsbjBzN7s2w/Q66SysG8aMlhrUp8ey443mn2fYnBZCLVUjQ 4rVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=htrzrsE7; 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 du18-20020a17090772d200b0093d8a309f6esi14814566ejc.160.2023.03.28.04.24.03; Tue, 28 Mar 2023 04:24:34 -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=htrzrsE7; 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 S232630AbjC1LWs (ORCPT + 99 others); Tue, 28 Mar 2023 07:22:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232640AbjC1LWl (ORCPT ); Tue, 28 Mar 2023 07:22:41 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 023077EC8 for ; Tue, 28 Mar 2023 04:22:30 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id b20so48222930edd.1 for ; Tue, 28 Mar 2023 04:22:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680002548; 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:message-id:reply-to; bh=dzwHQ2Duk/kqF5BJ0fG5L6Cu8NMF103H5aRIBgcczb4=; b=htrzrsE7hmfkJgnGa64UdAmCTFbDjwVjX1/ZK7rzlfJ4rum1twPXjx2IcPP12VND9T 0DKpttfDZeCJAjZF9hf9sirzt1D7GiaNIvC2Ms0GGq/MedlyTFbot/1vxF4CxC0kFUot lJYlci1bOkm1cjOAaW76KTfxGYDZpTUwaWI6CqiqlLyD64vI1f8N1ETCWOZvAh6jSSal 1PbzRamEOc4x30/OWIqrzOivLgt4Uzhb1hguorghfB6U/5sNzMn2YAbgBBqg+Tdtf4hr dXV/1WfiU6mwe/scWd/TkMX5uL4+EeTzYs24kk9cDqFNzkUiCS1rn8BmpwTCA4wE1eLy wDUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680002548; 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:message-id:reply-to; bh=dzwHQ2Duk/kqF5BJ0fG5L6Cu8NMF103H5aRIBgcczb4=; b=CsEam3hclc40mzy0V8KjOdXsGL7yNZsM954x7po3MmmlIoDpB5zM+Krm7Z5GR9UdIF gZmfsZUDuqLzKrWpsk+8WX1cYsGHQlajOS+R+bi868NdKertUNRrn6+HvN4QIcYSVpHx wQeLP55PVjrROXH5NWxwkCVBdhgGp2B034lwdtIuGHU2HhfOZCe6+MQZYvuQR4aXzsdd SzkUuEHfMqWpy6Cv0mt/wFbl/9UJcTe//sSk0uoU4lmH6e88UH40AFeNIpkOdeq5uggc LWfaZmgg0z0tqChefIIVldQCXWl/eL2w2YSsM/mXN34PQYB+10tkAFkHu5MYPjE8OPbx tu1A== X-Gm-Message-State: AAQBX9eaDL1v/uxcGpAjnfgrTTFR1pBBuS2uyioXBQgupDL3fgGTL3ES 1T5XD1xaS9pV8vjF22EhOxrUVA== X-Received: by 2002:a17:907:86ac:b0:92b:eefb:b966 with SMTP id qa44-20020a17090786ac00b0092beefbb966mr21203353ejc.0.1680002548506; Tue, 28 Mar 2023 04:22:28 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:9e92:dca6:241d:71b6? ([2a02:810d:15c0:828:9e92:dca6:241d:71b6]) by smtp.gmail.com with ESMTPSA id l22-20020a170906079600b009333288d0ffsm13778637ejc.194.2023.03.28.04.22.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Mar 2023 04:22:28 -0700 (PDT) Message-ID: <79d8044f-ce68-463e-66f7-8755e253bc99@linaro.org> Date: Tue, 28 Mar 2023 13:22:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [Patch v4 01/10] dt-bindings: memory: tegra: add bpmp ref in tegra234-mc node Content-Language: en-US To: Thierry Reding Cc: Sumit Gupta , treding@nvidia.com, dmitry.osipenko@collabora.com, viresh.kumar@linaro.org, rafael@kernel.org, jonathanh@nvidia.com, robh+dt@kernel.org, lpieralisi@kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-pci@vger.kernel.org, mmaddireddy@nvidia.com, kw@linux.com, bhelgaas@google.com, vidyas@nvidia.com, sanjayc@nvidia.com, ksitaraman@nvidia.com, ishah@nvidia.com, bbasu@nvidia.com References: <20230327161426.32639-1-sumitg@nvidia.com> <20230327161426.32639-2-sumitg@nvidia.com> <787f656a-223d-5eed-e311-9cc7a6c46452@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28/03/2023 12:48, Thierry Reding wrote: > On Tue, Mar 28, 2023 at 09:23:04AM +0200, Krzysztof Kozlowski wrote: >> On 27/03/2023 18:14, Sumit Gupta wrote: >>> For Tegra234, add the "nvidia,bpmp" property within the Memory >>> Controller (MC) node to reference BPMP node. This is needed in >>> the MC driver to pass the client info to the BPMP-FW when memory >>> interconnect support is available. >>> >>> Signed-off-by: Sumit Gupta >>> --- >>> .../bindings/memory-controllers/nvidia,tegra186-mc.yaml | 7 +++++++ >>> 1 file changed, 7 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra186-mc.yaml b/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra186-mc.yaml >>> index 935d63d181d9..398d27bb2373 100644 >>> --- a/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra186-mc.yaml >>> +++ b/Documentation/devicetree/bindings/memory-controllers/nvidia,tegra186-mc.yaml >>> @@ -58,6 +58,10 @@ properties: >>> "#interconnect-cells": >>> const: 1 >>> >>> + nvidia,bpmp: >>> + $ref: /schemas/types.yaml#/definitions/phandle >>> + description: phandle of the node representing the BPMP >> >> Why do you need this multiple times? Both in parent and all external-mc >> children? > > We've had nvidia,bpmp in the external memory controller node since > basically the beginning because we've always needed it there. For newer > chips we now also need it for the memory controller. > > Ideally I think we would only have this in the MC and have the EMC > driver reference it via the EMC's parent (i.e. MC), but that would break > backwards-compatibility. Reaching into the EMC's DT node from the MC was > another option that we discussed internally, but it didn't look right > given how this is also needed by the MC. > > One thing we could potentially do is deprecate the nvidia,bpmp phandle > in the EMC and only keep it as a fallback in the drivers in case the > parent MC doesn't find it's own in the DT. Yes, deprecation would answer to my question. Best regards, Krzysztof