Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2057153rdb; Tue, 3 Oct 2023 09:00:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHgw0s4U7uNgE40NYYQC1OhL8T6Jud49Q8cqS3nttJYdwn7HkHtjIdLYBDteY0QdtquRMtw X-Received: by 2002:a05:6870:a108:b0:1bb:fa96:ae0e with SMTP id m8-20020a056870a10800b001bbfa96ae0emr9028oae.22.1696348831984; Tue, 03 Oct 2023 09:00:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696348831; cv=none; d=google.com; s=arc-20160816; b=KJhpjra3sbO5TYUhKbaDhSnvNkw9II0mRCWeHZdJr+trJ0ELEPAcjHuNiiYCLX6tix ZrBDzgmW9VC0eNgyoxuUm3+tW3i9oYJLsovKl6xOC6FvIlsKqmJ+beFybDLQ4WBxYtAd /9RYQyZ7q4GkdpLL34vKjnNuUumNIJiV9cBCuHx0/jpgTL14u8KMa2AlRQEHFuztDdEQ dr/h6dFtwPj6h6SI9Na2ve6Pzfg3PLnnqZlEvL+bbPS9XTpE/Uc5YS1A4rLqw0YURCV6 3QpGQau/BnV5mZRCiiZYkEZZ2gD36wmQj9QW7aHG6tK+qo9rdC+9PO9YGI+fQTH0Ov1/ 0DcQ== 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=ADaA/9nF9XWLSlIH/V1+7qMot+xDTDjD4TBk10pSGI0=; fh=/65cHEcTt3jRPfBs8fHZxCDpxgJR6y+TYbcY3XFviqQ=; b=edFJANlpDEDT5/FUO6lZUaFujmP1sp9R4Z3AlbhoyaqPyvSFHPGYq/kv+TZ1xnkipI pECLfZuGcuOFDf/zeMTNABgoTwWsTrI0A0XNygCG8j9D+AaepYzi0jE6yTSQH2hHbECB 18R2kMwZHwcJw/af+FCL3vwVCh/wLLK3gw+ZIT66LPqsTfQTWlRjBNa3pgGvzNcJ2KKR i7mCTeFId23KepXNt2EdEj7+tepevWUTDPUoQw5tqpPCaBHaER4GiEJZsc+3Pmcrtyii ZP4g7Qwv88V/SlUjJLllJ7XUL4oJ3SZ6fl1RdAez2j1nbnWMUbEaML/wWI77qJ9LJaPT 7Q0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=DWL+1lhi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id v70-20020a638949000000b0057884435a71si1715223pgd.396.2023.10.03.09.00.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 09:00:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=DWL+1lhi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 9599E82C52C1; Tue, 3 Oct 2023 09:00:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240281AbjJCQAI (ORCPT + 99 others); Tue, 3 Oct 2023 12:00:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240341AbjJCQAD (ORCPT ); Tue, 3 Oct 2023 12:00:03 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2C51114; Tue, 3 Oct 2023 08:59:58 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 393Dtihq014212; Tue, 3 Oct 2023 15:59:47 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=ADaA/9nF9XWLSlIH/V1+7qMot+xDTDjD4TBk10pSGI0=; b=DWL+1lhiby6lsHUzhFN+3eiWLLkHmFPnxn1CZYV/hkpFAGYQg33qauXpj3c0CczXqc8i Sy+771zoE6r9oF5jQEWtsIgHQhDgJ2sBcV9MMt8M6kKhsNf2QkSWo5ErbIBbIW3bPeD3 pF49BtILMs63wJnmcemMy7niXpYGqNasPjXhQWxqB3siJ6QsBi9Ebh5TOcNk3GapMrGS p71xpK7QktDhi1SVfGkNDFzyfeFxmifoNVTgb77vzICZKXi3evPct0UHA1tzcD/JGIQb LR1oUbCsgbhqUGiHwB1Ix5OskmPHPY4jdnu/qBV3MfuJd0XWXiy4JxQEm6TDtcv0bfYX vw== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tg98rhsbx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 03 Oct 2023 15:59:47 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 393FxkvX000946 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 3 Oct 2023 15:59:46 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; Tue, 3 Oct 2023 08:59:45 -0700 Message-ID: <7c871b23-5544-6604-257d-f0c8fd5afd06@quicinc.com> Date: Tue, 3 Oct 2023 08:59:45 -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 Content-Language: en-US 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> From: Nikunj Kela In-Reply-To: <20231003104404.o7yxg3y7dn7uhrq4@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-ORIG-GUID: LCfrz6QFLV8u2SOKqyuHcQWBXIMu85DO X-Proofpoint-GUID: LCfrz6QFLV8u2SOKqyuHcQWBXIMu85DO 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-03_12,2023-10-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 bulkscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 mlxscore=0 malwarescore=0 phishscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310030119 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_LOW, SPF_HELO_NONE,SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 03 Oct 2023 09:00:28 -0700 (PDT) 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. > 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. >> interrupts: >> description: >> @@ -320,6 +323,15 @@ allOf: >> required: >> - linaro,optee-channel-id >> >> + - if: >> + properties: >> + compatible: >> + contains: >> + const: qcom,scmi-hvc-shmem >> + then: >> + required: >> + - shmem >> + >> examples: >> - | >> firmware { >> -- >> 2.17.1 >>