Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758783AbXEVF1Z (ORCPT ); Tue, 22 May 2007 01:27:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755470AbXEVF1R (ORCPT ); Tue, 22 May 2007 01:27:17 -0400 Received: from netops-testserver-3-out.sgi.com ([192.48.171.28]:42147 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755369AbXEVF1R (ORCPT ); Tue, 22 May 2007 01:27:17 -0400 Date: Mon, 21 May 2007 22:27:16 -0700 (PDT) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: KAMEZAWA Hiroyuki cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, jens.axboe@oracle.com Subject: Re: Define CONFIG_BOUNCE to avoid useless inclusion of bounce buffer logic. In-Reply-To: <20070522133906.ae9c362a.kamezawa.hiroyu@jp.fujitsu.com> Message-ID: References: <20070522133906.ae9c362a.kamezawa.hiroyu@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 721 Lines: 21 On Tue, 22 May 2007, KAMEZAWA Hiroyuki wrote: > > +config BOUNCE > > + def_bool y > > + depends on BLOCK && MMU && (ZONE_DMA || HIGHMEM) > > + > > AFAIK, ppc has only ZONE_DMA and it never needs bounce. > Is this ok ? That is wrong. ppc should have ZONE_NORMAL and no ZONE_DMA. Otherwise you cannot switch off ZONE_DMA and you cannot switch off bounce. ZONE_DMA is a zone for exceptional allocs. If you do not have those then you only have normal allocs -> ZONE_NORMAL. - 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/