Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5470310rwl; Tue, 11 Apr 2023 06:04:36 -0700 (PDT) X-Google-Smtp-Source: AKy350bM0ICETDpbk7cyOyyH2JpvzJsfnrZa8gGNjvFN7Bx0GyhyeSoPQm3jk4vh5uGt2vt9DdF9 X-Received: by 2002:a17:907:701:b0:94a:44ef:853d with SMTP id xb1-20020a170907070100b0094a44ef853dmr9694043ejb.68.1681218275838; Tue, 11 Apr 2023 06:04:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681218275; cv=none; d=google.com; s=arc-20160816; b=zhQ2ZZN+rDP9r/j+nMuM3JxUAihIIRKfRLFL9b4GvrPUlFSpHXkFD4M0AjJuShSqW/ 40Xyt/0C3hmU89ImZjzk136qDSy6ReKNg6cgNKfBXht95aPALOPZwsOUM3azu10szZ1z 70M+vbTczZpN0Zy8LIhLhVLOO1VW3IjgyX2g6w/kNFBLEU+Fmp9v5qpCWQVPKOqZZ7m5 pDAM0jg+BEfeoIqpoynJgBBvy9DbBAznXT85jvegjW0YfAHRYBoLxVmn26TGDq/PluwK a48j88dtnWc+Sy0QMfqW/tOiQePa1Hmq6m/PFiz1pZJ+Mc2VJLRA/feWR3AVlXyR0k0t yLUQ== 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=H3zgkcqXC5OEXUiLblg2V3pPVpe8zHdUta09JCRT4TY=; b=vbvZdIa8gJDaFix7diPzRFmv35nWDgmfjEynkEZvJwe9n19mi5RLJsaJeBYDG+tfwW OT8Z9WRsqPWuoCXKPByloYdT9LIbKw1ZgFd1lb9eSEG3uN+9h5J2PDcO0TTwxKlUYAti 0ipTiLVwtJ6B7nZgrEi8uYxST8hhAVVU7rorbbP/7Jl09Qx1Vo5tSKinOaUlun2AhYpM nQnjde60KXcqhW7bG/Adc0eQRSoZEkcwKzS6wP1Pl/HoNaV6Se3wWhcb0HOEUTbJj1GE DWvRcSRMBiHfkOG9YnpOEI9uqkoHbHKhVzcYf2bXaWaW8z7arkO7LciQOZy1/Q+mvt9L secQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id vi2-20020a170907d40200b0094a45d4b95dsi6801058ejc.652.2023.04.11.06.04.10; Tue, 11 Apr 2023 06:04:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230162AbjDKNCw (ORCPT + 99 others); Tue, 11 Apr 2023 09:02:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230249AbjDKNCo (ORCPT ); Tue, 11 Apr 2023 09:02:44 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DA6045256; Tue, 11 Apr 2023 06:02:23 -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 E4ECFD75; Tue, 11 Apr 2023 06:02:24 -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 5089D3F6C4; Tue, 11 Apr 2023 06:01:39 -0700 (PDT) Date: Tue, 11 Apr 2023 14:01:36 +0100 From: Sudeep Holla To: Nikunj Kela Cc: cristian.marussi@arm.com, robh+dt@kernel.org, Sudeep Holla , krzysztof.kozlowski+dt@linaro.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, lkp@intel.com Subject: Re: [PATCH v2 0/2] Allow parameter in smc/hvc calls Message-ID: <20230411130136.lkblyfg3jaeitzrt@bogus> References: <20230409181918.29270-1-quic_nkela@quicinc.com> <20230410182058.8949-1-quic_nkela@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230410182058.8949-1-quic_nkela@quicinc.com> X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 On Mon, Apr 10, 2023 at 11:20:56AM -0700, Nikunj Kela wrote: > Currently, smc/hvc calls are made with parameters set > to zeros. We are using multiple scmi instances within > a VM and hypervisor associates a tag with each instance > and expects the tag in hvc calls from that instance, while > sharing the same smc-id(func_id) among the instances. > > This patch series introduces new optional dtb bindings which > can be used to pass parameters to smc/hvc calls. > Just to be sure that I understood the problem(as your 2 parameters confused me), this is just to help hypervisor/secure side to identify the right channel/shared memory when the same SMC/HVC function id is shared right ? If that is the case, why can't we just pass the shmem address as the parameter ? I would like to avoid fragmentation here with every vendor trying to do different things to achieve the same. I would just change the driver to do that. Not sure if it breaks any existing implementation or not. If it does, we can add another compatible to identify one needing this fixed(shmem address) as additional parameter. Does that make sense at all ? Or am I missing some/all of the requirements here ? -- Regards, Sudeep