From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Ujfalusi Subject: Re: [PATCH] ASoC: omap-pcm: Lower the dma coherent mask to 32bits Date: Fri, 6 Dec 2013 11:31:52 +0200 Message-ID: <52A19988.9060806@ti.com> References: <1386230802-3660-1-git-send-email-peter.ujfalusi@ti.com> <20131205095619.GC4360@n2100.arm.linux.org.uk> <52A09CDA.6010700@ti.com> <20131205192853.GH4360@n2100.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by alsa0.perex.cz (Postfix) with ESMTP id B15B6261ADF for ; Fri, 6 Dec 2013 10:31:57 +0100 (CET) In-Reply-To: <20131205192853.GH4360@n2100.arm.linux.org.uk> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Russell King - ARM Linux Cc: tiwai@suse.de, alsa-devel@alsa-project.org, Mark Brown , Liam Girdwood , Jarkko Nikula List-Id: alsa-devel@alsa-project.org On 12/05/2013 09:28 PM, Russell King - ARM Linux wrote: > gives us the very last PFN which the bus associated with dev is able to > address. Hmm - so I got the test wrong on both twice - they should both > be: > = > if (sizeof(mask) !=3D sizeof(dma_addr_t) && > mask > (dma_addr_t)~0 && > dma_to_pfn(dev, ~0) < min(max_pfn, arm_dma_pfn_limit)) > return 0; > = > since we want to fail if we have _more_ memory than the bus will allow. > Can you try the above in both locations please? Thanks, works fine. I will be out for a long weekend so you can add my: Tested-by: Peter Ujfalusi to the final patch. -- = P=E9ter