Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp12031rdb; Thu, 5 Oct 2023 14:52:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEgWeAKPBoKMypCn/9tkG+v6ZnhwEKs0bYi586aTRaOiHzW1oIYeYkBh4Up5RZ2ThYJTcyw X-Received: by 2002:a05:6a00:190e:b0:68b:fdfe:76c2 with SMTP id y14-20020a056a00190e00b0068bfdfe76c2mr6672161pfi.20.1696542749441; Thu, 05 Oct 2023 14:52:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696542749; cv=none; d=google.com; s=arc-20160816; b=ntSYhDX65I4iqYosoEtZas8EXT5+ArrDOd+CIsKLhPAEX2qBoZIpZSDFKn5tJxOBhq GQeScPLaZiEV+nHqJNBl1PckBrXCbTuzW3DurPSpO0spe2jK7+dKzMryJ5D1cHRi8bli z6tGDFYQKfKicuDjQiG8aiF9vaFtCMJEpT6/g5xAkmDT0gVgM/Tp9esIVPGZ3EwwqCgC mwehpHJEKgkSYyvA2oL323sBDumGXo2lKcvgdiLWyFr8GtwKRxldLEQNw/b2l7iDkGp/ WejdJLUBgxxzTHGLuws8MppDImOxGskXf+igRe67e95M3TQTCuO8QPgecOBcg5DaGF1k TF2g== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Viu3LjCg+nNUsV+HufaTsTHKmI5wxtsYvzyN9kVT2XI=; fh=/65cHEcTt3jRPfBs8fHZxCDpxgJR6y+TYbcY3XFviqQ=; b=ZMG3+zwJtAOQaC+0D3rJpwYVeY9rMBUbHCcdaFoxRVlhfwF6O1M0W9NWQJ3KivgRbJ 7LAiy8dCUNBDNP5zqJO0n6mmXwGivdOePF6qmgNSChXy+GdqEUUlchCWuN/tPfSOiQ+X vGq6RgmBmKu7/N4rcEj4anmHrebCj2I8G+8A6jgaaSI6i+xRDPGbD874RDclNeRj6MXQ lqMXkqUkjq9Kjwhj4vwHnrpojP1YHqFFKBWEYiyWuym6/03JCSgNn5HCN5sVziPx0HRX jJj/qehBuJPTn3CNiLadgrFB5bELKz+hJLObsQuSA0fVn/QTseusWU+PggJgDutMOqhh PT3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=S4R2zfLx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id ay32-20020a056a00302000b00690d935fa5asi105425pfb.59.2023.10.05.14.52.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 14:52:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=S4R2zfLx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 365858082916; Thu, 5 Oct 2023 14:52:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229937AbjJEVv6 (ORCPT + 99 others); Thu, 5 Oct 2023 17:51:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbjJEVv5 (ORCPT ); Thu, 5 Oct 2023 17:51:57 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF80E9E; Thu, 5 Oct 2023 14:51:54 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 395Lk9ID008481; Thu, 5 Oct 2023 21:51:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=Viu3LjCg+nNUsV+HufaTsTHKmI5wxtsYvzyN9kVT2XI=; b=S4R2zfLxczirmvgMYFY1qLQ8rFmAj1CsN0x0FWPYn52yfthFC4ake9hYYs+p6eHQQRyI XdDCDdStD/OrgADASq3qrrCsH+4aGu7X59sXv7y3Cgut1Kx8N/iUxb24Yoc6L/uphqAx xJ8B0molGCpUBxpH7urvtehuO+IWkDPTtMQFWPthA9w2bqSHwO4IPD+aTBjsQludXR8F rD88RzCeFKe21yVrr2449DGD0OiltX8Ewa5qVvf9i6VM+JkeDZ12BBrIvm0mN0zs/dRW h1x2tX1kXC5YDI2pqJrwXxRYaoDYjrUglqCB/+MCcjCQ/HgFKxWJospG3ad8043Zz/eF iw== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3th8e1v0hu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Oct 2023 21:51:30 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 395LpT2R011848 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 5 Oct 2023 21:51:29 GMT Received: from [10.110.20.163] (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Thu, 5 Oct 2023 14:51:29 -0700 Message-ID: <2c196f9a-b61e-914b-1999-e9e82d16dc6e@quicinc.com> Date: Thu, 5 Oct 2023 14:51:28 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v4 3/4] dt-bindings: arm: Add new compatible for smc/hvc transport for SCMI To: Sudeep Holla CC: , , , , , , , , , References: <20230718160833.36397-1-quic_nkela@quicinc.com> <20230911194359.27547-1-quic_nkela@quicinc.com> <20230911194359.27547-4-quic_nkela@quicinc.com> <20231003104404.o7yxg3y7dn7uhrq4@bogus> <7c871b23-5544-6604-257d-f0c8fd5afd06@quicinc.com> <20231004155310.zqwlj6boy65atoyq@bogus> Content-Language: en-US From: Nikunj Kela In-Reply-To: <20231004155310.zqwlj6boy65atoyq@bogus> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 3IJBeV3tF0Is9MaS0KLzcGoF_PMa2-QG X-Proofpoint-ORIG-GUID: 3IJBeV3tF0Is9MaS0KLzcGoF_PMa2-QG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-05_16,2023-10-05_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 suspectscore=0 adultscore=0 priorityscore=1501 mlxscore=0 lowpriorityscore=0 spamscore=0 bulkscore=0 mlxlogscore=999 malwarescore=0 impostorscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310050166 X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,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 fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 05 Oct 2023 14:52:08 -0700 (PDT) On 10/4/2023 8:53 AM, Sudeep Holla wrote: > On Tue, Oct 03, 2023 at 08:59:45AM -0700, Nikunj Kela wrote: >> On 10/3/2023 3:44 AM, Sudeep Holla wrote: >>> On Mon, Sep 11, 2023 at 12:43:58PM -0700, Nikunj Kela wrote: >>>> Introduce compatible "qcom,scmi-hvc-shmem" for SCMI smc/hvc >>>> transport channel for Qualcomm virtual platforms. >>>> The compatible mandates a shared memory channel. >>>> >>>> Signed-off-by: Nikunj Kela >>>> Acked-by: Krzysztof Kozlowski >>>> --- >>>> .../devicetree/bindings/firmware/arm,scmi.yaml | 12 ++++++++++++ >>>> 1 file changed, 12 insertions(+) >>>> >>>> diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml >>>> index 8d54ea768d38..4090240f45b1 100644 >>>> --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml >>>> +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml >>>> @@ -45,6 +45,9 @@ properties: >>>> - description: SCMI compliant firmware with OP-TEE transport >>>> items: >>>> - const: linaro,scmi-optee >>>> + - description: SCMI compliant firmware with Qualcomm hvc/shmem transport >>>> + items: >>>> + - const: qcom,scmi-hvc-shmem >>> Can it be simply "qcom,scmi-smc" for 2 reasons ? >>> 1. We don't support SMC/HVC without shmem, so what is your argument to add >>> '-shmem' in the compatible here ? >> In our platforms, there are multiple ways to allocate memory. One is >> preallocated shmem as used here, another is dynamically by hypervisor APIs. >> shmem was to just to indicate it is preallocated. >> > Let us keep it without shmem. If it is dynamically allocated, you must not > need another compatible as you can check it at the runtime. > >>> 2. The exact conduit(SMC/HVC) used is detected runtime, so I prefer to keep >>> '-smc' instead of '-hvc' in the compatible just to avoid giving an illusion >>> that HVC is the conduit chosen here based on the compatible. It can be true >>> for other reason but I don't want to mislead here by using HVC. >> IUUC, currently, conduit comes from PSCI dt node. We have been using smc for >> PSCI but want to use hvc here. That being said, I am fine to explore if we >> can change PSCI to use hvc too. >> > I think only OPTEE has explicit conduit other than PSCI and it is continued > for legacy/compatibility reasons IIUC and IIRC. Anything else depends on > the conduit used by PSCI to be consistent. So yes you need to use what the > PSCI conduit is and you don't need the extra information from the DT either > as new property or in the compatible. Ok, will use conduit then. Thanks! >