Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp509801rdb; Fri, 6 Oct 2023 09:44:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEaODkA4FHOf+oMbqKJViEOyD8RW0QeyauDe+rfne40fy2AsRAg6JLap2GHDWE5ZVCmSs/G X-Received: by 2002:a17:902:d4cd:b0:1c8:8f5f:b610 with SMTP id o13-20020a170902d4cd00b001c88f5fb610mr2145134plg.13.1696610644866; Fri, 06 Oct 2023 09:44:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696610644; cv=none; d=google.com; s=arc-20160816; b=y2fzxzh7+J7odqaYt4sw5iFyMtx3sjNxVJy2eerK/OSZVVycYi/jrVAqzmiO4JiDif K1Cjn3dVRaMRUQ4Mpr7bCDNAKBQgVb8qDTsRa2Q/Fwyyuc7v+x0EHgzpQaUY/UmRIj8k ba4lTmnye6wQpt5fBgmj+5RV2mQ1p07YfOH2zqCXKkwjn36MbGa4QSXRQbvycTIvWHCx RMYn06aGYZMtFMV14RHP5y2ZuWcU3NjuBRpTiLtR292thO1AqxHMqZpTj8V41TgTvKvb c8A4SMylMsMJ3rXKZB1fbmZnckvJrSdH1611JUF/CJI868zD0dNx+4e3v/Yrg1OhASls +JcQ== 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=HKd9xrK3zkUUSOIzOYk53A/BFWHivrHqCJQpned/qx8=; fh=GEq5dEC3I2ew8qX2rLc4VZLR0KApgkJja2wJiy1iHxw=; b=fMtIqP0ZcDQRxK9XttoNiezyvtWCdTBk8iDRUJ5dBkYlRG2/I5pdP0JNRvNXYyCnGP 1ok36YeVf/puAsKcTQx8ZllX5MbIzoj0kZBxfPnRN75+xB2biKuENBYqlLMKYAPFUTf+ RkGMq60T6BTh9MVpl8yxNjbqNcCsbeqAgVi+qNLEdGA+DfMxntb01Da2u+ESUVavZY+I +GMxjJpZK+wxc5+gVs7qLRFSyZ7Kyj0rWYqCHD5h76ORwtaTfEBJbro6OgnJA4kO8Z/l /qmCcL/gDm1YyTa/SH5WUiHYyPat2WbXzos2LCmukXZvggYEpAuaCbI8b2zShDL96A3S e5HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=PN4u4UwV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id l2-20020a170903244200b001ab29e00303si2113406pls.426.2023.10.06.09.44.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 09:44:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=PN4u4UwV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id C594881E592C; Fri, 6 Oct 2023 09:44:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232979AbjJFQnu (ORCPT + 99 others); Fri, 6 Oct 2023 12:43:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233104AbjJFQnT (ORCPT ); Fri, 6 Oct 2023 12:43:19 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BC24191; Fri, 6 Oct 2023 09:42:45 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 396Et2vt006118; Fri, 6 Oct 2023 16:42:22 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=HKd9xrK3zkUUSOIzOYk53A/BFWHivrHqCJQpned/qx8=; b=PN4u4UwVHbqq3pc6Y6QhRViGaM9k131KKUzFf8JXE8rGRkF5W2bk1aFWYtmcXPaP0wdV +1V0sPe8+Pct6b70dpbE0c7PK9N/vKt1SirxBKi33WpQbQSk/VF/J2Zh8y312qZqrDim P8IMW3Ip64HYca9uk3K/54hIIF/KVSdhebRvQOd8yIvZAr2fyzD0BlHRTL9dR0yzt68T LkKOOmjqi1dbc9nnGTgQN8AUPHdwtz4v/sdfcIw6ITG35muqgkWa7EwEzU+g5yPaM1pK iCtZGtbdKVRxLTQEZQfjYPbzYPsO5oC3vop+UB2tjtlt81YF1cqtaH0OM2t8agoc8eai aA== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3thg7hvmpx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 06 Oct 2023 16:42:22 +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 396GgLZH013298 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 6 Oct 2023 16:42:21 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; Fri, 6 Oct 2023 09:42:20 -0700 From: Nikunj Kela To: CC: , , , , , , , , , , Nikunj Kela Subject: [PATCH v5 0/2] Add qcom smc/hvc transport support Date: Fri, 6 Oct 2023 09:42:04 -0700 Message-ID: <20231006164206.40710-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-GUID: XHvjQ-152ByeRUhpUpxxNChZhZTU_Bnr X-Proofpoint-ORIG-GUID: XHvjQ-152ByeRUhpUpxxNChZhZTU_Bnr 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-06_12,2023-10-06_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 clxscore=1015 priorityscore=1501 mlxscore=0 suspectscore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 adultscore=0 malwarescore=0 mlxlogscore=868 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310060125 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 (snail.vger.email [0.0.0.0]); Fri, 06 Oct 2023 09:44:03 -0700 (PDT) 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. --- 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 | 33 +++++++++++++++++-- 3 files changed, 36 insertions(+), 2 deletions(-) -- 2.17.1