Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2783604pxj; Mon, 14 Jun 2021 07:08:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUVMvAEgj/kdNZ40ECu6QfjKr/vJZ9y7gasSSE69gv/I/zhaQ37DZE8JzYpisxjsfvGWeY X-Received: by 2002:a17:906:3845:: with SMTP id w5mr15921503ejc.518.1623679682521; Mon, 14 Jun 2021 07:08:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623679682; cv=none; d=google.com; s=arc-20160816; b=dbILBcpJmkP5pBdoUNLgbn+DP4+Jo06LaVyo6CCLH9TDcLDJDPodYhasnFZBqWWQgq 9LWkfN/Fv6UbIgfB/X4d9lac6ymPOqMPTDe2VzOZ7P+9J3p94VRp0QqE13lvZL80yBsF wONRY3LFnHd1FMKRVBxCHGKnpK9oqZJx9uj7OyC3ADlb/NEHkGK6fJ3+Pp+ijkQarDJU Yd0Nkr+dyMSHWGL5wzT4+C23LafUEiSbSRfYLfNYgx03X37UDXMxqT4VIXEMfXs+TnCg G84zV909M2Fdx4wo8/4JxsA/rV5gNF5j2gHRAE0HRfUZE/EuBzGnH/dWt0gPFKhc6mpV 0Sgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ROZZALaVLeBVVhGf9ossovCUlfXSG3rIEkfI5g9SBTU=; b=sRF6L/qGyS0K8lrek9gFYkzrvWGeIXvvWYcw2rohSIpFDdkDtAE0YwFWGw2Ng5RNZI 5bnHVHW9F2I1NOQTCdUwkrxe2Gf5JI1RbK1qCfXbIP2+EsGrh1/WA5J7Q5OnPmEtM+Ei tYH+EeeIEmHvMGlGJnGifgI3e/r8yktCfkYXh+ImF81P9eOFVszADYcwXopL8cAC+7qh nDj/k/tq/c/mcSryKse4I0ByV9C7iGSm9NqvcyHwpSvlSyq6rF4JTIxKSbQSzX5McJTN sBZYgO32+7bOlETuWUdPePm6v6uNkJfgHwsKi5Jgitoy3o1Y6RYMS5ttwwq9SwRxtgPB /AGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b10si12951988ejj.523.2021.06.14.07.07.39; Mon, 14 Jun 2021 07:08:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234234AbhFNOF5 (ORCPT + 99 others); Mon, 14 Jun 2021 10:05:57 -0400 Received: from foss.arm.com ([217.140.110.172]:36916 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233293AbhFNOF4 (ORCPT ); Mon, 14 Jun 2021 10:05:56 -0400 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 7549B1FB; Mon, 14 Jun 2021 07:03:53 -0700 (PDT) Received: from e120937-lin (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 855953F70D; Mon, 14 Jun 2021 07:03:50 -0700 (PDT) Date: Mon, 14 Jun 2021 15:03:47 +0100 From: Cristian Marussi To: Christoph Hellwig Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, virtualization@lists.linux-foundation.org, virtio-dev@lists.oasis-open.org, sudeep.holla@arm.com, james.quinlan@broadcom.com, Jonathan.Cameron@huawei.com, f.fainelli@gmail.com, etienne.carriere@linaro.org, vincent.guittot@linaro.org, souvik.chakravarty@arm.com, igor.skalkin@opensynergy.com, peter.hilber@opensynergy.com, alex.bennee@linaro.org, jean-philippe@linaro.org, mikhail.golubev@opensynergy.com, anton.yakovlev@opensynergy.com, Vasyl.Vavrychuk@opensynergy.com, Andriy.Tryshnivskyy@opensynergy.com Subject: Re: [PATCH v4 00/16] Introduce SCMI VirtIO transport Message-ID: <20210614140347.GB35368@e120937-lin> References: <20210611165937.701-1-cristian.marussi@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph, On Mon, Jun 14, 2021 at 12:43:52PM +0100, Christoph Hellwig wrote: > On Fri, Jun 11, 2021 at 05:59:21PM +0100, Cristian Marussi wrote: > > Hi all, > > > > I'm posting this V4 series starting from the work done up to V3 by > > OpenSynergy. > > Who is 'OpenSynergy'? > > > The main aim of this rework is to simplify where possible the SCMI VirtIO > > support added in V3 by adding upfront and then using some new mechanisms in > > the SCMI Core Transport layer. > > And what is 'SCMI', and why would anyone want a new virtio transport? I'll start answering this last question first : SCMI stands for System Control and Management Interface whose latest specification can be found at: https://developer.arm.com/documentation/den0056/latest The spec aims to provide a common way to handle power & performance related needs by standardizing a set of protocols (clocks, power domains, sensors, voltages, resets, etc..) to enable an SCMI agent (Kernel) to talk to an external System Control Processor entity which acts as an SCMI Platform and satisfies (or denies) such requests in a centralized manner for the Kernel and any other SCMI agent present on system. Such SCMI stack can be indeed deployed in a variety of way depending on where the SCP running the SCMI Platofrm if physically situated: an external microntroller ? part of the EL-3 Platform firmware ? some functionality embedded in an Hypervisor ? a guest acting as an SCP ? Support for SCMI is already in mainline as of today under: drivers/firmware/arm_scmi But the currently existing transport mechanisms through which the SCMI agent and the platform talks are based on mailboxes or SMCs. In case the SCMI Stack is deployed in a virtualized environment we need some sort of SCMI transport that runs on VirtIO to establish comms between the VMs. OpenSynergy is an ARM partner who has deployed a virtualized SCMI stack in their own product and developed this series up to V3, taking care also the proposed related VirtIO spec changes: https://lists.oasis-open.org/archives/virtio-comment/202102/msg00018.html Such proposed VirtIO changes expose a new VirtiIO SCMI Device that represents the SCMI platform running the SCMI Server fw which answers the SCMI Kernel Agent requests. Similar approaches with virtualized SCMI stacks are being developed by Linaro and other partners as far as I know. I picked up this series from V4 since it was apparent that some changes were needed in the core SCMI stack to better integrate this new VirtIO transport that OpenSynergy developed up to V3. Hope to have been clear and concise (not really :D) enough. Thanks, Cristian