Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp208018rdb; Fri, 6 Oct 2023 00:28:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGqM1C1JTkB2i07dgAY38Cbb+IILcSQ1t9nUlr/lTsirhunL7E6blAWAchAdI4j4pQtLxRN X-Received: by 2002:a05:6830:1d83:b0:6be:fdab:dc59 with SMTP id y3-20020a0568301d8300b006befdabdc59mr6917854oti.20.1696577318087; Fri, 06 Oct 2023 00:28:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696577318; cv=none; d=google.com; s=arc-20160816; b=SvjGq2XEDafTLUjy6Sc+DhSrTa9rvK4URa3xWMq3Cx10mD0LRn+ccaBu9H51xlqRp/ xhlj/0fDNmfc3aEQyXIMoV4Zu7OdJyYk+h0AQcYymHs9awM+hC8bS6SNhSBGpdHJRkTZ FdIBggnQvS+/T+JOOXnOqc/iPosp2T61u6ZlmQXd/Qd8GaHBt/t7U/YZhjcCszXGDby5 LBkVOOfjnqIJkO4E23SlYuzwcRVJOIO+NTQTWR+4QySKnZbWr6qtqdLcDkkakJxTVCng 968cK75FBz5BafiUciin5FGijiQq/WO/CF7PQ5szgQrUVUOKiYzLnY8lQcUlQzKzUiAh y5qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=oA/mD7DWPsxSinP6gYnulEwABQumOHMKE7a4DsunakQ=; fh=l8XedkL4151uzIaiAG2nXzU3Et43B6xsDg9h2KzfDZk=; b=oQV4mR0yrkFuo5kV3H6/uphnR5+i7OBwod4PcOcoOFL5/3/as+OMoZUINns+saNxn8 2zX0tI18GGywwrKhXX4njILrdjMNooStpnJCcZ1lT3uzwFVUbbDaGQpJ1kI3cAbjzg1+ TjzPJrEAiwDbebTndAT4j8zCmIxKGEyEdCHshrzzx3ncRmLvsEpzKOdmkGHblb8hw+Rj PgmVoxaZ6Ng2Um/UBLgU54MyKOt2wju8xgiQGwbLqnI61QKzJfudqkReWTynji9DaO5Q dnUQoWK7b/4aioweL9ibMexecOVvKhmKHduKGU/8yGnLuyHrbhl58Ot3Wv2Y8ar+zNAM y3Iw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id n188-20020a6340c5000000b00578f1ab2287si3001355pga.354.2023.10.06.00.28.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 00:28:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id DA3C9822F053; Fri, 6 Oct 2023 00:28:35 -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 S230306AbjJFH20 (ORCPT + 99 others); Fri, 6 Oct 2023 03:28:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230255AbjJFH2Z (ORCPT ); Fri, 6 Oct 2023 03:28:25 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8D94ACA; Fri, 6 Oct 2023 00:28:24 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5CE1B1FB; Fri, 6 Oct 2023 00:29:03 -0700 (PDT) Received: from bogus (unknown [10.57.93.106]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EB85B3F762; Fri, 6 Oct 2023 00:28:21 -0700 (PDT) Date: Fri, 6 Oct 2023 08:26:50 +0100 From: Sudeep Holla To: Bjorn Andersson Cc: Nikunj Kela , cristian.marussi@arm.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: Re: [PATCH v4 4/4] firmware: arm_scmi: Add qcom hvc/shmem transport support Message-ID: <20231006072650.ubgcnbda7daynofa@bogus> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231005222016.GI3553829@hu-bjorande-lv.qualcomm.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 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]); Fri, 06 Oct 2023 00:28:36 -0700 (PDT) On Thu, Oct 05, 2023 at 03:20:16PM -0700, 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? > Good point. Sorry I somehow missed your original comment, my bad. Yes, it is good to be consistent. Sorry if I added any confusion by missing o read your comment and understanding it before I responded. -- Regards, Sudeep