From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de (verein.lst.de [213.95.11.210]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 17746DDDEE for ; Mon, 17 Dec 2007 21:03:03 +1100 (EST) Date: Mon, 17 Dec 2007 11:02:48 +0100 From: Christoph Hellwig To: Michael Ellerman Subject: Re: [PATCH] Implement pci_set_dma_mask() in terms of the dma_ops Message-ID: <20071217100248.GA8433@lst.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Cc: linuxppc-dev@ozlabs.org, Paul Mackerras List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, Dec 17, 2007 at 05:35:53PM +1100, Michael Ellerman wrote: > To save adding a hook to the dma mapping ops, pci-set_consistent_dma_mask() > simply calls the dma_set_mask() hook and then copies the new mask into > dev.coherenet_dma_mask. How is this supposed to work? There are various devices around that want different mask for coherent vs streaming dma mappings, and we need to tell the iommu that we're setting it for either the former or the latter.