From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964958AbcJXS1e (ORCPT ); Mon, 24 Oct 2016 14:27:34 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:38674 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932470AbcJXS1c (ORCPT ); Mon, 24 Oct 2016 14:27:32 -0400 Date: Mon, 24 Oct 2016 14:27:30 -0400 (EDT) Message-Id: <20161024.142730.1316656811538193943.davem@davemloft.net> To: alexander.h.duyck@intel.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, sparclinux@vger.kernel.org, brouer@redhat.com Subject: Re: [net-next PATCH RFC 19/26] arch/sparc: Add option to skip DMA sync as a part of map and unmap From: David Miller In-Reply-To: <20161024120607.16276.5989.stgit@ahduyck-blue-test.jf.intel.com> References: <20161024115737.16276.71059.stgit@ahduyck-blue-test.jf.intel.com> <20161024120607.16276.5989.stgit@ahduyck-blue-test.jf.intel.com> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 24 Oct 2016 11:27:31 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexander Duyck Date: Mon, 24 Oct 2016 08:06:07 -0400 > 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: "David S. Miller" > Cc: sparclinux@vger.kernel.org > Signed-off-by: Alexander Duyck This is fine for avoiding the flush for performance reasons, but the chip isn't going to write anything back unless the device wrote into the area. From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Date: Mon, 24 Oct 2016 18:27:30 +0000 Subject: Re: [net-next PATCH RFC 19/26] arch/sparc: Add option to skip DMA sync as a part of map and unmap Message-Id: <20161024.142730.1316656811538193943.davem@davemloft.net> List-Id: References: <20161024115737.16276.71059.stgit@ahduyck-blue-test.jf.intel.com> <20161024120607.16276.5989.stgit@ahduyck-blue-test.jf.intel.com> In-Reply-To: <20161024120607.16276.5989.stgit@ahduyck-blue-test.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: alexander.h.duyck@intel.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, sparclinux@vger.kernel.org, brouer@redhat.com From: Alexander Duyck Date: Mon, 24 Oct 2016 08:06:07 -0400 > 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: "David S. Miller" > Cc: sparclinux@vger.kernel.org > Signed-off-by: Alexander Duyck This is fine for avoiding the flush for performance reasons, but the chip isn't going to write anything back unless the device wrote into the area. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f69.google.com (mail-pa0-f69.google.com [209.85.220.69]) by kanga.kvack.org (Postfix) with ESMTP id 886BE6B026A for ; Mon, 24 Oct 2016 14:27:33 -0400 (EDT) Received: by mail-pa0-f69.google.com with SMTP id xx10so2769983pac.2 for ; Mon, 24 Oct 2016 11:27:33 -0700 (PDT) Received: from shards.monkeyblade.net (shards.monkeyblade.net. [184.105.139.130]) by mx.google.com with ESMTP id r17si16738850pgh.127.2016.10.24.11.27.32 for ; Mon, 24 Oct 2016 11:27:32 -0700 (PDT) Date: Mon, 24 Oct 2016 14:27:30 -0400 (EDT) Message-Id: <20161024.142730.1316656811538193943.davem@davemloft.net> Subject: Re: [net-next PATCH RFC 19/26] arch/sparc: Add option to skip DMA sync as a part of map and unmap From: David Miller In-Reply-To: <20161024120607.16276.5989.stgit@ahduyck-blue-test.jf.intel.com> References: <20161024115737.16276.71059.stgit@ahduyck-blue-test.jf.intel.com> <20161024120607.16276.5989.stgit@ahduyck-blue-test.jf.intel.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: alexander.h.duyck@intel.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, sparclinux@vger.kernel.org, brouer@redhat.com From: Alexander Duyck Date: Mon, 24 Oct 2016 08:06:07 -0400 > 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: "David S. Miller" > Cc: sparclinux@vger.kernel.org > Signed-off-by: Alexander Duyck This is fine for avoiding the flush for performance reasons, but the chip isn't going to write anything back unless the device wrote into the area. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org