From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E0D6DE92FF3 for ; Fri, 6 Oct 2023 07:28:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=QqelUBsFf8i5uM/DVCrSasWcqen2NUruBQxKyFvSfxM=; b=tvVcUypzgAYwB2 RfzKenLXG54GKbEAimtxSImMo8ZVVb6329Rt5lLzuWsvnFG2Lb88ggzetWXnXrtY41ahdUxund9Pb g2bnz8BYCiLHjR3nXiCDNBNyiT2szguyUV94Ig4I9NE2XT0ixivC4WXZ1piieu7PhUFzVIJsVA+1t zoLJgIva2tbgszRH6l96+JIk016SMS27TSJXvGCLDJoGfGCIaYz5zERbQerHTgRadkuOnZWolpoDQ qZfW90J0SbmIXm7HTFTvRvqljuRjFduISqszrn1UqZnZ12DbIUK1X/RDlVhgthrAUdPhQOfuwJGkB aT5OQzVqKXLXBRx3jVMA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qofGC-0059Gk-0X; Fri, 06 Oct 2023 07:28:32 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qofG8-0059Fp-2R for linux-arm-kernel@lists.infradead.org; Fri, 06 Oct 2023 07:28:30 +0000 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-Disposition: inline In-Reply-To: <20231005222016.GI3553829@hu-bjorande-lv.qualcomm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231006_002828_847654_F13D40E8 X-CRM114-Status: GOOD ( 23.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel