Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp570049rwd; Thu, 8 Jun 2023 05:04:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7cx44ptdHNk1Hqcq+oZ1iRwFKAOCYmhiBQA3xm0Pu2naK/4w+0Z9dXt3Yiy/U621y6jP5H X-Received: by 2002:a05:6a00:170d:b0:658:e95b:256a with SMTP id h13-20020a056a00170d00b00658e95b256amr5190244pfc.1.1686225874834; Thu, 08 Jun 2023 05:04:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686225874; cv=none; d=google.com; s=arc-20160816; b=A9MNI384/IOHRGQKGhksf6caJKpVizs1tgAc19AmuKipwCc0Zm28h+MMWeaELVX8mX fN20Qq6kxBmtiizXUHSM/m4eT4chxn9Fqv+i33T01lLQDdDFKaYFQ0KhzMfhKuOs8DJz UjGM16zYBEB2pXheoxTAzv+9B6EQaS+CfCJpHV4B9IxyWbE2Ab0j0J56VGxx6/cipQdW qjtrXZFujGUOL6rBvCSnEdHZzx8EMMO9m0nrN5JoOYem3VfsAO5ox61FQ5l588zSxKNI hNa0O/ER5i9HhPk8f5ov92hm/BVdX12fmXbeazb3z/nDDCfz2RIASXYahuELsT+RcXGU QN4Q== 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=IqHeY5G7mIeiooI7ja9w9njq/KqOX5B4nHAoGGVWiBk=; b=NxAT29Tka4bPxoIez0XMDLKTbXc90IWfDwd6+Cu5Vo7KjZ7vLfxTHjKgLWeyeqHTrh n5GApgL2IUM6ras8WQQ4nFU+24lduEaV98TxorjmP3EqODXsIERmAw7ia3tjyxdVGjoE JYe6zLzQ0JfqDRTu5PvWUv2rwXUmvCLagDX3OC+QZEft/VB9SK1I3hkFVTwOF+I4xARy AOvUyjjZAzI5ntzKQBpvbWmxjQSc/070cIM/lJMPdhNrDcFVlOHKqumfBNBMdkmZgOcW 7Sz2FuFgwHvN+w9Cng0A+YnyMEd5usZcDP6EUZopZRvhYxvT0dkAWU5+sRcsqRhiRxcF ebtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=y3dQmK7a; 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 s20-20020a056a00195400b0064d6c74a8bbsi791818pfk.98.2023.06.08.05.04.17; Thu, 08 Jun 2023 05:04: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=y3dQmK7a; 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 S235721AbjFHLd2 (ORCPT + 99 others); Thu, 8 Jun 2023 07:33:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235456AbjFHLd0 (ORCPT ); Thu, 8 Jun 2023 07:33:26 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18307270B for ; Thu, 8 Jun 2023 04:33:25 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-97668583210so79241866b.1 for ; Thu, 08 Jun 2023 04:33:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686224003; x=1688816003; 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=IqHeY5G7mIeiooI7ja9w9njq/KqOX5B4nHAoGGVWiBk=; b=y3dQmK7aPMR+m7bDoIYNkOxdVSh4YHDPLQ6ZD/TklPbRUFXC3ugRN4H47WJzBWQZin VI+qaEpaNDYf9R21IHg6Drqcqq5TklxpZNFXf1rjDa0IlFVoNFH01SdPDuJCFAH4y4bi brbYQybxma6THxKe8VbzdNkqPhu+dv9X22rbK5cCu5lHu/eF3yMswWIA8rSfPPMzdlFO 2nqO0pfeCqUOFWsZxc2u7NxxDsI+5AgfTJ2j7GZIElSyKC+CWg4U0iMIEUJQodualwNG l7rwotR3e2nWo2eFVeX+IZGEON8e5cppPZCgNdlDpYUXg45qqrlq/R6NzPNmR2UY++yc 4YpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686224003; x=1688816003; 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=IqHeY5G7mIeiooI7ja9w9njq/KqOX5B4nHAoGGVWiBk=; b=MtRIuR2Ef4R9XHTTPHqZfsl+Mw8mvUk3iykIoqjubCzC/LwQd/IcIBrO/6uF2BvZJ8 hNbNw1AkD4uiIm81q1qX99qKIZJjdT+5RhcgE5e2zyDqXqBi8T8CmuTSus0Sgg0fIMew c5kjd0QHNVzVVXDeR36ZFzGo/Luz1aE3NeKWVRGO4An5GoPwCpC2Ps1eNmX0BX4qSV2g ZPnSrlwkYgcWc94cKsxfzCNO8a8LlHbYMxkWFhgW/lKXMcCgY1veOGUgGBd1TIfLyV+Y b62zLOGzIJSOh+5Q3sKbDdu1A1y+wUw0PVq3Ni5folUYs6ABI7kmiqfwcgNg74fQODek W5RQ== X-Gm-Message-State: AC+VfDwbTkQ9hdGwEpMxHW5dn5vRbhtgJfupM9VZh3445WTCOJ0Hg46/ VgA0gNAH84vnyf+LksmaAdfFaQ== X-Received: by 2002:a17:907:3f13:b0:96a:19d8:f082 with SMTP id hq19-20020a1709073f1300b0096a19d8f082mr11607970ejc.25.1686224003570; Thu, 08 Jun 2023 04:33:23 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id n15-20020a170906b30f00b0096f67b55b0csm585508ejz.115.2023.06.08.04.33.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Jun 2023 04:33:23 -0700 (PDT) Message-ID: <093c23a6-1c0f-6e86-3abb-a8267ebeed52@linaro.org> Date: Thu, 8 Jun 2023 13:33:21 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [RESEND PATCH v1 1/2] dt-bindings: misc: fastrpc: add fastrpc group IDs property Content-Language: en-US To: Ekansh Gupta , srinivas.kandagatla@linaro.org, linux-arm-msm@vger.kernel.org Cc: ekangupt@qti.qualcomm.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, fastrpc.upstream@qti.qualcomm.com, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org References: <1686155407-20054-1-git-send-email-quic_ekangupt@quicinc.com> <1686155407-20054-2-git-send-email-quic_ekangupt@quicinc.com> <44267461-e6f9-b549-a8eb-cba76384660b@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 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/06/2023 12:36, Ekansh Gupta wrote: > > > On 6/8/2023 12:14 AM, Krzysztof Kozlowski wrote: >> On 07/06/2023 18:30, Ekansh Gupta wrote: >>> Add "qcom,fastrpc-gids" property to the list of optional properties. >>> This property contains the list of privileged group IDs which is >>> used to offload process to remote subsystem with increased privileges. >> >> Why or when anyone would use this property? >> > This property can be used for the use cases which requires prioritized > access to remote subsystem resources. This does not help me much yet.... Which systems or boards need prioritized access? >>> >>> Signed-off-by: Ekansh Gupta >>> --- >>> Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml | 6 ++++++ >>> 1 file changed, 6 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml >>> index 1ab9588..2a2124f 100644 >>> --- a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml >>> +++ b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml >>> @@ -57,6 +57,11 @@ properties: >>> Virtual machine IDs for remote processor. >>> $ref: "/schemas/types.yaml#/definitions/uint32-array" >>> >>> + qcom,fastrpc-gids: >>> + description: >>> + Group IDs for fastrpc. >> >> You just pasted here property name. It does not help me to understand >> what's this. Explain in description. >> > I'll add more details here when I re-submit the patch. >>> + $ref: "/schemas/types.yaml#/definitions/uint32-array" >> >> Drop quotes. >> >> missing min/maxItems. >> > I'll update this in v2. Thanks for reviewing. >>> + >>> "#address-cells": >>> const: 1 >>> >>> @@ -120,6 +125,7 @@ examples: >>> qcom,glink-channels = "fastrpcglink-apps-dsp"; >>> label = "sdsp"; >>> qcom,non-secure-domain; >>> + qcom,fastrpc-gids = <2908> >> >> Eh, what does 2908 stands for? Why not 3012 or 1842? How anyone can >> figure this out? >> > There is no hard restriction for this value to be 2908, it can be > anything. Just that the process which needs a privileged offload to any > remote subsystem should have the same gid which is defined here, whether > it is 2908 or anything else. > > The intention of having 2908 in example is because this is used in > Android world where any process running with 2908 gid can offload as > privileged process to remote subsystem. > Ref: > https://review.lineageos.org/c/LineageOS/android_device_motorola_sm7250-common/+/305612/4/config.fs > > But, it can be set to anything just that the process also needs to adapt > to this gid. So this is process ID? Group ID? GID? Why would you ever encode group IDs, which change in every installation, or process IDs, which change every boot, in DTS common for all devices? This is not a DT property. Best regards, Krzysztof