Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp29947rdb; Thu, 5 Oct 2023 15:33:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGB6CE48lLThhCCXE9GSrfjQlS+1VOAokOYI7kbUJDFkqgkcqT4C1hcxU4jhk3CEAJYRvr6 X-Received: by 2002:a17:902:c40d:b0:1c5:de06:9e5a with SMTP id k13-20020a170902c40d00b001c5de069e5amr7103302plk.21.1696545230966; Thu, 05 Oct 2023 15:33:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696545230; cv=none; d=google.com; s=arc-20160816; b=Ap+NC2thEdwmYSLjE/Jjv3N85BPPoQs43T2QuP5GsCNUHm8PIOTmKRuRy8enS/1Inh S21valQDrI8Z9oc1YQTN7tTcI3oViz8QIEjzqBG/3pvg9xSXCYijMa1W8ewe6hyG/CLj gbrflR/HGFsatT+BcgIA2qEr52fiqD3x0jYymp4MQmgC7KP6VqgMKy5lR+QBFoMyKS1M fxdSfgbRTN8W3ArNBHOK1ibt7fbzXu8JST7RQMTyOXFkbNZPBWKpKeyjJ4yMM7+e/RZo lWasoAtpA4w2ztF2R1D51GZxRoNjlhpIGXLzfc1T+FaX3m4qbKwg2NkuVMewPVIXAFmP 8yKg== 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=6g9Cyjl5K6OG1jkcqwrpcexPvXh/RcSiBX825pOgneQ=; fh=XvxFFgTgFjkOPJtmq9MDBuACJTmbq2Bj4IyTqxfN7ZQ=; b=KXTZOZtp8zWCA4FkbkKqGhJek3BEBjrNhz+QwSgGFMI1JZgNvfaqT9CEjHPow9fxXY 5GVCHOPvFd49FrfKfXIriVbiVwKB2Dv5rPG+L98+OyXYFwmHuQCcd6aD1vTRX7GRNZcC ZpBEltEdECnjpMFuxigOW3hxfm2VQ7gPpJCq47Di3Hwt7xAaQCxKe18G/Jubd30j94Fv j+CXLdfm4kDcDz6dy6wnnuxHapJcR6rRe/fs8cdJDse8RVhX7HOOWbHqdQlDJWVl/bHC ym7eO/dSJKR5lv+Oa62bPn7t/OrSrskNRYPP2Oarzos7gVZfbj/p1eTJGC8UUp1wORgV UlVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="gQh1G/y9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id kn6-20020a170903078600b001c41515c4c7si2302608plb.115.2023.10.05.15.33.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 15:33:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="gQh1G/y9"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 87ABB8082CFA; Thu, 5 Oct 2023 15:33:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231124AbjJEWdf (ORCPT + 99 others); Thu, 5 Oct 2023 18:33:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbjJEWdd (ORCPT ); Thu, 5 Oct 2023 18:33:33 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AE95DB; Thu, 5 Oct 2023 15:33:32 -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 395MSP5j009713; Thu, 5 Oct 2023 22:33:17 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=6g9Cyjl5K6OG1jkcqwrpcexPvXh/RcSiBX825pOgneQ=; b=gQh1G/y9mUJFUoQgZK/H8e1Y/Q6hSsUHp5u0VMTmfMLqJB4vtfJVo+c+FqIRZwif46U6 KEJ8SPGnm6JvOw8Yy/lrLKHHqA4cCRRxNSphq05XsyJSanSiTy0C85na3jIQCjccMCia tLhdaFzacbv3KlsbQ5rv9oytCorAHsNNokBw29QGERufl1p/rLA9rrGoT79oQhCz435u 1fj5wlnh2WqxlvWkiFSMfWvPtg0/KtHotCOA40/7YwJWv75ZJmwfu4ZaBkXyJmUrmtcG zRoAWtEXnKy7q3JnJ+T4SzYIQ0lRI/jRU8SO1cXhqcfF5TeAeWl7S/rxmsqCthIPJ+lf yQ== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3th8e1v2js-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 05 Oct 2023 22:33:16 +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 395MXGXg028924 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 5 Oct 2023 22:33:16 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 15:33:15 -0700 Message-ID: <69b8ded0-7648-80bd-c41b-c591b0f861ef@quicinc.com> Date: Thu, 5 Oct 2023 15:33:14 -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 4/4] firmware: arm_scmi: Add qcom hvc/shmem transport support To: Bjorn Andersson , Sudeep Holla CC: , , , , , , , , , References: <20230718160833.36397-1-quic_nkela@quicinc.com> <20230911194359.27547-1-quic_nkela@quicinc.com> <20230911194359.27547-5-quic_nkela@quicinc.com> <20231003111914.63z35sn3r3k7drtp@bogus> <6246714a-3b40-e1b6-640e-560ba55b6436@quicinc.com> <20231004160630.pxspafszlt6o7oj6@bogus> <20231005222016.GI3553829@hu-bjorande-lv.qualcomm.com> Content-Language: en-US From: Nikunj Kela In-Reply-To: <20231005222016.GI3553829@hu-bjorande-lv.qualcomm.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit 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: zWNE7LW-QekoHznHQ7t6FM-CyQDjR4op X-Proofpoint-ORIG-GUID: zWNE7LW-QekoHznHQ7t6FM-CyQDjR4op 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_17,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-2310050171 X-Spam-Status: No, score=-4.1 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 morse.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 (morse.vger.email [0.0.0.0]); Thu, 05 Oct 2023 15:33:48 -0700 (PDT) On 10/5/2023 3:20 PM, Bjorn Andersson wrote: > On Wed, Oct 04, 2023 at 05:06:30PM +0100, Sudeep Holla wrote: >> On Tue, Oct 03, 2023 at 09:16:27AM -0700, Nikunj Kela wrote: >>> On 10/3/2023 4:19 AM, Sudeep Holla wrote: >>>> On Mon, Sep 11, 2023 at 12:43:59PM -0700, Nikunj Kela wrote: >>>>> diff --git a/drivers/firmware/arm_scmi/smc.c b/drivers/firmware/arm_scmi/smc.c > [..] >>>>> @@ -63,6 +66,8 @@ struct scmi_smc { >>>>> u32 func_id; >>>>> u32 param_page; >>>>> u32 param_offset; >>>>> + u64 cap_id; >>>> Can it be unsigned long instead so that it just works for both 32 and 64 bit. >>> My first version of this patch was ulong but Bjorn suggested to make this >>> structure size fixed i.e. architecture independent. Hence changed it to u64. >>> If you are ok with ulong, I can change it back to ulong. >>> >> SMCCC pre-v1.2 used the common structure in that way. I don't see any issue >> with that. I haven't followed Bjorn suggestions/comments though. >> > My request was that funcId and capId is an ABI between the firmware and > the OS, so I'd like for that to use well defined, fixed sized, data > types - if nothing else just for documentation purpose. > > These values will be truncated when passed to arm_smccc_1_1_invoke() > anyways, so I don't have any opinion against using unsigned long here... > > > PS. I understand why func_id is u32, but why are param_page and > param_offset u32? That was done to keep it uniform across smc32/smc64 conventions. > > Regards, > Bjorn