From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AE9F5C4743C for ; Mon, 21 Jun 2021 17:25:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9A20B6108E for ; Mon, 21 Jun 2021 17:25:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231519AbhFUR16 (ORCPT ); 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-Google-Smtp-Source: ABdhPJyoXPEE4Y+PUiCrrS+ozWk1/WGyHTeIxyXg0SQgO/W4PkuHBbK13rxi4TsTt6HtaEnAmw6ebQ== 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