Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3968970pxj; Mon, 21 Jun 2021 10:27:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypOaUX7JkR64Z/b09whE0B4LHMWNvEsgPPKDuJiJD61/f0oAvdDK4Vr8Rd4g0YKfMDrdyY X-Received: by 2002:a50:aa87:: with SMTP id q7mr14504651edc.97.1624296440701; Mon, 21 Jun 2021 10:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624296440; cv=none; d=google.com; s=arc-20160816; b=UCQEbS+T+OosJ+c0v5WGWecNJfYIxHcuT1mAdFxQubJf7XbbhPDt97Y1XHRl4b1JJC woQ5G1RWXjvg3ryd2FP/vAR9kdasoQCWs102ZTjTgUcYX+n4vCmuzNIwb37KyOVubOl3 70/ehYNWTvJWD9NMGiJHAUK6C+MN7jupho22PvErp1oSEEu4ARF4a9eZqgKpOsnNMkfe vX4/IMLFD00gShCU23Gbtaik077heF5Ppp87j4K2uaVbBVX9hn9DsncVl+maQ/NMO6wI PgQ/v4jYv2bZ+HeWi0dX5V67YeBpE/Xj+mH30erIFuPVfue6Az6BypNQdZfM+HeIxxzK mg1A== 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:dkim-signature; bh=PnPX+kMwwqow5LYukSPE/j5CcoTy7NRtog3utuQq2IE=; b=X88VwFcaFs+pFpyaLCvPUBbXt2MnnSVoslBEbGSZhPwQLYLnmn0hqzAuoYN9f7sIy3 JbHlk1p3xa0p0lV/x5V45wRbg7q5p6iEOuYI9wAov9Mc6idKh6sLBkfybynjL2oCnLJ/ d/vGpBEqNXoCi52fdx38hDht+nJaz3/KKSmoVmNB/tWUxMOqyytBHUVXrU8Ugt5lpaGZ hQODuM0D3L3wFryO5UnC7VQSv2/iwwM2AxJhUqRDmre47PbSAQpEDcFMd4TPlsYx1zW9 j0wWtW7oF/uYsZrcYwlNRrfOfrvQL5xUFlkUnUE6gG97WoMzn+Pkmcg7iRswLG2V+DT/ 2VVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="IlM4/QIr"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ar15si11009401ejc.146.2021.06.21.10.26.56; Mon, 21 Jun 2021 10:27:20 -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; dkim=pass header.i=@linaro.org header.s=google header.b="IlM4/QIr"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231466AbhFUR16 (ORCPT + 99 others); Mon, 21 Jun 2021 13:27:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231397AbhFUR1r (ORCPT ); Mon, 21 Jun 2021 13:27:47 -0400 Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E3E0C061574 for ; Mon, 21 Jun 2021 10:25:32 -0700 (PDT) Received: by mail-oi1-x236.google.com with SMTP id r16so8225783oiw.3 for ; Mon, 21 Jun 2021 10:25:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=PnPX+kMwwqow5LYukSPE/j5CcoTy7NRtog3utuQq2IE=; b=IlM4/QIr6kXMDieXq2favI4BOm+o5ZxnHdZwUYTjCqrBZSaWC4gwwIF+F4B9F5qSdf aixUjWQLgS/AXi3OR7McxgHlOKNSFUlc5g8bEKu9UXwxwf9AWPQ4i/9DyNe9ICC96o0z KXXcpuxr22bkxc2HK8qkfH9ZOQKs907KKN6SL4471gnxBZfLveRLtNG/2P3sUyGNT0K5 tiK962EvGmj2OJ/2eAMO7IcauWF3j/t64jubulaqCaE5JZZ94PVrXN+lDT9dpBDyomDp IqPIGpw72Sz99ly/1y5ASkIq/xzK1JWnDxNmEiFazMrjkUnxkFj6UFfRxO4Cp/r+TIz8 Tgmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=PnPX+kMwwqow5LYukSPE/j5CcoTy7NRtog3utuQq2IE=; b=Ful/gkZgCtaRskSXX4ySfJAf1KcoUlQLpNrl62WV4KzWTn7UIApEl6CWVDpFt/wWPh VJL7s6Wtw7/pIOdCMfpb494f3AB05PnGY16Lw7sLKiy/yEguu5KmB3vOMCTcFtyh3lzy N+rgSPNYXH99jdO82Cp4UrALcT3/mpf0t9929h2VqLUzKa8CFLXd4cdFZ4FNje3pxPzn hKJXBuTKGrJeubATWiApXheXbCFJbkdHiPs+K1BNx4pbz5JZH/LCjFFqg4IKAbrH5TNK 12zYTj29S0g7o25WYWiHFNsqZslGvV2hMezFca4eLpWq+iBBoFSYdr4fXXwp/tLNhW1e oczw== X-Gm-Message-State: AOAM532WAu3yD/3VgRDhkO75R6Kw4scI4KHchFH1RuYOvOQG7uVD54Sb f6YnIbwJEXC/tjI1+hKHvyua2Q== X-Received: by 2002:aca:b38a:: with SMTP id c132mr17388459oif.90.1624296331567; Mon, 21 Jun 2021 10:25:31 -0700 (PDT) Received: from yoga (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id u10sm4235029otj.75.2021.06.21.10.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jun 2021 10:25:31 -0700 (PDT) Date: Mon, 21 Jun 2021 12:25:28 -0500 From: Bjorn Andersson To: "Enrico Weigelt, metux IT consult" Cc: Linus Walleij , Viresh Kumar , Geert Uytterhoeven , Bartosz Golaszewski , "Enrico Weigelt, metux IT consult" , Viresh Kumar , "Michael S. Tsirkin" , Jason Wang , Vincent Guittot , Bill Mills , Alex Benn?e , stratos-dev@op-lists.linaro.org, "open list:GPIO SUBSYSTEM" , linux-kernel , Stefan Hajnoczi , "Stefano Garzarella --cc virtualization @ lists . linux-foundation . org" , virtualization@lists.linux-foundation.org, Alistair Strachan Subject: Re: [PATCH V3 1/3] gpio: Add virtio-gpio driver Message-ID: References: <10442926ae8a65f716bfc23f32339a6b35e51d5a.1623326176.git.viresh.kumar@linaro.org> <8d58da79-8e54-048b-db89-8c1caaa0320f@metux.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8d58da79-8e54-048b-db89-8c1caaa0320f@metux.net> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 16 Jun 10:52 CDT 2021, Enrico Weigelt, metux IT consult wrote: > On 16.06.21 05:30, Bjorn Andersson wrote: > > > Combined with the virtio-i2c effort this could provide an alternative by > > simply tunneling the busses and GPIOs into Linux and use standard iio > > drivers, for cases where this suits your product requirements better. > > So, you wanna use virtio as logical interface between the two CPUs ? > Interesting idea. Usually folks use rpmsg for those things. > rpmsg is a layer on top of virtio, so this would be an extension of the existing model. There's been discussions (and I believe some implementations) related to bridging I2C requests over rpmsg, but I think it's preferable to standardize around the virtio based bearer directly. > What is running on the secondary CPU ? Some OS like Linux or some bare > metal stuff ? What kind of CPU is that anyways ? > These ideas revolves around platforms that implements something like the "Android Sensor Hub", which provides some resource constraint co-processor that deals with sensor device interaction and processing of the data without waking up the power-hungry ARM cores. Given the focus on power consumption I would guess that these are not going to run Linux. Core-wise I've seen this implemented using primarily ARM and Hexagon cores. Regards, Bjorn