From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757163Ab0EAXEl (ORCPT ); Sat, 1 May 2010 19:04:41 -0400 Received: from mail-bw0-f219.google.com ([209.85.218.219]:32973 "EHLO mail-bw0-f219.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754726Ab0EAXEi convert rfc822-to-8bit (ORCPT ); Sat, 1 May 2010 19:04:38 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=NhxHm4PsNKXiK2bjsbzGg7QMtdl7o/SPGVzFtjR/Igr4mpqrSF6Ar0SFynfaC8kYWE ZkCqVb5gnrKftWH1vEmXCGJ5ETQfIBQl8B9PjcX1oVZpBSunFsLgxMf2BXkdHolTHMFc l5hqEqbH48VWcTFNK4Fy8AkKHNmEvg8P4Ndug= MIME-Version: 1.0 In-Reply-To: <20100501224429.GA17693@n2100.arm.linux.org.uk> References: <1270681920-4461-1-git-send-email-linus.walleij@stericsson.com> <20100422110025.GC20008@n2100.arm.linux.org.uk> <20100501224429.GA17693@n2100.arm.linux.org.uk> Date: Sun, 2 May 2010 01:04:37 +0200 Message-ID: Subject: Re: [PATCH 00/11] ARM: PrimeCell DMA Interface v5 From: Linus Walleij To: Russell King - ARM Linux Cc: Dan Williams , Linus WALLEIJ , "akpm@linux-foundation.org" , Grant Likely , "linux-arm-kernel@lists.infradead.org" , "linux-mmc@vger.kernel.org" , STEricsson_nomadik_linux , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2010/5/2 Russell King - ARM Linux : > Versatile has some MUXing on three of the DMA signals, so (eg) we > really don't want UARTs claiming DMAs just because they're in existence > and not in use - that would prevent DMAs from being used for (eg) AACI > or MMC. As long as Versatile doesn't specify any filter function or data for the channel allocation function (it currently doesn't and defaults to NULL) it won't even try to call the DMA engine to allocate a channel for say the UART. There is nothing blocking some other peripheral from grabbing a muxed channel in that case. But the implementation of the DMA engine would be better of handling the muxing dynamically I believe, so when the PL011 driver (say) requests a DMA channel, it doesn't mean it requests the *physical* channel and holds it (unless the driver is very naïvely implemented) it nominally means it reserves a placeholder in the DMA engine. When the driver issues a request to perform a DMA transfer, it will pull out a physical channel and use that, then return it. If there is too much combat about the physical channels, you configure out DMA for the least wanted PrimeCells. Yours, Linus Walleij