Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2093649rdb; Mon, 9 Oct 2023 12:15:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHw3uK8p3Ajv0IdNFBmUYdpJ8d1cF3Zyf/vYjJX8hkLjWwhESUCJSWapbuiKw1fpx9QyFIe X-Received: by 2002:a05:6a00:2e95:b0:68a:54e5:24e6 with SMTP id fd21-20020a056a002e9500b0068a54e524e6mr21301069pfb.8.1696878951211; Mon, 09 Oct 2023 12:15:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696878951; cv=none; d=google.com; s=arc-20160816; b=rBh2y0w2y2QdH/h4RE4V1w4MrJPYBrM3Tv0yGvSfn72SVOFlcjAyiEv+WPaEaAr9/F me/Ovkg1MKAtZeBl2LXnLQUR3r6mBxuv8kegmUINkqH7mdBSdLEWpmY1Eh3IT5DzyxC0 afTfnGRczlRilK87fj/qGOS1CBj5eHYpn66aaYWyxXMXy23cOldrEMS1TLFUFeIcSnSH Lghld7b64L8oGkksGC0U7cWb1mv2m7CGg2pWV7Z/aB7fS+BG5j6LpDza/DKGVC5jnuOT awkO/K7RLsVQ2LsfZ2VEEghiiIei8B8EF1keIzlmkF1X41wIdaTplk4sur+ZXHm8qGaU so2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Au2zwI8nEPJBDnDP0Jpkk0pNWgyzzfFNkvXZiw7DZtM=; fh=GEq5dEC3I2ew8qX2rLc4VZLR0KApgkJja2wJiy1iHxw=; b=W4fWbrzCvGCYfq/wvyPIdeWNiGnh1fQB04i8aI6mOk5o2RFuHZZGdDRUkeiyWt59cv sXE+uM4gW8mDEtHPH1MOVhFDXHX4LIDD7OR5WivdQpvKrMes6HzmBPQW0et9qOrTOKhu ZvMf6zyLaOarjpYtCqhu6cYgLS8LOZ/IqEsc3J2EfjtGvZ1YBXcbPXe8qA2UvMcDntCs ekMw7GPh+8ps1azHAak8knjubXuYTcxt/7aF3O2jzjlKUMMk8T7mPJ1dc2mOjhqhAkG8 HTVefZFktWXE4xgKjdz2v3Xza+W6zK/s1Sr6ZU+M/cGy0q1gi5mJEiHjJ+pAGuA5xszY oNGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ceGsQ1J+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id y23-20020a63fa17000000b0056532a83c64si9918833pgh.516.2023.10.09.12.15.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 12:15:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ceGsQ1J+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 33A1380832D5; Mon, 9 Oct 2023 12:15:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378334AbjJITPG (ORCPT + 99 others); Mon, 9 Oct 2023 15:15:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346692AbjJITPF (ORCPT ); Mon, 9 Oct 2023 15:15:05 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A896B8E; Mon, 9 Oct 2023 12:15:03 -0700 (PDT) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 399J03mq027332; Mon, 9 Oct 2023 19:14:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=Au2zwI8nEPJBDnDP0Jpkk0pNWgyzzfFNkvXZiw7DZtM=; b=ceGsQ1J+pWFbm5+vD5NRA3tkNK4kUXzXnyXv3n4+1xwzSR+29xiTjzvNWnQI3raNE37L 7awrBh3TdIs+6nBDyt0M95+yzCwKxgXioQoygyKoTd8x7tiBP9tDjLJLTg3IB9YtPqUx p9TCFNIVf37Z8j97TTIrDeZaf/yDawwEfbT3cNOubx3WJHfutYavBz6BDjlyeMJFKFBy zuzQrcemI+4eCLHecUqvDO7eomNvJkqwAEimYx3cxZ71nAaXrBQG8WeiEycBZdY1WeMB k/oJgmF60/VAk/qUYsGx5XeCYAnZcgsDXyDTyp+TFTxBjeDY/1PNhKKNVutmKMFGb0GG 2A== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tkhj13atw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 09 Oct 2023 19:14:53 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 399JEqbT006859 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 9 Oct 2023 19:14:52 GMT Received: from car-linux11.qualcomm.com (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; Mon, 9 Oct 2023 12:14:51 -0700 From: Nikunj Kela To: CC: , , , , , , , , , , Nikunj Kela Subject: [PATCH v6 0/2] Add qcom smc/hvc transport support Date: Mon, 9 Oct 2023 12:14:35 -0700 Message-ID: <20231009191437.27926-1-quic_nkela@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230718160833.36397-1-quic_nkela@quicinc.com> References: <20230718160833.36397-1-quic_nkela@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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: a-tP5NsJ_tIrTbKaP9YRPNZ-ddQxXUhE X-Proofpoint-GUID: a-tP5NsJ_tIrTbKaP9YRPNZ-ddQxXUhE 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-09_17,2023-10-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 lowpriorityscore=0 adultscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 mlxscore=0 malwarescore=0 spamscore=0 suspectscore=0 mlxlogscore=898 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310090157 X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 09 Oct 2023 12:15:24 -0700 (PDT) X-Spam-Level: ** This change augments smc transport to include support for Qualcomm virtual platforms by passing a parameter(capability-id) in the hypervisor call to identify which doorbell to assert. This parameter is dynamically generated at runtime on the device and insuitable to pass via the devicetree. The capability-id is stored by firmware in the shmem region. This has been tested on ARM64 virtual Qualcomm platform. --- v6 -> use unsigned long for cap-id v5 -> changed compatible, removed polling support patch, make use of smc-id binding for function-id v4 -> port the changes into smc.c v3 -> fix the compilation error reported by the test bot, add support for polling based instances v2 -> use allOf construct in dtb schema, remove wrappers from mutexes, use architecture independent channel layout v1 -> original patches Nikunj Kela (2): dt-bindings: arm: Add new compatible for smc/hvc transport for SCMI firmware: arm_scmi: Add qcom smc/hvc transport support .../bindings/firmware/arm,scmi.yaml | 4 +++ drivers/firmware/arm_scmi/driver.c | 1 + drivers/firmware/arm_scmi/smc.c | 27 +++++++++++++++++-- 3 files changed, 30 insertions(+), 2 deletions(-) -- 2.17.1