Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263450AbUJ3Cml (ORCPT ); Fri, 29 Oct 2004 22:42:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263429AbUJ3Cml (ORCPT ); Fri, 29 Oct 2004 22:42:41 -0400 Received: from gate.crashing.org ([63.228.1.57]:34451 "EHLO gate.crashing.org") by vger.kernel.org with ESMTP id S263459AbUJ3Clj (ORCPT ); Fri, 29 Oct 2004 22:41:39 -0400 Subject: Re: [PATCH] document mmiowb and readX_relaxed a bit more in deviceiobook.tmpl From: Benjamin Herrenschmidt To: Jesse Barnes Cc: Andrew Morton , Linux Kernel list In-Reply-To: <200410291747.24035.jbarnes@engr.sgi.com> References: <200410291747.24035.jbarnes@engr.sgi.com> Content-Type: text/plain Date: Sat, 30 Oct 2004 12:35:56 +1000 Message-Id: <1099103756.29689.194.camel@gaston> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1035 Lines: 24 On Fri, 2004-10-29 at 17:47 -0700, Jesse Barnes wrote: > This is a small patch to deviceiobook.tmpl to describe the new mmiowb routine > a bit more completely. I've also updated it to provide pointers to drivers > that do write flushing, use mmiowb, and use the readX_relaxed routines. It's all good, but your semantics and description are very tailored to your specific arch problem vs. unlock. What about my suggestion of defining a broader semantic of mmiowb() as beeing a barrier ordering MMIOs vs. the rest of the world ? The later includes stores to memory _and_ spinlock/unlock. I still intend to eventually make good use of that on ppc64 to get rid of the expensive barriers we had to put in our writeX() implementations, though I didn't have time to work on that yet. Ben. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/