Received: by 10.223.164.202 with SMTP id h10csp190556wrb; Thu, 30 Nov 2017 08:48:39 -0800 (PST) X-Google-Smtp-Source: AGs4zMZfh4Vv26FzKNgTnWZQttu60haOFvB++aqNDN4x4I+Y6NGswnL0Xcf06+Pk1i716fYx6eo4 X-Received: by 10.98.206.133 with SMTP id y127mr7097327pfg.152.1512060519478; Thu, 30 Nov 2017 08:48:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512060519; cv=none; d=google.com; s=arc-20160816; b=zMb8I6YNOEvSbW4hkv8WKjoUro8zCnnC6fQKvWNTOIH9I9p7CFtrUZWVtDyEQuFdUJ x3Bq4+00WhS3X4oEfXUvmdWi08FOyJ8psvAb8sVsOAwdek6DU/K3p3/f0xbsNAHCHi6o 3v8oYVk1pVIAEOehQxccXIQGzClcbtkv6EXGrpHoTnfYLqbJ8bS3uBkUgBBB0xyfAkpM FDPQCKCnaZCbzTBfEL0YYD8YplQK6Rps4+GTtQrLRHVjRx8MZA/sGG1jx5Ew5HEVa7Zv 7/ZKxxUvP4pEzIYeAnQhOVtLONKhxGYA8zx7HCqm3zjJgUKM4xxkNe9vleOaJ2Zd471m VU7w== 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: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n28si3519423pfg.103.2017.11.30.08.48.25; Thu, 30 Nov 2017 08:48:39 -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 S1753402AbdK3Qry (ORCPT + 99 others); Thu, 30 Nov 2017 11:47:54 -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 ); 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 To: , CC: , , , , Loic Pallardy 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/rpmsg/virtio_rpmsg_bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 1.9.1 From 1585566699173929006@xxx Fri Dec 01 07:43:57 +0000 2017 X-GM-THRID: 1585566699173929006 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread