From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751766AbdJCQCz convert rfc822-to-8bit (ORCPT ); Tue, 3 Oct 2017 12:02:55 -0400 Received: from smtp-out4.electric.net ([192.162.216.186]:51728 "EHLO smtp-out4.electric.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751486AbdJCQCw (ORCPT ); Tue, 3 Oct 2017 12:02:52 -0400 From: David Laight To: "'Christoph Hellwig'" , "iommu@lists.linux-foundation.org" CC: Chris Zankel , Michal Simek , "linux-ia64@vger.kernel.org" , "linux-mips@linux-mips.org" , "linux-sh@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-xtensa@linux-xtensa.org" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , David Howells , "Max Filippov" , Guan Xuetao , "Robin Murphy" , Marek Szyprowski Subject: RE: [PATCH 02/11] x86: make dma_cache_sync a no-op Thread-Topic: [PATCH 02/11] x86: make dma_cache_sync a no-op Thread-Index: AQHTPDT4y1gt6BpuJ0WjoGP/hvSJ8KLSSINg Date: Tue, 3 Oct 2017 16:02:10 +0000 Message-ID: <063D6719AE5E284EB5DD2968C1650D6DD0088B73@AcuExch.aculab.com> References: <20171003104311.10058-1-hch@lst.de> <20171003104311.10058-3-hch@lst.de> In-Reply-To: <20171003104311.10058-3-hch@lst.de> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.202.99.200] Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Outbound-IP: 156.67.243.126 X-Env-From: David.Laight@ACULAB.COM X-Proto: esmtps X-Revdns: X-HELO: AcuExch.aculab.com X-TLS: TLSv1:AES128-SHA:128 X-Authenticated_ID: X-PolicySMART: 3396946, 3397078 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christoph Hellwig > Sent: 03 October 2017 11:43 > x86 does not implement DMA_ATTR_NON_CONSISTENT allocations, so it doesn't > make any sense to do any work in dma_cache_sync given that it must be a > no-op when dma_alloc_attrs returns coherent memory. I believe it is just about possible to require an explicit write flush on x86. ISTR this can happen with something like write combining. Whether this can actually happen is the kernel is another matter. David