Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4417371rwr; Mon, 8 May 2023 07:25:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7F6fINhQYUr4ZK7aZLlvkDz8LpR1iYTwfQwxg0BXAZBCAXfIco/KbSJz6GCDC+xnpyCbuv X-Received: by 2002:a05:6a00:1742:b0:637:c959:8ea1 with SMTP id j2-20020a056a00174200b00637c9598ea1mr13497014pfc.22.1683555927990; Mon, 08 May 2023 07:25:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683555927; cv=none; d=google.com; s=arc-20160816; b=0WZerSHs9nYBZ7QD/39EvB2ukCWSACK//+QEHE6kOkv2C7UyQ5ru19r90QtMsZrDq8 msJkSECXMKUlnPuURApxPKeO/f8NrP4IA3rgwMDhCko6SWC8HMgKeNe4mKI9Mv9bNM3/ vbWS/cj19+ekJEmWCFLprPEXkEpkmH/2sQ9Z2l1OJVU4RXAAu4+n6EAQPzXNepnlwlcx SgrkrapzqhBwyPnC9NrmuIOcD3ad8Ahgm3Grg2SWMFd00Yro1xwYWOTitPNlnuk33imO VjYI278PhkxXu4X4KMJWJl1DXLUbCVXbF+2IQao2iyApF1YaLaeuFo8gCN60pez8FEcX 7Adw== 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=ownDs96VmZuf2SD3gS4UazEGTd4JsZ/cGQWhog0hNx8=; b=mnhg6x11MNPv+uFbrVVj3aPTCSEUCb+HvxM9QYXbhjLfzAsMGN5igx7zQYA+ur14CG pq2QOJUBbJA9/8nlGLLloKIaFTy2SpI2VoejieObjooJYw34T3VkPbFQbJOoEErnAdXF y6VhAQILEjqabo8ws4046OZxA7rYv1imJQ507jPVBixVnCl3/AFQytrFXHTD7xq4FExt GFqPX2nwYP7gl2SHu2SW3uDwelXW5CXx4qLtngoCMC/NSeB0LyVHel+3/OgZDGXKJVR5 fmL54MvMChw6CuYx8nZGbI+OP2Dz0VdZBBxTIVP6xJOSKzPbmDWG0KEMQUS011OABPts yqXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iu+iZGfP; 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 n21-20020a638f15000000b005217446e9fdsi8391146pgd.669.2023.05.08.07.25.13; Mon, 08 May 2023 07:25:27 -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=iu+iZGfP; 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 S233722AbjEHORx (ORCPT + 99 others); Mon, 8 May 2023 10:17:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233491AbjEHORv (ORCPT ); Mon, 8 May 2023 10:17:51 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 424EF19AF for ; Mon, 8 May 2023 07:17:50 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-9659c5b14d8so737991466b.3 for ; Mon, 08 May 2023 07:17:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683555469; x=1686147469; 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=ownDs96VmZuf2SD3gS4UazEGTd4JsZ/cGQWhog0hNx8=; b=iu+iZGfPr4HbdXLGQeG5JZH80mbVi4fy7axe2WAwYlOvsmJ3zh2Z5gbnd+Jq//v/RJ hgkUFpB/STejIWxcxxYvXlsQzOd7/aN1Rc7JBXrfLo2FesYT8SOGtYs3VgzN7OXS8amJ ab4KD//BjGTO+eoplp2ZCIMc0gtGbg5EaJqt6yUi39vpfNAue9xvU/THJPbTmsuq9gD2 Kb6XtVEKaqleJROnJRNQf4UNxNAwrwrrT+T9w0fWotk8JA5XZdpIqrfK2mUhOAr50Ofj onwKO8p7VFAOku/1HDv8vlyqmSORhuMlo/BK1wfQghwAMW0VlBq12IaQ/ubTIIJUqWHp VuVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683555469; x=1686147469; 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=ownDs96VmZuf2SD3gS4UazEGTd4JsZ/cGQWhog0hNx8=; b=SGJMfvu3Lyp3WtWcTRRTJYjlWY9ZItMkpluyCedPHN948s0NVBOxRn/xD6004NFjyM 9tTsaqsE5Pqy8cscVHBVVnCyTbXy4JYth2q13vsfzF0KujrvkYhNVFc2aVP6keUL2gXv z+NFlJtZkHVXDLbVc7jA1ryFQpJ7fZCxA1WwSkhZdQ3Ul1HJr4ziA0co4Y1UfWelT+6s nSQ9q8vd++DRXb8t7nuk0BN+3K2+H6EY07uXKklmd/wjD/ohZFN3r/NB5pqS0RwTCszr CHK6vGY5+Pi2HPtq3tRfHAW2SCclKpiWnfnJ19MiWOFZVrRfDKFUE5d4x7n0JNAkK2TL roCA== X-Gm-Message-State: AC+VfDxq+afe8qqjYlxIW5JyRkHyCW4DpJfbPU3lkslfCoAPI6TEp6Y8 uc34d0Qv26AhlUfnef8LLOoDxg== X-Received: by 2002:a17:907:2d26:b0:94f:3804:5cd6 with SMTP id gs38-20020a1709072d2600b0094f38045cd6mr9550720ejc.66.1683555468736; Mon, 08 May 2023 07:17:48 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:50e0:ebdf:b755:b300? ([2a02:810d:15c0:828:50e0:ebdf:b755:b300]) by smtp.gmail.com with ESMTPSA id v9-20020a170906338900b0094ee99eeb01sm21627eja.150.2023.05.08.07.17.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 May 2023 07:17:48 -0700 (PDT) Message-ID: <7e16c25d-ab17-741a-1c7c-6cf1462eef5b@linaro.org> Date: Mon, 8 May 2023 16:17:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 4/5] dt-bindings: Add bindings to support DRAM MRQ GSCs Content-Language: en-US To: Peter De Schrijver , "thierry.reding@gmail.com" , Jonathan Hunter Cc: "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "conor+dt@kernel.org" , "devicetree@vger.kernel.org" , "linux-tegra@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Stefan Kristiansson References: <20230508122048.99953-1-pdeschrijver@nvidia.com> <20230508122048.99953-5-pdeschrijver@nvidia.com> <43945fad-f57b-cfd9-78bd-9ec9e6628382@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.9 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,T_SCC_BODY_TEXT_LINE 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 08/05/2023 16:12, Peter De Schrijver wrote: > > > ________________________________________ > From: Krzysztof Kozlowski > Sent: 08 May 2023 17:04 > To: Peter De Schrijver; thierry.reding@gmail.com; Jonathan Hunter > Cc: robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org; conor+dt@kernel.org; devicetree@vger.kernel.org; linux-tegra@vger.kernel.org; linux-kernel@vger.kernel.org; Stefan Kristiansson > Subject: Re: [PATCH 4/5] dt-bindings: Add bindings to support DRAM MRQ GSCs > > On 08/05/2023 14:20, Peter De Schrijver wrote: >> Add bindings for DRAM MRQ GSC support. >> >> Co-developed-by: Stefan Kristiansson >> Signed-off-by: Stefan Kristiansson >> Signed-off-by: Peter De Schrijver >> --- >> .../firmware/nvidia,tegra186-bpmp.yaml | 69 ++++++++++++++++++- >> .../nvidia,tegra264-bpmp-shmem.yaml | 40 +++++++++++ > >> Why touching two files? > > Because both are needed to support having MRQ GSCs in DRAM. Yeah, but why two in one commit? All patches are needed for full support and they are not squashed into one. > >> 2 files changed, 106 insertions(+), 3 deletions(-) >> create mode 100644 Documentation/devicetree/bindings/reserved-memory/nvidia,tegra264-bpmp-shmem.yaml >> >> diff --git a/Documentation/devicetree/bindings/firmware/nvidia,tegra186-bpmp.yaml b/Documentation/devicetree/bindings/firmware/nvidia,tegra186-bpmp.yaml >> index 833c07f1685c..d818cfe1d783 100644 >> --- a/Documentation/devicetree/bindings/firmware/nvidia,tegra186-bpmp.yaml >> +++ b/Documentation/devicetree/bindings/firmware/nvidia,tegra186-bpmp.yaml >> @@ -57,8 +57,11 @@ description: | >> "#address-cells" or "#size-cells" property. >> >> The shared memory area for the IPC TX and RX between CPU and BPMP are >> - predefined and work on top of sysram, which is an SRAM inside the >> - chip. See ".../sram/sram.yaml" for the bindings. >> + predefined and work on top of either sysram, which is an SRAM inside the >> + chip, or in normal SDRAM. >> + See ".../sram/sram.yaml" for the bindings for the SRAM case. >> + See "../reserved-memory/nvidia,tegra264-bpmp-shmem.yaml" for bindings for >> + the SDRAM case. >> >> properties: >> compatible: >> @@ -81,6 +84,11 @@ properties: >> minItems: 2 >> maxItems: 2 >> >> + memory-region: >> + description: phandle to reserved memory region used for IPC between >> + CPU-NS and BPMP. >> + maxItems: 1 >> + >> "#clock-cells": >> const: 1 >> >> @@ -115,10 +123,16 @@ properties: >> >> additionalProperties: false >> >> +allOf: >> + - oneOf: > > Keep just oneOf and drop allOf. ??? I wrote this. Fix your mailer. > >> + - required: >> + - memory-region >> + - required: >> + - shmem >> + >> required: >> - compatible >> - mboxes >> - - shmem >> - "#clock-cells" >> - "#power-domain-cells" >> - "#reset-cells" >> @@ -184,3 +198,52 @@ examples: >> #thermal-sensor-cells = <1>; >> }; >> }; >> + >> + - | >> + #include >> + #include >> + #include >> + >> + hsp_top0: hsp@3c00000 { >> + compatible = "nvidia,tegra186-hsp"; >> + reg = <0x03c00000 0xa0000>; >> + interrupts = ; >> + interrupt-names = "doorbell"; >> + #mbox-cells = <2>; > >> Why HSP example is here? > > Because it's referred to further down the example. Not needed. > >> + }; >> + >> + reserved-memory { >> + dram_cpu_bpmp_mail: shmem@f1be0000 { >> + compatible = "nvidia,tegra264-bpmp-shmem"; >> + reg = <0x0 0xf1be0000 0x0 0x2000>; >> + no-map; >> + }; >> + }; > > Drop, fairly obvious and should be in that binding, not here. ??? Please use mailing list style of replies. Best regards, Krzysztof