From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx2.suse.de", Issuer "CAcert Class 3 Root" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 7AF77DDEBB for ; Tue, 7 Aug 2007 08:30:24 +1000 (EST) Date: Tue, 7 Aug 2007 00:30:19 +0200 From: Olaf Hering To: Benjamin Herrenschmidt Subject: Re: [PATCH] powerpc: Fix initialization and usage of dma_mask Message-ID: <20070806223019.GA19389@suse.de> References: <46B4B3DC.7020609@shaw.ca> <46B4B7C6.1040107@s5r6.in-berlin.de> <1186272926.938.8.camel@localhost.localdomain> <46B5824B.1000103@s5r6.in-berlin.de> <20070806115804.GA1734@suse.de> <1186436597.938.71.camel@localhost.localdomain> <1186437910.938.79.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: <1186437910.938.79.camel@localhost.localdomain> Cc: Robert Hancock , linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, Stefan Richter , Paul Mackerras , stable@kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Aug 07, Benjamin Herrenschmidt wrote: > powerpc has a couple of bugs in the usage of dma_masks that tend to > break when drivers explicitely try to set a 32 bits mask for example. > > First the code that generates the pci devices from the OF device-tree > doesn't initialize the mask properly, then our implementation of > set_dma_mask() was trying to validate the -previous- mask value, not the > one passed in as an argument. > > This patch should fix these. > > Signed-off-by: Benjamin Herrenschmidt > --- > > Does this fix the problem you've noticed ? This patch fixes it. Thanks.