Message ID | 1512060411-729-17-git-send-email-loic.pallardy@st.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp22265qgn; Thu, 30 Nov 2017 08:47:56 -0800 (PST) X-Google-Smtp-Source: AGs4zMZNxb6FtK+ZHto3Dyt/LfEm1CCRazidmbWxwL7uPfgv7BSx23oFj74MZ+XtZoHJF06pJ/xN X-Received: by 10.99.147.77 with SMTP id w13mr2892369pgm.401.1512060476504; Thu, 30 Nov 2017 08:47:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512060476; cv=none; d=google.com; s=arc-20160816; b=wDp/QbEAJ6NopodFhOkkAZEWdBep0BGD60cpK9pVyNILxxUDee/EEKhjYx7YYhDelv IfR9KMfIioS0zHu/dHPgA9LMEBiL+Zmit6GadkLISQ550/n7Z3lQcYfyHB7l9CT6LEFh MVEp29jGTSOT6r3IHHpFXtaUfVhEmZDzIdCJT7ULXY2lpSMRfAcbuMltOuQ38CE1lTm2 njCwGDu1B3btdGVf5pt+yNhiyWn5h4bHRdrU6UfegwGp+uhrAa5W+z1+uSSG3BO434av MFIydFnD6rPNPX0WBF8+5luQWVdTgPhJnEM45UDxVsRyD3H5TzPRbh1uP+9Gmuo+sXEO lLIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=sqnuwsqWwmdvrfACd7LE39ynzZ0aitsI0IuRp5+UIxQ=; b=y8HM7tcR8IGCtc+287mCDvzkRChEBuw83RblY2yWTN7wVoVdYzPMVcYCoP3x1Ix9c4 dw2T5+hDVQFvs7OCcISAy46rW/lZKxVlWfaJnBeLJ69AtoThAkq3t4owHqU5d+Z528Yt bqRnIwWbfeerqDOOGPXkotAu3Ax2RbOm0C3+X0Q7yOEEiW/iRE3WgTt10vYJbu+hafp2 zVuyVPvommIvlM7TnQAzA6p52kyQ0vG4BHS9fwVu4ScF9XY4hnafigIRWxUjZi5Dk/09 DifKZUhGldIrKv5q0QRsHyjOl+Phuhsqh+AL52G1Tk9iPOJNIchDo21YNWvlu01S6bwV ft1w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si3302954pge.144.2017.11.30.08.47.56; Thu, 30 Nov 2017 08:47:56 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753486AbdK3Qrz (ORCPT <rfc822; dan.rue@linaro.org> + 28 others); Thu, 30 Nov 2017 11:47:55 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:61755 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753638AbdK3QrZ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 30 Nov 2017 11:47:25 -0500 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vAUGhuap014355; Thu, 30 Nov 2017 17:47:23 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2ehn3n8xga-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 30 Nov 2017 17:47:23 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4CA8A34; Thu, 30 Nov 2017 16:47:23 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag7node2.st.com [10.75.127.20]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 37EDE5379; Thu, 30 Nov 2017 16:47:23 +0000 (GMT) Received: from localhost (10.75.127.46) by SFHDAG7NODE2.st.com (10.75.127.20) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 30 Nov 2017 17:47:22 +0100 From: Loic Pallardy <loic.pallardy@st.com> To: <bjorn.andersson@linaro.org>, <ohad@wizery.com> CC: <linux-remoteproc@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <arnaud.pouliquen@st.com>, <benjamin.gaignard@linaro.org>, Loic Pallardy <loic.pallardy@st.com> Subject: [PATCH v2 16/16] rpmsg: virtio: allocate buffer from parent Date: Thu, 30 Nov 2017 17:46:51 +0100 Message-ID: <1512060411-729-17-git-send-email-loic.pallardy@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1512060411-729-1-git-send-email-loic.pallardy@st.com> References: <1512060411-729-1-git-send-email-loic.pallardy@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG7NODE3.st.com (10.75.127.21) To SFHDAG7NODE2.st.com (10.75.127.20) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-11-30_05:, , signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
remoteproc: add fixed memory region support
|
expand
|
diff --git a/drivers/rpmsg/virtio_rpmsg_bus.c b/drivers/rpmsg/virtio_rpmsg_bus.c index 82b8300..6dd25c6 100644 --- a/drivers/rpmsg/virtio_rpmsg_bus.c +++ b/drivers/rpmsg/virtio_rpmsg_bus.c @@ -920,7 +920,7 @@ static int rpmsg_probe(struct virtio_device *vdev) total_buf_space = vrp->num_bufs * vrp->buf_size; /* allocate coherent memory for the buffers */ - bufs_va = dma_alloc_coherent(vdev->dev.parent->parent, + bufs_va = dma_alloc_coherent(vdev->dev.parent, total_buf_space, &vrp->bufs_dma, GFP_KERNEL); if (!bufs_va) {
Remoteproc is now capable to create one specific sub-device per virtio link to associate a dedicated memory pool. This implies to change device used by virtio_rpmsg for buffer allocation from grand-parent to parent. Signed-off-by: Loic Pallardy <loic.pallardy@st.com> --- drivers/rpmsg/virtio_rpmsg_bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1