From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH v3 1/8] eal: introduce DMA memory barriers Date: Tue, 23 Jan 2018 10:05:28 +0530 Message-ID: <20180123043527.GA2957@jerin> References: <20180116011050.18866-1-yskoh@mellanox.com> <20180119004430.15305-1-yskoh@mellanox.com> <20180119004430.15305-2-yskoh@mellanox.com> <805e1578-6e4d-6a1b-00ce-13e3b1c16be8@solarflare.com> <5B266F6C-A33B-4019-BFDE-9CAC80835200@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Andrew Rybchenko , Thomas Monjalon , "jianbo.liu@arm.com" , Adrien Mazarguil , =?iso-8859-1?Q?N=E9lio?= Laranjeiro , "bruce.richardson@intel.com" , "Ananyev, Konstantin" , Chao Zhu , "dev@dpdk.org" To: Yongseok Koh Return-path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0066.outbound.protection.outlook.com [104.47.36.66]) by dpdk.org (Postfix) with ESMTP id 58E91727A for ; Tue, 23 Jan 2018 05:36:10 +0100 (CET) Content-Disposition: inline In-Reply-To: <5B266F6C-A33B-4019-BFDE-9CAC80835200@mellanox.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" -----Original Message----- > Date: Mon, 22 Jan 2018 18:29:31 +0000 > From: Yongseok Koh > To: Andrew Rybchenko , Thomas Monjalon > , "jianbo.liu@arm.com" , Jerin > Jacob > CC: Adrien Mazarguil , Nélio Laranjeiro > , "bruce.richardson@intel.com" > , "Ananyev, Konstantin" > , Chao Zhu , > "dev@dpdk.org" > Subject: Re: [dpdk-dev] [PATCH v3 1/8] eal: introduce DMA memory barriers > > > > On Jan 18, 2018, at 11:16 PM, Andrew Rybchenko wrote: > > > > On 01/19/2018 03:44 AM, Yongseok Koh wrote: > >> This commit introduces rte_dma_wmb() and rte_dma_rmb(), in order to > >> guarantee the ordering of coherent shared memory between the CPU and a DMA > >> capable device. > >> > >> Signed-off-by: Yongseok Koh > >> > > > > Acked-by: Andrew Rybchenko > > > > It is already really good. Many thanks. > > Thank you! > > > Maybe it would be useful to: > > - avoid duplication of so long explanations (put in in one place and add reference?) > > May have to ask Thomas how to do this. Thomas? > > > - explain why it is bound to DMA or call it in a different way, since right now it is bound > > to coherent-mapped IO (rte_cio_rmb() ?). Yes, I see benefits to follow Linux > > terminology, but may be DPDK can do better :) I just add my concerns, but let > > EAL code maintainers to decide > > Good idea. Like to hear from other people. But, following linux terms sometime > could be good to welcome developers from kernel community to DPDK world. :-) > > To people in the cc list, any other concerns? > Especially ARM users - Jianbo and Jerin? I like Andrew's suggestion. IMO, rte_cio_?mb() makes more sense. > > Thanks, > Yongseok