From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55365) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUlWc-0004j7-Qx for qemu-devel@nongnu.org; Wed, 16 May 2012 17:12:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUlWb-0004oj-6w for qemu-devel@nongnu.org; Wed, 16 May 2012 17:12:50 -0400 Received: from gate.crashing.org ([63.228.1.57]:53272) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUlWa-0004oV-UU for qemu-devel@nongnu.org; Wed, 16 May 2012 17:12:49 -0400 Message-ID: <1337202760.30558.15.camel@pasglop> From: Benjamin Herrenschmidt Date: Thu, 17 May 2012 07:12:40 +1000 In-Reply-To: <1337202645.30558.13.camel@pasglop> References: <1336625347-10169-1-git-send-email-benh@kernel.crashing.org> <1336625347-10169-14-git-send-email-benh@kernel.crashing.org> <4FB1A8BF.7060503@codemonkey.ws> <20120515014449.GF30229@truffala.fritz.box> <1337142938.6727.122.camel@pasglop> <4FB4028F.7070003@codemonkey.ws> <1337202645.30558.13.camel@pasglop> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH 13/13] iommu: Add a memory barrier to DMA RW function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: "Michael S. Tsirkin" , qemu-devel@nongnu.org, David Gibson On Thu, 2012-05-17 at 07:10 +1000, Benjamin Herrenschmidt wrote: > I have a long experience with dealing with ordering issues on large SMP > systems and believe me, anything "fine grained" is really really hard to > generally get right, and the resulting bugs are really nasty to track > down and even identify. So I have a strong bias toward the big hammer > approach that is guaranteed to avoid the problem for anything using the > right DMA accessors. BTW, this is going to also hurt SMP ARMs ... ARM is getting increasingly out of order as well. Cheers, Ben.