Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2955206rwl; Mon, 27 Mar 2023 07:29:09 -0700 (PDT) X-Google-Smtp-Source: AKy350Y9j4I1pnKeEiJ1+OgEkTl0gN9wrYribHm0JH9oNbtghQDliWLAGfFHPgqTvU8ydS1Y8BCp X-Received: by 2002:a62:19cb:0:b0:624:7c9a:c832 with SMTP id 194-20020a6219cb000000b006247c9ac832mr11141003pfz.8.1679927349478; Mon, 27 Mar 2023 07:29:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679927349; cv=none; d=google.com; s=arc-20160816; b=e3YdZmSWK/f74ot5sl85DhpGPoaVitS9foiFhge4zJUsEnQa5pZq4bgto8R9NWlWe/ VzVlCs/8wE+zWwujMMsgzZzdCu2G6FPFF32mazTJiJI1WX+jFj9X4k6Z1SMl2IbuSUno squ2Ll9GFhQfjUAPciObeN92rU1T/q/noC6+fu7WRSOkw6Fv1+p/iR7KnlfwctGYdc2M +XZ/y2YdV4yoHHFyAX/FrSfxmfly6jVB1QI2dets0jNkatwmNfeSQrNgoUd5ZdptH4My YxOyaQNysc8nErl0Kgfzo8oruY4shIbC3rNPbrK2vng7BcNyu2+Xrel+bWRWuG4NrXQ4 0ylA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=9rOAJ6mYjJCPRKt+lu0rKWy0FC1qYxXDWw3444VdaWE=; b=DeldiKIFFPnPccARDGgpPQQeeMrp06Ntv9GCx1cEvAy0HMCb0UdVyxpdwclQ4o59Yz K4Fd058pN2vsmB5j0zr7phalLt8v0GN/Ar6lqqKjkeN1axbLtGQuLDv3hOU3AvqIzNSj 8DldldnjfGtWgAqZtJt12fWckshWVJgcqyP3aTG7UYky5fxAdDlV87SKHY3ldBOGcldW UaTZqBfWHO1vLdpmV5fEnZT/D9a7C4lX7trA6twVPqaUn9/hy14GsVhDtMMedxheNCo7 FM5D9kI87tnLVow1AXh2Rpdq8EzCmQVLEpmio1Fh329f9/fXloU3WtfWzbMuh9m+W/Oy HJuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dylanvanassche.be header.s=MBO0001 header.b=y8eULv06; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c5-20020a6566c5000000b0050f6aaf7f27si22016267pgw.331.2023.03.27.07.28.56; Mon, 27 Mar 2023 07:29:09 -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=@dylanvanassche.be header.s=MBO0001 header.b=y8eULv06; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=dylanvanassche.be Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232829AbjC0O2A (ORCPT + 99 others); Mon, 27 Mar 2023 10:28:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233117AbjC0O1l (ORCPT ); Mon, 27 Mar 2023 10:27:41 -0400 Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [80.241.56.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5727955A3; Mon, 27 Mar 2023 07:26:50 -0700 (PDT) Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4PlZr51Rwfz9t6d; Mon, 27 Mar 2023 16:26:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dylanvanassche.be; s=MBO0001; t=1679927189; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9rOAJ6mYjJCPRKt+lu0rKWy0FC1qYxXDWw3444VdaWE=; b=y8eULv06lBVmn/GXaB7wAZ9IFTinKqgYb15FTQZccKVKcLhDkG6AxkYJaLPLCjYLDlACKv UCbohsS1oFS0e9/OdkC9owIEycxFqJeP2DV6ZunxEyZTlDL+bPb87smd+qWTeCm+6e1gps R/lio4sh1rcYq8OTC82qVq5//wc7qNTu5yr/m5qhSxhESrNl0MIDHAWL6c/7WiuX8D3x2J yNdRK0b/ABEnblPJfFtZybpEutoYT3Hn0jhNuvNrAySvn9SBgEzjq87FNzPCwR8Ye4z1vc e10P+LN6LFcYsW4RyPlB3q/CXpzCamf4z0Oh4SkFcBwDNUrlYLhjFH6XAxyHRQ== Message-ID: <1f3fb4bd5387c8d69a6eb068fb773b9273081c13.camel@dylanvanassche.be> Subject: Re: [PATCH 1/2] dt-bindings: misc: qcom,fastrpc: add qcom,assign-all-memory property From: Dylan Van Assche To: Krzysztof Kozlowski , Srinivas Kandagatla , Amol Maheshwari , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski Cc: Konrad Dybcio , Arnd Bergmann , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org Date: Mon, 27 Mar 2023 16:26:25 +0200 In-Reply-To: <44904ffc-83d4-1137-3479-737a81b31d16@linaro.org> References: <20230325134410.21092-1-me@dylanvanassche.be> <20230325134410.21092-2-me@dylanvanassche.be> <883c3c48-c6e5-556d-431f-e92592b9106a@linaro.org> <44904ffc-83d4-1137-3479-737a81b31d16@linaro.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Hi Krzysztof, On Mon, 2023-03-27 at 14:22 +0200, Krzysztof Kozlowski wrote: > On 27/03/2023 13:37, Dylan Van Assche wrote: > > Hi Krzysztof, > >=20 > > On Sun, 2023-03-26 at 10:55 +0200, Krzysztof Kozlowski wrote: > > > On 25/03/2023 14:44, Dylan Van Assche wrote: > > > > Document the added qcom,assign-all-memory in devicetree > > > > bindings. > > > >=20 > > > > Signed-off-by: Dylan Van Assche > > > > --- > > > > =C2=A0Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml | 6 > > > > ++++++ > > > > =C2=A01 file changed, 6 insertions(+) > > > >=20 > > > > diff --git > > > > a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml > > > > b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml > > > > index 1ab9588cdd89..fa5b00534b30 100644 > > > > --- a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml > > > > +++ b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml > > > > @@ -57,6 +57,12 @@ properties: > > > > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Virtual machine IDs for remote= processor. > > > > =C2=A0=C2=A0=C2=A0=C2=A0 $ref: "/schemas/types.yaml#/definitions/ui= nt32-array" > > > > =C2=A0 > > > > +=C2=A0 qcom,assign-all-mem: > > > > +=C2=A0=C2=A0=C2=A0 description: > > > > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Assign memory to all Virtual machin= es defined by > > > > qcom,vmids. > > >=20 > > > This (neither commit msg) does not explain why this is needed and > > > actually does not sound like hardware-related property. > >=20 > > This is made a separate property to toggle different behavior in > > the > > driver if it is needed for some FastRPC nodes.=20 >=20 > Bindings are not for driver behavior. >=20 > > Downstream does guard > > this with a property 'restrict-access' as well, see [1] for a > > random > > SDM845 downstream kernel. On SDM845, this property is not present, > > thus > > the IF block runs. On SDM670, this property is present, then the IF > > block is skipped. That's why I opt for this property to have this > > behaviour conditionally. I'm not sure how to explain it better > > though. >=20 > Still you described driver... Please come with something more > hardware > related. So just updating the description is enough then? As this is all reverse engineered, I have no access to the documentation of FastRPC, so best effort: """ Mark allocated memory region accessible to remote processor. This memory region is used by remote processor to communicate when no dedicated Fastrpc context bank hardware is available=C2=A0 for remote processor. """ Is this the description that is 'more hardware related'? Kind regards, Dylan Van Assche >=20 > Best regards, > Krzysztof >=20