Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1970477rdb; Mon, 9 Oct 2023 08:31:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHh+djXSKMySgu5vKPstDxhpg1KvkDWf+EsQFRCV89FUVDt7aXQHBYUy0yep2asSkXo4q6/ X-Received: by 2002:a05:6e02:20e6:b0:350:f352:4853 with SMTP id q6-20020a056e0220e600b00350f3524853mr18890020ilv.25.1696865471465; Mon, 09 Oct 2023 08:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696865471; cv=none; d=google.com; s=arc-20160816; b=T1M4DeYhgHtwIutbQdnkP/ANkMYDBrpqKTK+nnvWKmYvYTSCsf4b5LNeGpEGsVPnmt goxroX1j2qGiVNdIjyFzsFxlKgFWcMDZRmtbF4Qu5m03M20KNIht6VQ8wJDS2pNesBy7 9RVuwpx++CoolAPuSVQEQSG8OO9MXl0qh8PcoHi3+Ba08rX9vvA080M5R2CX3B09CM8/ tLZ0Nhcpwt7J606i89ez4ex0nmSwi58PCyAmuLfsvezDCcM7grllq7sr9tCRvjr3aj4z dI8CrHfUXjs7surWkeDWvxl4H/ur5nkBWppHhEv0Z06036MvcpVt8ObdP1bAC8/D3P/a 3BYg== 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=M0MICFCSrLv06MUkxnKyLgST2u5MlE6y8lLD2RJRa5I=; fh=P56c0mDPWWM87WjO2FiKATbC1uYqUJ4yma1naTDzAA0=; b=EF3G6nKPNDP+WAb2wgkqaK2fqH8B7OlzbOBLNP6GdA1vU911S1dSWF4Hgy51JicKmd uGw6MY3nssCFc/XXWESuHTRlXTBGdQjYzJpVuaazBH65MWeBbHk2FALFWQ8mQvNba7GE Y/MeN0YnAxXQpmyphnLZmHeh5qeT01++2viAoHoW06dXRUYKFUiQc79b53jSNOlOlSlL qL/tY7uKHhBezHUeoCn+QMcXz5HTy2Sup9nvzIIRk0EzPIm9/uAOKTjM9XaalAyLplq/ w7/AUs9dfNV5JXAELNL9mlCHcMGEYvNBKwvvzwtvdNtDSO+0pFVU1RNUiIUo/g9bnvSH rkNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id s62-20020a632c41000000b00564d6ad2746si9415862pgs.452.2023.10.09.08.31.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 08:31:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 7332C806CC30; Mon, 9 Oct 2023 08:30:10 -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 S1376741AbjJIP37 (ORCPT + 99 others); Mon, 9 Oct 2023 11:29:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346605AbjJIP36 (ORCPT ); Mon, 9 Oct 2023 11:29:58 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 285E4A6; Mon, 9 Oct 2023 08:29:57 -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 7A2711FB; Mon, 9 Oct 2023 08:30:37 -0700 (PDT) Received: from bogus (e103737-lin.cambridge.arm.com [10.1.197.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 407F93F5A1; Mon, 9 Oct 2023 08:29:55 -0700 (PDT) Date: Mon, 9 Oct 2023 16:29:52 +0100 From: Sudeep Holla To: Nikunj Kela Cc: cristian.marussi@arm.com, robh+dt@kernel.org, Sudeep Holla , 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 v5 2/2] firmware: arm_scmi: Add qcom smc/hvc transport support Message-ID: <20231009152952.dww3fgh5q7fqysps@bogus> References: <20230718160833.36397-1-quic_nkela@quicinc.com> <20231006164206.40710-1-quic_nkela@quicinc.com> <20231006164206.40710-3-quic_nkela@quicinc.com> <20231009144744.yi44ljq4llaxjsb7@bogus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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]); Mon, 09 Oct 2023 08:30:10 -0700 (PDT) On Mon, Oct 09, 2023 at 07:59:08AM -0700, Nikunj Kela wrote: > > On 10/9/2023 7:47 AM, Sudeep Holla wrote: > > On Fri, Oct 06, 2023 at 09:42:06AM -0700, Nikunj Kela wrote: > > > This change adds the support for SCMI message exchange on Qualcomm > > > virtual platforms. > > > > > > The hypervisor associates an object-id also known as capability-id > > > with each smc/hvc doorbell object. The capability-id is used to > > > identify the doorbell from the VM's capability namespace, similar > > > to a file-descriptor. > > > > > > The hypervisor, in addition to the function-id, expects the capability-id > > > to be passed in x1 register when SMC/HVC call is invoked. > > > > > > The capability-id is allocated by the hypervisor on bootup and is stored in > > > the shmem region by the firmware before starting Linux. > > > > > Since you are happy to move to signed value, I assume you are happy to loose > > upper half of the range values ? > > > > Anyways after Bjorn pointed out inconsistency, I am thinking of moving > > all the values to unsigned long to work with both 32bit and 64bit. > > > > Does the below delta on top of this patch works for you and makes sense? > > This looks good to me. Will do some testing and float v6 with the changes > you suggested below. Thanks > Please refer or use the patch from [1] when reposting. I rebased on my patch[2] that I posted few minutes back. I am trying to finalise the branch and send PR in next couple of days, so please test and post sooner. Sorry for the rush. -- Regards, Sudeep [1] https://git.kernel.org/sudeep.holla/h/for-next/scmi/updates [2] https://lore.kernel.org/r/20231009152049.1428872-1-sudeep.holla@arm.com