Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758873AbXHOMdR (ORCPT ); Wed, 15 Aug 2007 08:33:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755305AbXHOMdI (ORCPT ); Wed, 15 Aug 2007 08:33:08 -0400 Received: from ftp.linux-mips.org ([194.74.144.162]:49749 "EHLO ftp.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753763AbXHOMdG (ORCPT ); Wed, 15 Aug 2007 08:33:06 -0400 Date: Wed, 15 Aug 2007 13:32:56 +0100 From: Ralf Baechle To: Andi Kleen Cc: Alan Cox , Christoph Lameter , Mel Gorman , Lee.Schermerhorn@hp.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-mips@linux-mips.org Subject: Re: [PATCH 3/4] Embed zone_id information within the zonelist->zones pointer Message-ID: <20070815123256.GD5862@linux-mips.org> References: <20070813230801.GH3406@bingen.suse.de> <20070813234322.GJ3406@bingen.suse.de> <20070814000041.GL3406@bingen.suse.de> <20070814002223.2d8d42c5@the-village.bc.nu> <20070814001441.GN3406@bingen.suse.de> <20070815113749.GA5862@linux-mips.org> <20070815125920.GD3406@bingen.suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070815125920.GD3406@bingen.suse.de> User-Agent: Mutt/1.5.14 (2007-02-12) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1548 Lines: 33 On Wed, Aug 15, 2007 at 02:59:20PM +0200, Andi Kleen wrote: > On Wed, Aug 15, 2007 at 12:37:49PM +0100, Ralf Baechle wrote: > > On Tue, Aug 14, 2007 at 02:14:41AM +0200, Andi Kleen wrote: > > > > > meth is only used on SGI O2s which are not that slow and unlikely > > > to work in tree anyways. > > > > O2 doesn't enable CONFIG_ZONE_DMA so there is no point in using GFP_DMA in > > an O2-specific device driver. Will send out patch in separate mail. > > Great. > > BTW I suspect this is true for some other GFP_DMA usages too. > Some driver writers seem to confuse it with the PCI DMA > APIs or believe it is always needed for them. In case of the O2 the full story is a little more complicated. The O2 is not I/O coherent. That's a well know and handled configuration for the R5000. But the R10000 which was never designed for such use will do very stupid things such as actually performing speculative stores and scribbling into DMA buffers left and right. There are two possible workarounds for this; one is software only the other is using a little CPLD codenamed Juice on the O2 R10000 board and would require a special memory region for DMA buffers, so the ZONE_DMA was really there as some sort of future proofing. But in the end the same arguments as for the Lance apply here. Ralf - 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/