Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932153AbWIKRGN (ORCPT ); Mon, 11 Sep 2006 13:06:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932154AbWIKRGN (ORCPT ); Mon, 11 Sep 2006 13:06:13 -0400 Received: from outpipe-village-512-1.bc.nu ([81.2.110.250]:43232 "EHLO lxorguk.ukuu.org.uk") by vger.kernel.org with ESMTP id S932153AbWIKRGM (ORCPT ); Mon, 11 Sep 2006 13:06:12 -0400 Subject: Re: [RFC] MMIO accessors & barriers documentation From: Alan Cox To: Benjamin Herrenschmidt Cc: Linux Kernel list , Jesse Barnes , "David S. Miller" , Jeff Garzik , Paul Mackerras , Linus Torvalds , Andrew Morton , Segher Boessenkool In-Reply-To: <1157968778.3879.41.camel@localhost.localdomain> References: <1157947414.31071.386.camel@localhost.localdomain> <1157965071.23085.84.camel@localhost.localdomain> <1157966269.3879.23.camel@localhost.localdomain> <1157969261.23085.108.camel@localhost.localdomain> <1157968778.3879.41.camel@localhost.localdomain> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 11 Sep 2006 18:26:35 +0100 Message-Id: <1157995595.23085.194.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 (2.6.2-1.fc5.5) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 854 Lines: 19 Ar Llu, 2006-09-11 am 19:59 +1000, ysgrifennodd Benjamin Herrenschmidt: > Ok, so we would define ordering on the first and last accesses (being > the first and last in ascending addresses order) and leave it free to > the implementation to do what it wants in between. Is that ok ? Not sure you can go that far. I'd stick to "_fromio/_toio" transfer blocks of data efficiently between host and bus addresses. The guarantees are the same as readl/writel respectively with respect to the start and end of the transfer. [How do you define start and end addresses with memcpy_fromio(foo, bar, 4) for example ] - 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/