Received: by 2002:a17:90a:9307:0:0:0:0 with SMTP id p7csp6345984pjo; Thu, 5 Mar 2020 08:19:05 -0800 (PST) X-Google-Smtp-Source: ADFU+vszTTqVIM5lpSZ3EiRtQePJkGWqr246n4UGhX6yzqjngv2BBLGJ80igFgvSMi32hdQeVNpr X-Received: by 2002:a05:6830:129a:: with SMTP id z26mr7497493otp.179.1583425145735; Thu, 05 Mar 2020 08:19:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583425145; cv=none; d=google.com; s=arc-20160816; b=ACQ9NbwKDBt57C9+p5VF9okdGRUKvF7i3f4ah9nvIaiYuhetKrm1ogydDNk76VSo5l wVyTcS8LSYYSUHpkjff/8sAa5HXh+cxZ8QaGsUZEfRsgFItzgcTSIWYUWomIeUaojKxf sZiHTDMNvLrEoMF79rGMcJZbTVGOD5cQNbMDlTnGYSaxNjUm/W6vDBDvaBoSKC0pgl80 voeOC7TJRsZkLOjhsWO0043lETtk6jOPW+GINXfln5HMgmdm+cbs/sDQVK0f4lhi3WCX paf0s4bSiZ3w4SeToqSEIAwp3tw2BtO3c+qJhRYAhnipZLxuKeaaok3Y+rblI52K9fbC xwlg== 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=EKjzEJMa9fe0PK3n0GkSSdo/FdjChSUpIwJDlTYh97U=; b=BVdmCpo45A06Du5mgQIrxUoOIhDIVBEcD40rNs310h5OQvYAkk3EQUjeqra/f6PnJU WRj4cf/XvL6LWlBytj5gH15iNaVzLOm6F3YvKR/869I8Bmn/+aEGRHALCTz74elBDAs6 VnvSzWJN3fQOw2/AiN8HtkyBXRb+JT4222GMq5rLFlM+iZm1OjDSnKZiwsX9D4vanIDm Mp0Du06gyYiQ8JN/9wTjZkMy1WBGYok7OxsvhJa4SepB+LnJfyLYQisk/MeOzZ9VKBz8 yNYzzqPovIpFoHBBu7cZHIqVCZ5BHrAwqCopzY4SjKDkRTI5salki57NPw5hYMZqKKXk 5bGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QiMaHeiS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id v3si3999412otn.140.2020.03.05.08.18.51; Thu, 05 Mar 2020 08:19:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QiMaHeiS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726269AbgCEQRE (ORCPT + 99 others); Thu, 5 Mar 2020 11:17:04 -0500 Received: from mail-io1-f65.google.com ([209.85.166.65]:33387 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbgCEQRD (ORCPT ); Thu, 5 Mar 2020 11:17:03 -0500 Received: by mail-io1-f65.google.com with SMTP id r15so7126048iog.0 for ; Thu, 05 Mar 2020 08:17:03 -0800 (PST) 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=EKjzEJMa9fe0PK3n0GkSSdo/FdjChSUpIwJDlTYh97U=; b=QiMaHeiSTJFP6UFJmbCXKjB+4nX0XCEjJu+Rsrs6hvaZ9brVoePcMg71hYOmttDytV Dhk1MdOs+qEZGatjDQ4OlqOsagcAfN6ua+iOtlMCg4Vu25OgIbsoGMIkI+TWobK3/lz2 o78biGJDirONtSS2xRidOq8Mq6L2qZ3tTogPcEaKZ+XxidOZqmPXMBScwoIS6xajXiBn MdnAXtKjreVO43RPngwPA8kFjwZfPAjIF/Cfu4tjSQZWDBHgMnCokRplyIQqtnNPKk3z v3Xy7ZlT8IAc789E7dXAto/cJFpLbHbSA0H7ZdET+f/HWzkny87uDeD9uBWle7cMAqni qjVw== 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=EKjzEJMa9fe0PK3n0GkSSdo/FdjChSUpIwJDlTYh97U=; b=dlwmznAAgOtsidQ8r7HFXEB9z7U+tJzGGLI7g/ryeuNtHlQNnzSFuyV52jkLKEgDd2 qe1Utk4u405zdxyLwKp7WJvKJAAPPbvsIQDIDDBdwNGxKr3FgtDwSG3xSA33l5IuKXty 7Q+HIY9k7lxrW2cXyzJxg1mL2Nq+Lr7y1Vp3xcwMSN3HAAQKE4UoiFxrZLAn/uc1HkxQ iTwx/zLUb6s1iKfCyWzw0dPMTgQmdBg5v785Cw9BqyT9kedlOnnLD4Exob4pYzBCZf51 3MwG0hAHViZyH7xgLuKdfmbUzBn4SNxHAbxImq/QsnY+CAKDpxnSKwlkGZJcm2d7ZmPR EV9w== X-Gm-Message-State: ANhLgQ2ArPjAQ2NiDEoOvl91ITD5WC2fK5T/0/zPF3IyRC5qJrLHrK+U QrjakLC46q+zf3Pn5kGTDNF90ziGBX523b32yGPcTg== X-Received: by 2002:a5d:9b94:: with SMTP id r20mr7035294iom.140.1583425022687; Thu, 05 Mar 2020 08:17:02 -0800 (PST) MIME-Version: 1.0 References: <20200304142628.8471-1-NShubin@topcon.com> In-Reply-To: <20200304142628.8471-1-NShubin@topcon.com> From: Mathieu Poirier Date: Thu, 5 Mar 2020 09:16:51 -0700 Message-ID: Subject: Re: [PATCH 1/2] remoteproc: imx_rproc: dummy kick method To: Nikita Shubin Cc: Ohad Ben-Cohen , Bjorn Andersson , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-remoteproc , linux-arm-kernel , Linux Kernel Mailing List 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 Wed, 4 Mar 2020 at 07:25, Nikita Shubin wrote: > > add kick method that does nothing, to avoid errors in rproc_virtio_notify. > > Signed-off-by: Nikita Shubin > --- > drivers/remoteproc/imx_rproc.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c > index 3e72b6f38d4b..796b6b86550a 100644 > --- a/drivers/remoteproc/imx_rproc.c > +++ b/drivers/remoteproc/imx_rproc.c > @@ -240,9 +240,15 @@ static void *imx_rproc_da_to_va(struct rproc *rproc, u64 da, int len) > return va; > } > > +static void imx_rproc_kick(struct rproc *rproc, int vqid) > +{ > + > +} > + If rproc::kick() is empty, how does the MCU know there is packets to fetch in the virtio queues? > static const struct rproc_ops imx_rproc_ops = { > .start = imx_rproc_start, > .stop = imx_rproc_stop, > + .kick = imx_rproc_kick, > .da_to_va = imx_rproc_da_to_va, > }; > > -- > 2.24.1 >