Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 12 Jun 2002 08:15:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 12 Jun 2002 08:15:38 -0400 Received: from s2.relay.oleane.net ([195.25.12.49]:62980 "HELO s2.relay.oleane.net") by vger.kernel.org with SMTP id ; Wed, 12 Jun 2002 08:15:37 -0400 From: Benjamin Herrenschmidt To: Oliver Neukum , Roland Dreier , "David S. Miller" Cc: , , Subject: Re: PCI DMA to small buffers on cache-incoherent arch Date: Tue, 11 Jun 2002 22:06:12 +0200 Message-Id: <20020611200612.9251@smtp.adsl.oleane.com> In-Reply-To: <200206121402.53622.oliver@neukum.name> X-Mailer: CTM PowerMail 3.1.2 F MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org >If I understand both Davids correctly this is the solution. >Buffers for dma must be allocated seperately using a special allocation >function which is given the device so it can allocate correctly. >David B wants a bus specific pointer to a function in the generic >driver structure, right ? Then let's have those as part of the generic device struct, with the default ones pointing to the parent bus ones. That way, a couple of generic ones could be set at the root of the device tree for fully coherent or fully incoherent archs, and bus drivers would have the ability to affect their child devices ones. 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/