From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by kanga.kvack.org (Postfix) with ESMTP id 75C4B8E0002 for ; Tue, 15 Jan 2019 22:38:43 -0500 (EST) Received: by mail-wm1-f71.google.com with SMTP id b186so380551wmc.8 for ; Tue, 15 Jan 2019 19:38:43 -0800 (PST) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50042.outbound.protection.outlook.com. [40.107.5.42]) by mx.google.com with ESMTPS id x7si51457090wrw.135.2019.01.15.19.38.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 19:38:41 -0800 (PST) From: Andy Duan Subject: RE: [rpmsg PATCH v2 1/1] rpmsg: virtio_rpmsg_bus: fix unexpected huge vmap mappings Date: Wed, 16 Jan 2019 03:38:38 +0000 Message-ID: References: <1545812449-32455-1-git-send-email-fugang.duan@nxp.com> <20181226145048.GA24307@infradead.org> <20181227121901.GA20892@infradead.org> <20190110140726.GA6223@infradead.org> <20190114095315.GA24495@infradead.org> In-Reply-To: <20190114095315.GA24495@infradead.org> Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: owner-linux-mm@kvack.org List-ID: To: Christoph Hellwig Cc: "bjorn.andersson@linaro.org" , "ohad@wizery.com" , Ard Biesheuvel , Andrew Morton , Linux-MM , Robin Murphy , "linux-remoteproc@vger.kernel.org" , "anup@brainfault.org" , "loic.pallardy@st.com" , dl-linux-imx , Richard Zhu , Jason Liu , Peng Fan From: Christoph Hellwig Sent: Monday, January 14, 2019 = 5:53 PM > On Fri, Jan 11, 2019 at 01:28:46AM +0000, Andy Duan wrote: > > As NXP i.MX8 platform requirement that M4 only access the fixed memory > > region, so do You have any suggestion to fix the issue and satisfy the > > requirement ? Or do you have plan To fix the root cause ? >=20 > I think the answer is to use RESERVEDMEM_OF_DECLARE without the DMA > coherent boilerplate code. If use RESERVEDMEM_OF_DECLARE with DMA contiguous code (CMA), it can match the requirement, but as you know, the CMA size alignment is 32M bytes= , we only need 8M bytes contiguous mem for rpmsg. >=20 > For the initial prototype just do it inside the driver, although I'd like= to > eventually factor this out into common code, especially if my proposal fo= r > more general availability of DMA_ATTR_NON_CONSISTENT goes ahead.