Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp478887imm; Tue, 9 Oct 2018 22:31:05 -0700 (PDT) X-Google-Smtp-Source: ACcGV61A/c3LupHJ+O2peRNvUZWCGBAVEhJMGfPY/5bPaQ2TcPmBXTaj3JTG6f60MVScSOMXSZ3L X-Received: by 2002:a17:902:9f97:: with SMTP id g23-v6mr31124392plq.68.1539149465499; Tue, 09 Oct 2018 22:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539149465; cv=none; d=google.com; s=arc-20160816; b=S/vCIhtaJQFti3UjTcjSg0r0qr2sF3tJs6NY3xMY5H0y79rWkb5OsFFPY5cOOjMeg1 3VwEa51hb+xG6YnoF+LGrGCNrYsKs7TKWVfpxXs47by7/c4UMbv+uGi+TI+ZKR9aKRI5 GWKwQDj0xctSKFa8jCNB1Yi9yCvmeoi4qr15rOz2OlqudffmYd5YsSAVwAxTgJFMOjhI O39CbKzz8LKe3p3oNK0bOvRrYZQg+Ib1NNyj+Ron09giJkj1K5Bb94GF9x7siZUY8LBL wFDyFahFOHQosf6qUOfY/p93GnhAxmgdCeKqW4ogCBQdQoGwovhS4A9ufpkdRVbB2BXu 5J2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yJFVrvf+cQkTsAF1Rr3EythDJUmZa+judaXCLXCjERY=; b=lj2zFt4JUi1snHMhNmSYJVkRVZU/gXIff+ECWDEmffcnupwgjL2do/7UHC3EOnGM2s UwggtMNnf66rmvh4/5Qnv1y+qKGaAQlgQChcmMVPtOK3Tq0CMv/MK6dt59LXvTokX/xo Bq1px0m8lkolX3htJQ9YSGLsFEpAdgREH43+buQa/fhzZ002AaiVP5ssCF2jXR31jxRT i1pnFQKr/QQ/wAQv9nH2KWwyDCL2oa/mq8nj35+uQGIhAD0et4pPYqJqrEZHpwad8Z3k Pc06UXA39Anr+Wk/LzMg1U0wiDCTcq2XhA2X8YNlOjaX37vXqpGpgjawq4TOWu7kxdxY QRBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NmGFC3c7; 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 bb2-v6si23227836plb.44.2018.10.09.22.30.50; Tue, 09 Oct 2018 22:31:05 -0700 (PDT) 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=NmGFC3c7; 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 S1726616AbeJJMtk (ORCPT + 99 others); Wed, 10 Oct 2018 08:49:40 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:42381 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbeJJMtk (ORCPT ); Wed, 10 Oct 2018 08:49:40 -0400 Received: by mail-pl1-f195.google.com with SMTP id c8-v6so1929576plo.9 for ; Tue, 09 Oct 2018 22:29:14 -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:user-agent; bh=yJFVrvf+cQkTsAF1Rr3EythDJUmZa+judaXCLXCjERY=; b=NmGFC3c7UcjWCR1H80F/F6A8GPdnUUTfjsrjZmQWnSP5Xpt+i5p2UFOAMZykyzcIYf 0lfBRaN11f7cOzlgzorEwbcjcscDz+ZWf/WPjqYZ0A1N30K49ck5vCWTjsDzhY8ZlPCN 5rmtXUCSoG+4EcCDlJBhg/0iKhPK+Wb1f2OMM= 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:user-agent; bh=yJFVrvf+cQkTsAF1Rr3EythDJUmZa+judaXCLXCjERY=; b=BDvPmMwfaBQqscBGHL+Z5Ubsqqlsc+zgo1RJt65UxzYu0qRGllIhd7/i5XdJTZC8zN ks5JnpCI2ybmUnJ/t6+JM/OurzkCCgsxh73lgnJVHowrFlROvp0eahigOM4quTVldS5Y rBMcy/hgisz+PjZcvmauSDM+CsVWEfxuWx/4GegvurrKoKVvFKGhY058lZzdl++3N/FI CkV9CDS2tSYLavV84sw1pud6YEnNVdg8TcW+wcpGCbM86sMuEC52v9TD7O0PnF16d/8c oqT8hVT6YNBOkQRaEStm/mKMu4L6XXf46pRD/0nQf/H0rF5HGoUMjBZO1uEAjoJxpmnf 0xIw== X-Gm-Message-State: ABuFfoimL3jsylbXBVQVZWYktAG6EZe4+iDpDtsbHMb6flKaJztzBDpz grEOcNdfzbE3NQnNJ9Li9jLEuQ== X-Received: by 2002:a17:902:3041:: with SMTP id u59-v6mr30990779plb.99.1539149354029; Tue, 09 Oct 2018 22:29:14 -0700 (PDT) Received: from builder (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id g17-v6sm36942871pfe.37.2018.10.09.22.29.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 Oct 2018 22:29:13 -0700 (PDT) Date: Tue, 9 Oct 2018 22:32:06 -0700 From: Bjorn Andersson To: Loic Pallardy Cc: ohad@wizery.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, arnaud.pouliquen@st.com, benjamin.gaignard@linaro.org, s-anna@ti.com Subject: Re: [PATCH v4 12/17] remoteproc: modify vring allocation to rely on centralized carveout allocator Message-ID: <20181010053206.GA20016@builder> References: <1532697292-14272-1-git-send-email-loic.pallardy@st.com> <1532697292-14272-13-git-send-email-loic.pallardy@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1532697292-14272-13-git-send-email-loic.pallardy@st.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 27 Jul 06:14 PDT 2018, Loic Pallardy wrote: > int rproc_fw_sanity_check(struct rproc *rproc, const struct firmware *fw) > diff --git a/drivers/remoteproc/remoteproc_virtio.c b/drivers/remoteproc/remoteproc_virtio.c [..] > @@ -114,6 +122,10 @@ static struct virtqueue *rp_find_vq(struct virtio_device *vdev, > rvring->vq = vq; > vq->priv = rvring; > > + /* Update vring in resource table */ > + rsc = (void *)rproc->table_ptr + rvdev->rsc_offset; > + rsc->vring[id].da = mem->da; > + This would now happen after we've started the remoteproc. Don't we need to do this in-between allocating the carveouts and booting the remoteproc? Regards, Bjorn