Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2090866rdb; Mon, 9 Oct 2023 12:09:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQDXUgt4TfAtsFc3NAfM+hHhl2ilW22xaPYTnm6HNV2LmLl9pEGijNaYH5iaF2uNFeELie X-Received: by 2002:a54:4783:0:b0:3ad:c5f2:2792 with SMTP id o3-20020a544783000000b003adc5f22792mr17364755oic.46.1696878592856; Mon, 09 Oct 2023 12:09:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696878592; cv=none; d=google.com; s=arc-20160816; b=b+ajIE3NO/7y5rAKrwhkaZUX06TVle55sqNjrdlMH5ofmQG10hkkKRbow1wxV9v7rP kqCMqRCcKwY0tOZXGcOWuaskI3Yt5mz0ij7lRqc5yNskvBmrIGNL3reo5KYIJkiQSlsb lafFZRNrY+g/AlHmTr4Zi1nQQQI5dwdSDdXnepR1SAqElN0McKmmGw7RdcuzCnQbxSya j+N6mUv8HBuxnDa+6WScCNA8suCWJ+K8YmoQAo83JfcXZP/phLKjJfwkScR0iz8WIZjQ 6KOCrsYmnPzFjehnGBtOwhLQeQuamHn4euFxF8B72fGyHUEkD6mWljLKBJ/rcUMAhLw9 n35A== 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=qUq06j1PRIz+4YP+ZGpoSBGUBNU+nvAyN6n+FA6HnXI=; fh=P56c0mDPWWM87WjO2FiKATbC1uYqUJ4yma1naTDzAA0=; b=cbhhsPKENFfHP9Aw3Yh1OAabHLQcVgVFOZ+BxHu2CyCW7Gs5TnYBW7KnpU4cvBe3g7 YE8Cg6kYHETo2ZWv3mCOrtC9fNNFuDgzYxxUib/z1bFNHXrm8FzBGs6IB2+BY0HNy1uE w35RA10eyLj0rDDTGx80bnOP+QtgW9zXmDMbw3BtNDyrdO7gTtLsbt6/U599q5DPR/Qu 75vIyaekpLS5GMWW/oO8i7aI8KRZF4FWVkaLQtXT61EUAcIAii2FS0a5M00XJf9qeWHe eJ7HHqzXJfG17g97R1FNil452fx2fGRM44F1XXER0c7HEm1YnOPoB3MDkDthi2KI+xMy PClQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id a62-20020a639041000000b005859e22461csi10099342pge.817.2023.10.09.12.09.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 12:09:52 -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; 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=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 morse.vger.email (Postfix) with ESMTP id 7378380FFD8C; Mon, 9 Oct 2023 12:09:50 -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 S1378277AbjJITJj (ORCPT + 99 others); Mon, 9 Oct 2023 15:09:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346660AbjJITJh (ORCPT ); Mon, 9 Oct 2023 15:09:37 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5EC87A6; Mon, 9 Oct 2023 12:09:36 -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 95D441FB; Mon, 9 Oct 2023 12:10:16 -0700 (PDT) Received: from bogus (unknown [10.57.93.106]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 249D33F5A1; Mon, 9 Oct 2023 12:09:32 -0700 (PDT) Date: Mon, 9 Oct 2023 20:08:00 +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: <20231009190800.ydkmmt2hgieazgfl@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> <20231009152952.dww3fgh5q7fqysps@bogus> <535bbc68-74bb-21e8-0e72-8de1df9cfc99@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <535bbc68-74bb-21e8-0e72-8de1df9cfc99@quicinc.com> X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no 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]); Mon, 09 Oct 2023 12:09:50 -0700 (PDT) X-Spam-Level: ** On Mon, Oct 09, 2023 at 10:49:44AM -0700, Nikunj Kela wrote: > > On 10/9/2023 8:29 AM, Sudeep Holla wrote: > > 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. > > Validated the patch from [1] below on Qualcomm ARM64 virtual platform using > SMC64 convention. Thanks! > Thanks, since I have patched a bit, it is better if you post them so that we have a link for the exact patch on the list. Just pick up the patches from the branch[1] and post them as v6 with a change log so that all the details are captured for reference purposes. -- 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