From: Mark Greer Subject: Re: [PATCH V9 1/4] dma-mapping: Rework dma_get_cache_alignment() Date: Tue, 24 Oct 2017 12:11:56 -0700 Message-ID: <20171024191156.GA11341@animalcreek.com> References: <1508742767-28366-1-git-send-email-chenhc@lemote.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from out4-smtp.messagingengine.com ([66.111.4.28]:38065 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751280AbdJXTL5 (ORCPT ); Tue, 24 Oct 2017 15:11:57 -0400 Content-Disposition: inline In-Reply-To: <1508742767-28366-1-git-send-email-chenhc@lemote.com> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Huacai Chen Cc: Christoph Hellwig , Marek Szyprowski , Robin Murphy , Andrew Morton , Fuxin Zhang , linux-kernel@vger.kernel.org, Ralf Baechle , James Hogan , linux-mips@linux-mips.org, "James E . J . Bottomley" , "Martin K . Petersen" , linux-scsi@vger.kernel.org, stable@vger.kernel.org, "Michael S . Tsirkin" , Pawel Osciak , Kyungmin Park , Michael Chan , Benjamin Herrenschmidt , Ivan Mikhaylov , Tariq Toukan On Mon, Oct 23, 2017 at 03:12:44PM +0800, Huacai Chen wrote: > Make dma_get_cache_alignment() to accept a 'dev' argument. As a result, > it can return different alignments due to different devices' I/O cache > coherency. > > Currently, ARM/ARM64 and MIPS support coherent & noncoherent devices > co-exist. This may be extended in the future, so add a new function > pointer (i.e, get_cache_alignment) in 'struct dma_map_ops' as a generic > solution. > > Cc: stable@vger.kernel.org > Cc: Michael S. Tsirkin > Cc: Pawel Osciak > Cc: Marek Szyprowski > Cc: Kyungmin Park > Cc: Michael Chan > Cc: Benjamin Herrenschmidt > Cc: Ivan Mikhaylov > Cc: Tariq Toukan > Cc: Andy Gross > Cc: Mark A. Greer > Cc: Robert Baldyga > Cc: Marek Szyprowski > Signed-off-by: Huacai Chen > --- For the mpsc stuff: Acked-by: Mark Greer