Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2256202ybg; Thu, 30 Jul 2020 14:55:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1kSUz/479QaX7FHX+oYZA4ozZLKjUOOyU3suSSh7EnHs0kllHxNsUgt/vHVxh+nhAmwYy X-Received: by 2002:a17:906:38c7:: with SMTP id r7mr1179895ejd.118.1596146130044; Thu, 30 Jul 2020 14:55:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596146130; cv=none; d=google.com; s=arc-20160816; b=ljjjejAFpxbCqjUf5gqZNoWPT0MYn8TtQbBCSj8bhyfASFIme3hwmwdVLVZwJg4aF8 eKeKcNGQZ+Z61huBzUR84efz1EdSn9AEyJViO0ShYMZTf2BATVhH8ECajFnpaCx2fpJ2 ztJHPMktYqvDjKK8cKfQsyEpGRFs5p+2g3H+XqHQZi81kHMpXMpGkpGQH/2LLeD9mVz8 62oBS7pyh/LqsX+DWtaa69o56iNm82baVRiFtJywur+SDHPUrKaFPS4lubZdbBbBqkKN AcBtQF85tmvxMt94AS2mfH6XL5VTZpeL5vmn8kGQt1N91GBSPEBsISbrAwCqIQDVa399 IEtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Hz6qbfDEuhZyd0+x8odAvWpkuP8UaNczToSkFGvnkFk=; b=ZezHAxuLRkp+wbnMkEyemYsND8O+Fdh4qMY18xJy6mZ6FbRiTzIt3wKQ2OG1dEuIVb 3CiUo+gxiR4iV64xhADEVvzq/7ErlWI2xeP920Oo1bgHLrUctDBdeuqtQLdUmBEMi06P Lk6ybwnbttE6FrUb1iCQ5E2EtY1WlB+NIuuAV81TvElsBWTMm2XzHdRb2zGaU1SsBIOQ PW+0HugNpJN4hDgjN8kDGHuEYTqAgY8K64qbtv/oyr8ay7FFUnK2YEDBvWW3r7w58R5m gV4JnYDONuhTdA1HpgvTi/03NZ/My0m3t+FUgh739zpmvoHh24JLJf0vxTGQdX1kbLV2 fR6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XXq4WTCP; 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 g13si1007027edf.308.2020.07.30.14.55.06; Thu, 30 Jul 2020 14:55:30 -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=XXq4WTCP; 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 S1730635AbgG3Vyy (ORCPT + 99 others); Thu, 30 Jul 2020 17:54:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730590AbgG3Vyy (ORCPT ); Thu, 30 Jul 2020 17:54:54 -0400 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D413CC061575 for ; Thu, 30 Jul 2020 14:54:53 -0700 (PDT) Received: by mail-io1-xd44.google.com with SMTP id d18so29828617ion.0 for ; Thu, 30 Jul 2020 14:54:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Hz6qbfDEuhZyd0+x8odAvWpkuP8UaNczToSkFGvnkFk=; b=XXq4WTCPC7+tz1SDKdUi3QhlL2AziVHW6ufg5IaUDVj/PPY8yId2LXr49FGP9QMHgA +6PIbDXgPxiMnANJkkJWoHlf7V/xrVIHmtT7st/kjFLsxqbTDE12SlFu8/mv45+/i2uh zjAYCIWQ/crNEhaXO8S3F11ceJLYqrX0aIiv9yOv9peKJS41mDA8lLL4SJyQ4tDydVC/ cTXNC8j6pyW9NPjfyA5TLM0yeCg0DOLPFWelNgtTbOrV2CoZ6XZd1miuCO/p9fIYoytu x4o/sCU/1POFbzkWTvhcf2t00xeJ9dx3hYZofEnFBj4ijp68az1QMTdXuEp2KA0tFxCO o6Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Hz6qbfDEuhZyd0+x8odAvWpkuP8UaNczToSkFGvnkFk=; b=ezCWZ9K1YCbS++UEWgEC91oqf5vzSVRDOWPL3s0CBLT7M9OZdas4LlLLc9nHwafjev +Wx9YF+KqGWU2R44WkGiTjxUvAZjHP27HA+FMnQREXUzPbVPCZjZjaBkGzXVpFkd4m3a opwETKmH+BgJm+yDu4XzmAS6OZQH61RjDb38cs+P7uTeKaRVfmmTgRLqrw1ICpvHdwcb wNkDXmyn1bIVlwJwm6PyMvqigJlpHg8xgAy1AmI9Nu/GqqPuXjmAaBKLi18RYp8yApmR SqbGf/WzLOtESmFL0VdviGxTA/xX8LYDQmYX6TYyyv4KZFC8DGsSrGRlbmkm7sxJTlTw 7z4g== X-Gm-Message-State: AOAM532jCC7lYQQcv34rwh8p8G2wfcSDW3RkqGj/DcX9siW3exgVMalS UIAhf0fqFgVgiNsmpWFFM2o2peZ+lSDNwoEhetGzxw== X-Received: by 2002:a05:6638:138a:: with SMTP id w10mr1466182jad.36.1596146093086; Thu, 30 Jul 2020 14:54:53 -0700 (PDT) MIME-Version: 1.0 References: <20200722131543.7024-1-peng.fan@nxp.com> <20200729170516.GA3059951@xps15> In-Reply-To: From: Mathieu Poirier Date: Thu, 30 Jul 2020 15:54:42 -0600 Message-ID: Subject: Re: [PATCH] remoteproc: virtio: support sharing vdev buffer To: Peng Fan Cc: "bjorn.andersson@linaro.org" , "ohad@wizery.com" , "linux-remoteproc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 30 Jul 2020 at 00:22, Peng Fan wrote: > > Hi Mathieu, > > > Subject: Re: [PATCH] remoteproc: virtio: support sharing vdev buffer > > > > Hi Peng, > > > > On Wed, Jul 22, 2020 at 09:15:43PM +0800, Peng Fan wrote: > > > Support sharing vdev buffer between multiple vdevs by using name > > > "vdevbuffer". > > > > > > Reviewed-by: Richard Zhu > > > Signed-off-by: Peng Fan > > > --- > > > drivers/remoteproc/remoteproc_virtio.c | 2 ++ > > > 1 file changed, 2 insertions(+) > > > > > > diff --git a/drivers/remoteproc/remoteproc_virtio.c > > > b/drivers/remoteproc/remoteproc_virtio.c > > > index dfd3808c34fd..5d78ebea111e 100644 > > > --- a/drivers/remoteproc/remoteproc_virtio.c > > > +++ b/drivers/remoteproc/remoteproc_virtio.c > > > @@ -343,6 +343,8 @@ int rproc_add_virtio_dev(struct rproc_vdev *rvdev, > > > int id) > > > > > > /* Try to find dedicated vdev buffer carveout */ > > > mem = rproc_find_carveout_by_name(rproc, "vdev%dbuffer", > > > rvdev->index); > > > + if (!mem) > > > + mem = rproc_find_carveout_by_name(rproc, "vdevbuffer"); > > > > We already have a way to share buffers [1], do you think it would work for you? > > I would rather proceed that way to avoid introducing a 3rd way to deal with > > vdev buffers. > > That should work for me. I just need to move the vdevbuffer to the 1st one > inside the memory-region. Perfect > > BTW: Do you have time to give a review for > https://patchwork.kernel.org/patch/11688751/ > Unfortunately not in a little while. There are a couple of beefy patchset in the queue ahead of yours and to make matters worse I am away next week. > Thanks, > Peng. > > > > > Thanks, > > Mathieu > > > > [1]. > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Felixir.b > > ootlin.com%2Flinux%2Fv5.8-rc4%2Fsource%2Fdrivers%2Fremoteproc%2Frem > > oteproc_virtio.c%23L389&data=02%7C01%7Cpeng.fan%40nxp.com%7C > > 760ae238005c49fe20db08d833e193ca%7C686ea1d3bc2b4c6fa92cd99c5c30 > > 1635%7C0%7C0%7C637316391223184319&sdata=UTN8YVaEynomrwFx > > 7aTCJ7fp0fjfIS8fscfGG67naKk%3D&reserved=0 > > > > > if (mem) { > > > phys_addr_t pa; > > > > > > -- > > > 2.16.4 > > >