Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933490AbcKDDQM (ORCPT ); Thu, 3 Nov 2016 23:16:12 -0400 Received: from ozlabs.org ([103.22.144.67]:33683 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933163AbcKDDQL (ORCPT ); Thu, 3 Nov 2016 23:16:11 -0400 From: Michael Ellerman To: Alexander Duyck , linux-mm@kvack.org, akpm@linux-foundation.org Cc: Benjamin Herrenschmidt , linux-kernel@vger.kernel.org, Paul Mackerras , netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [mm PATCH v2 18/26] arch/powerpc: Add option to skip DMA sync as a part of mapping In-Reply-To: <20161102111513.79519.65315.stgit@ahduyck-blue-test.jf.intel.com> References: <20161102111031.79519.14741.stgit@ahduyck-blue-test.jf.intel.com> <20161102111513.79519.65315.stgit@ahduyck-blue-test.jf.intel.com> User-Agent: Notmuch/0.21 (https://notmuchmail.org) Date: Fri, 04 Nov 2016 14:16:01 +1100 Message-ID: <87twbolytq.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 667 Lines: 20 Alexander Duyck writes: > This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to > avoid invoking cache line invalidation if the driver will just handle it > via a sync_for_cpu or sync_for_device call. > > Cc: Benjamin Herrenschmidt > Cc: Paul Mackerras > Cc: Michael Ellerman > Cc: linuxppc-dev@lists.ozlabs.org > Signed-off-by: Alexander Duyck > --- > arch/powerpc/kernel/dma.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) LGTM. Acked-by: Michael Ellerman (powerpc) cheers